URL Encode / Decode
Percent-encode or decode URLs and query strings. Supports encodeURIComponent, encodeURI, and form encoding.
What is URL Encoding?
URL encoding (also called percent-encoding) replaces unsafe or reserved characters in a URL with a % followed by two hexadecimal digits representing the character's byte value. For example, a space becomes %20 and an ampersand becomes %26.
JavaScript provides two built-in functions: encodeURIComponent() encodes everything except unreserved characters, making it suitable for encoding query parameters. encodeURI() preserves URL structure characters like :/?#[]@, making it suitable for encoding full URLs.
The form encoding mode (application/x-www-form-urlencoded) follows the HTML specification for form submission, where spaces are encoded as + rather than %20.
Includes a URL breakdown that parses valid URLs into their components: protocol, host, path, query parameters, and fragment. Your data stays local.