How to use the URL Encoder / Decoder tool
- Add the text or linkEnter something to encode, or a percent-encoded URL you want to read.
- Choose the mode“Component” for a single parameter value or path piece; “Full URL” to leave : / ? & = untouched.
- Encode or decodePress the button you need, and tick “Spaces as +” when dealing with HTML form data.
- Copy or inspectCopy the output; decoding a full link also lists its scheme, host, path and every query parameter.
URL encoder features
- Two encoding modesEquivalent to JavaScript’s encodeURIComponent and encodeURI, the two functions developers rely on most.
- Strict RFC 3986 optionComponent mode additionally encodes ! ' ( ) *, which some servers interpret specially.
- Form encodingTurn spaces into + and back, as application/x-www-form-urlencoded requires.
- Link breakdownSee every parameter of a long tracking or API link at a glance.
- Unicode readyNon-English text and emoji are encoded as UTF-8 bytes.
What is URL encoding (percent-encoding)?
A URL may only contain a small set of characters: letters, digits and a few marks like - _ . ~. Anything else, including spaces, accented letters and symbols with special roles such as ?, & and #, has to be percent-encoded, meaning each byte is written as % plus two hexadecimal digits. So a space turns into %20, & into %26, and ü into %C3%BC, its two UTF-8 bytes.
Component encoding vs full URL encoding
- Component mode encodes everything except letters, digits and
- _ . ~. Use it for one query value, one path segment or a file name. - Full URL mode encodes spaces and unsafe characters but leaves
: / ? # & = +in place. Use it for a whole link whose structure is already correct.
For example, to place salt & pepper after ?q=, encode it as a component to get salt%20%26%20pepper. Full-URL mode would leave the & alone, and the server would think a new parameter begins there.
Should a space be %20 or +?
Both mean a space, but in different contexts. Query strings from HTML form submissions (application/x-www-form-urlencoded) write spaces as +. Elsewhere in a URL, paths included, a space has to be %20. Only tick “Spaces as +” when you’re handling form data.
Problems this URL decoder helps solve
- Double encoding: seeing
%2520means a%20got encoded a second time, so decode twice to recover the text. - Broken links: links copied from documents may include raw spaces or special characters; encode them in full-URL mode.
- Unpacking tracking links: decode long marketing or redirect links to see the real destination and any UTM tags, which you can build with the UTM Builder.
- “URI malformed” errors: a lone
%without two hex digits after it can’t be decoded; replace it with%25.