URL Encoder / Decoder
Safely encode and decode URL components and query strings.
Escape special characters in URL components or decode percent-encoded strings back to readable text. Useful for query parameters, slugs and API values. Everything happens locally with standard JavaScript APIs.
How to use URL Encoder / Decoder
- 1Paste a URL, query string or encoded value.
- 2Select Encode or Decode and run the tool.
- 3Copy the result into your code or browser.
About this tool
Escape special characters in URL components or decode percent-encoded strings back to readable text. Useful for query parameters, slugs and API values. Everything happens locally with standard JavaScript APIs.
Looking for more utilities? Browse all tools or explore Encoding & Decoding.
Frequently asked questions
Should I encode a whole URL?+
Use encodeURI for full URLs and encodeURIComponent for individual parameters. This tool uses encodeURIComponent, which is usually what query values need.
Why do spaces become %20?+
Percent encoding replaces unsafe characters with a percent sign followed by a hexadecimal code. Space becomes %20.
What happens with invalid percent sequences?+
Decoding reports an error so you can correct the input.
More Encoding & Decoding
Base64 Encoder / Decoder
Encode and decode UTF-8 text with Base64, locally and instantly.
Open tool