Skip to content
Tejo Tools
Menu
Developer toolsProcessed on your device

URL encode and decode

Percent-encode text for a URL, or decode an encoded value back into text, as you type. Your text is processed on your device.

0 characters · 0 lines
Mode

For encoding: keeps : / ? # & = and the other URL characters.

As web forms send them; read both ways.

Result

Your result will appear here.

0 characters · 0 lines

What it does

URL encoding, also called percent-encoding, writes characters that can’t appear in a URL as % and two hex digits, so a space becomes %20. This tool works with text:

How to use it

  1. Choose Encode or Decode, then paste or type into “Your text”. Select “Try a sample” to see an example.
  2. The result appears next to your text and updates as you type.
  3. Select Swap to move the result into “Your text” and switch between Encode and Decode, for example to check that an encoded value decodes back to your text.
  4. Select Copy to put the result on your clipboard.

Options

Good to know

Limits

Your text can be up to 1,000,000 characters long.

Privacy

Your text is processed on your device: encoding and decoding run in your browser, and nothing you type or paste is uploaded. Only your choices for the mode, Whole URL and Spaces as + are kept in your browser for next time.

Advertisements

Frequently asked questions

Should I encode a value or the whole URL?

Encode a single value, such as a search term or a parameter, with Whole URL off: every character that means something in a URL, such as / ? & and =, is escaped, so the value can't break the address. Turn on Whole URL for a complete address that only needs its spaces and accents escaped; its : / ? # & and = stay as they are.

Should a space be + or %20?

Both are common. %20 works everywhere in a URL. Web forms send a space as + in the query string, so turn on Spaces as + to write that form or to read it back; a real + is then written as %2B.

How are accents and emoji encoded?

Each character is first stored as UTF-8 bytes, and each byte is written as % and two hex digits. So é becomes %C3%A9 and € becomes %E2%82%AC. Decoding reads the bytes back as the same characters.

What is double encoding?

Encoding a value that is already encoded, so %20 turns into %2520. If a decoded result still holds escapes such as %20, it was encoded twice: select Swap, which moves the result into "Your text" and switches to Encode, then choose Decode to decode it once more.

Is my text uploaded?

No. Your text is processed on your device by your browser and is never sent to a server. Only the mode and the options you chose are remembered for your next visit.

Advertisements