URL Encoder & Decoder — Percent-Encoding Made Easy
Turn spaces, symbols and non-English text into URL-safe percent-encoding — or decode a mangled URL back into something a human can read. All in your browser.
Component mode encodes everything except letters, digits and - _ . ! ~ * ' ( ) — right for a single query value. Full-URL mode also preserves the URL's own punctuation (: / ? & = # and friends) — right for encoding a whole address that contains spaces or non-English characters.
Runs 100% in your browser — nothing you type is uploaded or stored.
You might also need
How to encode or decode a URL
- Choose the mode. Component when you are building one piece of a URL — a search term, a redirect target, a filename going into a query string. Full URL when a complete address contains characters that need encoding but its structure must survive.
- To encode: paste readable text on the left and click “Encode →”. Reserved characters become %XX codes (space → %20, & → %26, é → %C3%A9).
- To decode: paste a percent-encoded string on the right and click “← Decode”. Malformed input — a lone % or an incomplete code — produces a specific error instead of silent garbage.
- Copy the result and use it in your link, API call or redirect rule.
Why URLs need encoding at all
A URL may only contain a small set of characters safely. A space, an ampersand inside a value, a question mark in a search term, or any non-English letter would be misread as structure — the & that separates parameters, the ? that starts the query. Percent-encoding writes each unsafe byte as % followed by two hex digits, using the character's UTF-8 bytes, so “café” travels as caf%C3%A9 and arrives intact. The two modes mirror JavaScript's own functions: encodeURIComponent for one value (it encodes &, =, ? and / because inside a value they are data, not structure) and encodeURI for a whole address (it preserves them because there they are the structure). Choosing the wrong one is the classic bug: encode a full URL as a component and every slash turns to %2F; encode a query value as a full URL and its ampersands silently split your parameters.
Decoding earns its keep when you are reading logs, analytics exports or a link a colleague pasted from a browser's address bar — turning %20s and %C3%A9s back into words you can actually proofread before the link goes into an email campaign or a QR code.
URL Encoder / Decoder — frequently asked questions
What is the difference between Component and Full URL mode?
Component mode (encodeURIComponent) encodes every reserved character, including &, =, ? and / — correct when the text is a single value inside a URL, such as a search term. Full URL mode (encodeURI) preserves those characters because in a complete address they are structure, and only encodes spaces, non-English characters and other unsafe bytes.
Why does my decoded text show an error?
Percent-decoding fails when the input contains a malformed sequence — a % not followed by two hex digits, or truncated UTF-8 bytes. The error message tells you decoding stopped; check for a hand-typed or cut-off % code near the start of the string.
Is a space %20 or + in a URL?
Both exist. In query strings produced by HTML forms, + traditionally means a space (application/x-www-form-urlencoded). In the path part of a URL, a space must be %20. This tool encodes spaces as %20, which is valid everywhere; when decoding, it also treats + as a space in component mode, matching form behaviour.
Does encoding a URL change where it points?
No. Percent-encoding is a reversible writing of the same address — browsers decode it before requesting. It changes how the URL looks in text, not what it means.
Is what I paste uploaded anywhere?
No. Encoding and decoding run entirely in your browser; the text never leaves your device and is never stored or logged.
People also use
Files are processed in your browser and never uploaded. Everything happens on your device, from start to finish. How it works →