URL Encoder/ Decoder

Paste text or a link to percent-encode or decode it, as a single value or a whole link. Paste a link into the reader below to see its query parameters as a table.

  • Free forever
  • No sign-up
  • Runs in your browser

Encode or decode

Paste text or a link.

encodeURIComponent: also encodes / ? & = #, for one value inside a link.

34 chars

Encoded

summer%20dresses%20%26%20sandals%20%2F%2050%25%20off

52 characters, up from 34.

Encoding swaps characters that have a meaning in links (spaces, &, ?, #, %) and anything outside plain English letters for % codes the browser reads back. Everything runs in your browser.

Query string reader

Paste a link to see its parameters, decoded.

KeyValueCopy
qsummer dresses
sizeM
colorsage green
utm_sourceinstagram

How to use the URL Encoder / Decoder

  1. 1

    Choose encode or decode.

  2. 2

    Choose whether the text is one value or a whole link.

  3. 3

    Paste your text and copy the result.

  4. 4

    Paste a link into the query string reader to see its parameters.

What is URL encoding?

Links can only carry a limited set of characters. Spaces, accented letters, emoji and symbols that have a job in a link, like ?, & and #, have to be written as a percent sign and two hex digits. A space becomes %20, & becomes %26 and é becomes %C3%A9.

That's percent-encoding, also called URL encoding. Decoding turns it back into readable text.

A rule of thumb

If you're putting text inside a link, encode it as a value. If you're fixing a link that already works apart from a few odd characters, encode it as a whole link. Encoding a full link as a value breaks it: https:// turns into https%3A%2F%2F, which browsers won't open.

Watch out for encoding twice. If you see %2520 in a link, something encoded the % of a %20 that was already there.

Plus signs and spaces

Some query strings, mostly from HTML forms, use + for spaces instead of %20. Turn on Spaces as + to encode that way, or to decode + back into spaces. Leave it off when your text might contain a real plus sign, like a phone number.

Reading query strings

The query string is everything after the ? in a link: key=value pairs joined by &. Paste a link into the reader to see each key and its decoded value. It's a quick way to check UTM tags, spot a tracking parameter or copy one value out of a long link.

Frequently asked questions

What's the difference between encodeURI and encodeURIComponent?

encodeURIComponent encodes every character that has a special meaning in links, so it's for single values. encodeURI leaves : / ? & = # alone, so it's for whole links.

Why is a space %20 in some links and + in others?

Both mean a space. %20 is standard percent-encoding; + is the older style HTML forms use in query strings.

Why won't my text decode?

Every % has to be followed by two hex digits. Text like 50% off, or a code cut short like %E2%8, can't be decoded. Fix or remove the stray %.

Is my text sent anywhere?

No. Encoding and decoding run in your browser, with the same functions JavaScript uses.

Embed this tool on your site

Want the URL Encoder / Decoder on your own page? Copy the embed code and paste it where you want it to show up.

  • Free to use on your blog or site, with no account.
  • It sizes itself to fit and works on phones.
  • Keep the credit line so readers know where it's from.
your-site.com/blog

Free URL Encoder / Decoder by Hiyaly

Put it allon one link.