Yuzool

Dev Tools

URL encode and decode

Encode text so it’s safe inside a web address (a space becomes %20), decode it back, or paste a whole URL to see its parts and every query parameter, decoded.

Encoded by this page

Encode a single value (a search term, a parameter) as a component: everything except letters, digits and - _ . ! ~ * ' ( ) is encoded. Tick Keep : / ? & = to encode a whole URL without breaking its structure.

TextComponentWhole URL
Tom & JoTom%20%26%20JoTom%20&%20Jo
a/b?c=da%2Fb%3Fc%3Dda/b?c=d
cafécaf%C3%A9caf%C3%A9
50% off50%25%20off50%25%20off
https://x.com/a b?q=1&r=éhttps%3A%2F%2Fx.com%2Fa%20b%3Fq%3D1%26r%3D%C3%A9https://x.com/a%20b?q=1&r=%C3%A9

Spaces: %20 or +?

Both mean a space in a query string: + comes from HTML forms, %20 from everywhere else. In a path, only %20 is a space; + is a plus. When decoding, tick Read + as a space for form data.

How to use it

  1. Pick Encode, Decode or Take apart.
  2. Paste the text or URL.
  3. Copy the result, or a single part of the URL.

Questions

What is percent-encoding?

Replacing characters that have a meaning in URLs, or aren’t allowed in them, with % and two hex digits: a space is %20, & is %26, é is %C3%A9 (its two UTF-8 bytes).

Why does decoding fail?

A % must be followed by two hex digits. A lone % (as in "50%") or a broken sequence can’t be decoded; encode the original text instead.

Is anything sent anywhere?

No. Encoding, decoding and parsing all happen in your browser.

Related tools

Open all 35 Dev Tools. Everything runs in your browser; nothing you paste is uploaded.

Settings

History

Snippet