URL Encoder & Decoder
Encode or decode URLs and query string parameters using percent-encoding (RFC 3986). Supports encodeURI and encodeURIComponent modes.
Related Tools
About this url encoder & decoder
The URL encoder and decoder handles percent-encoding for paths, query strings, callback URLs, and redirect parameters. It helps prevent broken links when values contain spaces, symbols, Unicode characters, or nested URLs.
Common uses
- Encode redirect_uri and callback values for OAuth testing.
- Decode query strings copied from logs or analytics tools.
- Prepare safe URL parameters for documentation and API examples.
Practical notes
Use component encoding for query values, not entire URLs, when building links programmatically.
Decode suspicious URLs carefully before visiting them.
Frequently Asked Questions
What is URL encoding?
URL encoding (percent-encoding) converts characters that are not allowed in URLs into a format that can be transmitted over the Internet. Each character is replaced by a percent sign followed by its hexadecimal ASCII code.
What is the difference between encodeURI and encodeURIComponent?
encodeURI encodes a complete URL and does not encode characters like /, ?, &, =, #. encodeURIComponent encodes a URL component (like a query string value) and encodes ALL special characters, making it safe to use as part of a query string.