URL Encoder & Decoder
Percent-encode or decode URLs and URL components safely, right in your browser. You can choose between encoding a whole URL and encoding a single component, see why encodeURI and encodeURIComponent differ, and trust that Unicode is handled correctly. The input is only ever treated as text — never opened or executed.
- 100% free
- Private & safe
- Runs in your browser
Why use URL Encoder and Decoder?
URL Encoder and Decoder is a quick, no-nonsense developer utility that runs entirely client-side, so your code and data never leave your machine.
- Runs instantly in your browser — nothing to install, nothing uploaded.
- Completely free, with no account, no watermarks and no usage limits.
- Handles encodeURIComponent — encodes &, =, ?, / (use for query values); encodeURI — keeps structural characters :/?#[]@.
- Choose a mode: encode/decode a component, or encode/decode a full URL.
- Works on any device — desktop, tablet and phone — and is fully keyboard accessible.
How to use URL Encoder and Decoder
- Choose a mode: encode/decode a component, or encode/decode a full URL.
- Type or paste your text; the hint explains which JavaScript API each mode uses.
- Encode or decode; swap input and output, copy, or download the result.
- Malformed percent-encoding is reported with a clear, friendly message.
Examples
- Encoding 'hello world & coffee' as a query value → 'hello%20world%20%26%20coffee'.
- Decoding a percent-encoded path back to readable text.
Supported formats & limits
- encodeURIComponent — encodes &, =, ?, / (use for query values)
- encodeURI — keeps structural characters :/?#[]@
Limitations
- Component encoding and full-URL encoding differ; using the wrong one can produce broken links.
- Decoding invalid percent sequences will report an error rather than guess.
Frequently asked questions
What is the difference between the two encode modes?
encodeURIComponent encodes almost everything and is for individual values like query parameters. encodeURI preserves the characters that make up a URL's structure.
Does it open the URL I paste?
No. Entered values are treated purely as text; the tool never navigates to or opens them.
Is decoded content rendered as HTML?
No. Output is shown as plain text for safety.