URL Encoder and Decoder

Percent-encode text for a URL, or decode a link full of %20s back into something readable.

Your data stays in your browser

This tool runs on JavaScript inside your browser. Nothing you add here is uploaded to our server, so it works for confidential data too. How we handle data

  • No upload
  • Processed on your device
  • No account

What does URL encoding do?

It swaps characters that aren't safe in a web address for a % sign and a two-digit code. A space becomes %20, an ampersand becomes %26, and a question mark becomes %3F. Without it, a search for "fish & chips" in a link would break, because the browser reads that & as the start of a new parameter.

When do I need to encode a URL?

  • Putting user input or a search term into a query string
  • Passing one URL inside another, such as a redirect or a share link
  • Links with non-English text, like Urdu or Arabic words, or emoji
  • Building UTM tracking links for a marketing campaign

Why does a link I copied look like gibberish?

Because it's already encoded. Paste it in the Decode tab to read it. That's especially handy for checking where a long tracking link actually goes before you click. The tool uses encodeURIComponent, which encodes every reserved character. That's right for a single value, but encoding a whole URL will also encode its slashes and colon. Everything runs in your browser. Working with Base64 rather than URLs? Use the Base64 Encoder. Want a QR code for the finished link? Make one with the QR Code Generator. Decoded a query string full of JSON? Tidy it with the JSON Formatter.

Tagging links for a marketing campaign? The UTM Builder adds and encodes the utm_ parameters for you.

Questions people ask

What does %20 mean in a URL?

It's an encoded space. URLs can't contain real spaces, so they're written as %20.

How do I decode a URL?

Paste it in the Decode tab and click Decode URL. You'll get the readable version straight away.

What is the difference between URL encoding and Base64?

URL encoding only changes unsafe characters and keeps the rest readable. Base64 rewrites everything into a different alphabet.

Should I encode the whole URL or just part of it?

Usually just the values in the query string. This tool encodes everything, including / and :, which is what you want for a single parameter value.

Why is a + sometimes used for spaces?

HTML forms encode spaces as +. In other parts of a URL, %20 is the standard.

Related tools