Getting your file…

Free · runs in your browser · no upload · no quota

URL Encode & Decode

Percent-encode text so it can go into a URL, or decode a URL full of %20 and %C3%A9 back to readable text. Choose a query value, a whole URL or form data, and encode or decode many lines at once.

Good to know

Query values follow RFC 3986 strictly.

Besides what JavaScript's encodeURIComponent encodes, the characters ! ' ( ) * are encoded too, so the result is safe in every part of a URL and in OAuth signatures.

Do not encode twice.

Encoding an already encoded text turns %20 into %2520. If you see %25 in a URL, it was encoded twice; decode it twice to get the text back.

Each line separately.

Without it, line breaks are part of the text and are encoded as %0A. With it, every line is encoded on its own and the lines stay as they are.

How to URL-Encode or Decode Text

  1. Paste the text or URL
    Type or paste it into the left box.
  2. Choose encode or decode, and the type
    Query value encodes everything that has a meaning in a URL, for one parameter value. Whole URL keeps : / ? & = so the address still works. Form data writes spaces as +, as HTML forms send them.
  3. Copy the result
    The result updates as you type; copy it or download it. Tick Each line separately to handle a list of values.

Example

Text
café & bar/menu?id=7
Result
caf%C3%A9%20%26%20bar%2Fmenu%3Fid%3D7

Frequently Asked Questions

More browser tools