URL Encoder & Decoder Online (Free, Private Tool)
URLs can only safely contain a limited set of characters. The moment you put a space, an ampersand, a slash, or a non-English character into a query string, it has to be percent-encoded — turned into %20, %26, and so on — or the URL breaks or gets misread. A URL encoder does that conversion (and reverses it) instantly. Here's when you need it and how to use it.
What URL encoding does
Percent-encoding replaces unsafe characters with a % followed by their hex code. A space becomes %20; an ampersand becomes %26. This keeps the URL unambiguous — so a & that's part of your data doesn't get read as the separator between two query parameters, and a non-ASCII character travels safely.
You'll need it whenever you:
- Build a URL with query parameters that contain spaces, symbols, or user input.
- Pass a URL as a parameter inside another URL (a redirect or callback).
- Handle search queries, form values, or non-English text in links.
- Debug a URL that's behaving oddly because something wasn't encoded.
Component vs. full-URL encoding
This trips people up. There are two modes, and using the wrong one breaks things:
- Component encoding encodes a single piece of a URL — one query value, one path segment. It encodes
/,?,&, and=too, because inside a value those are just data. Use this for the parts you're inserting. - Full-URL encoding preserves the structural characters (
:,/,?,&) so the URL still works as a URL, encoding only the genuinely unsafe characters. Use this on a whole URL.
The free URL Encoder offers both, so you encode at the right level instead of accidentally mangling a working URL.
How to use it
- Open it — no signup.
- Paste your text or URL.
- Choose component (for a single value) or full-URL (for a whole link).
- Encode or decode; copy the result.
It runs entirely in your browser — useful when you're debugging URLs that carry tokens, session IDs, or private parameters you'd rather not paste into a server-side tool.
Common questions
When do I need to URL-encode? Whenever a URL contains spaces, symbols, non-English characters, or a value (like another URL) that includes reserved characters.
What's the difference between encoding a component and a full URL? Component mode encodes everything unsafe including / and & (for a single value); full-URL mode keeps the structural characters so the link still works. Pick based on whether you're encoding a piece or the whole URL.
Is my URL uploaded? No — the tool runs in your browser and transmits nothing.
Related reading: Base64 Encode & Decode · JSON Formatter · explore the other free tools.
Sovereign Agentics builds free, privacy-first browser tools. Our premium Claude prompt systems fund the free ones.