URL Encoder and Decoder: Percent-Encode or Decode URLs Online

Percent-encode text so it’s safe inside links and query strings, or decode an encoded URL back into readable text. Paste a complete link to see it split into its parts.

  • Component and full-URL modes
  • Form-style + spaces
  • URL breakdown table

How to use the URL Encoder / Decoder tool

  1. Add the text or linkEnter something to encode, or a percent-encoded URL you want to read.
  2. Choose the mode“Component” for a single parameter value or path piece; “Full URL” to leave : / ? & = untouched.
  3. Encode or decodePress the button you need, and tick “Spaces as +” when dealing with HTML form data.
  4. 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 %2520 means a %20 got 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.

Frequently asked questions

What does %20 mean in a URL?
It’s the percent-encoded form of a space. Likewise %2F stands for a slash and %26 for an ampersand.
How do encodeURI and encodeURIComponent differ?
encodeURI keeps the characters that give a URL its structure, like : / ? & =, while encodeURIComponent encodes those too, which is what a single parameter value needs.
Why does decoding throw an error?
Your input contains a % that isn’t followed by two valid hexadecimal digits. Write a literal percent sign as %25.
Can it encode non-English characters?
Yes. Characters become UTF-8 bytes and each byte is percent-encoded, following the web standard.
Is my data sent anywhere?
No. Encoding and decoding happen in your browser.