Free URL Encoder & Decoder Online
How it works
URLs can only contain a safe set of characters — everything else has to be percent-encoded. Paste text or a link, pick a mode, and encode or decode instantly. Component mode is for encoding a single value (like a search query or a parameter); full-URL mode keeps a complete link’s structure (: / ? & =) readable while fixing spaces and other unsafe characters. Tap an example chip to see it in action, and use Swap to flip the result back into the input.
URL Encoder / Decoder
Percent-encode text for safe URLs, or decode encoded links back to readable text.
1 Enter text or a URL
2 Pick a mode, or try an example
3 Encode or decode
✅ Your result
Everyday uses
- Building links with queries: encode a search term or product name before dropping it into a URL parameter.
- Reading ugly links: decode a shared URL full of
%20and%26to see what it actually says before clicking. - Debugging APIs: check exactly how a value will be encoded before it reaches your endpoint.
- Sharing file names: encode names with spaces, accents, or emoji so links to them do not break.
Frequently asked questions
What is the difference between Component and Full URL mode?
Component mode (the browser’s encodeURIComponent) encodes everything that could break a single value — including / ? & = — so it is the right choice for one query parameter, form value, or path segment. Full URL mode (encodeURI) assumes the input is a whole link and leaves its structure intact, only fixing spaces, quotes, non-ASCII characters, and similar unsafe characters.
Why did decoding fail with an error?
Decoding requires every % to be followed by exactly two hex digits, like %20 for a space. If the text contains a bare % — common when someone pastes text that was never encoded — the decoder cannot guess what was meant, so this tool explains the problem instead of guessing. Encode the text first, or replace the stray % with %25.
Is anything sent to a server?
No. Encoding and decoding use your browser’s built-in functions and run entirely on your device. Links, tokens, and text you paste never leave your browser.