Special characters, spaces, and non-ASCII text all need percent-encoding before they're safe inside a URL or query string. This tool encodes or decodes instantly, using the same rules as JavaScript's built-in encodeURIComponent, entirely in your browser.
How to use the url encoder/decoder tool
- 1
Choose Encode or Decode
Pick the direction you need.
- 2
Paste your URL or text
Add a URL, query string, or any text with special characters.
- 3
Copy the result
The encoded or decoded text updates instantly.
Common use cases
Build a query string
Encode a value with spaces or special characters before adding it to a URL.
Read a logged URL
Decode a percent-encoded URL from server logs back into readable text.
Debug a redirect parameter
Decode a URL passed as a query parameter to see its real destination.
Frequently asked questions
It replaces characters that aren't safe in a URL (spaces, &, =, non-ASCII characters, etc.) with a % followed by their hex code, so the URL remains valid.