URL Encode / Decode
Percent-encode text so it's safe in a URL, or decode an encoded URL back.
100% private — everything runs in your browser and nothing is sent to a server.
Need this built into your own product?
We build web apps, APIs and integrations for startups and businesses — the same team that ships these free developer tools.
The URL Encode / Decode tool percent-encodes text so it can be safely placed in a URL or query string, and decodes encoded URLs back to readable text. It runs entirely in your browser.
Why use this tool
Both directions
Encode text for a URL or decode an already-encoded string.
Query-string safe
Turns spaces, symbols and Unicode into valid percent-encoded characters.
Private
Runs in your browser — the text is never uploaded.
How to use it
Paste your text or URL
Enter text to encode, or an encoded URL to decode.
Choose the direction
Switch between encode and decode.
Copy the result
Copy the converted string with one click.
Frequently asked questions
When do I need to URL-encode text?+
Whenever you put text with spaces or special characters into a URL — for example a search term in a query string. Encoding turns those characters into a safe %XX form.
What's the difference between encoding a component and a whole URL?+
This tool encodes a component (like one query value), so characters such as & and = are escaped. Use it for individual values rather than a full already-formed URL.
Is my text uploaded?+
No. Encoding and decoding happen in your browser.
Is it free?+
Yes. Completely free, with no sign-up.