URL encode and decode

Make text safe to put in a web address, or turn an encoded URL full of %20 and %3F back into something readable.

How to URL encode and decode

  1. Choose Encode or Decode.
  2. Type or paste into the left box. The result appears on the right.
  3. Click Copy to put the result on your clipboard.

What is URL encoding?

Web addresses can only contain a limited set of characters. Anything else, such as spaces, accents and symbols like & or ?, has to be written as a percent sign followed by a two-character code. This is called URL encoding or percent-encoding. A space becomes %20, for example, and & becomes %26.

Common codes

CharacterEncodedCharacterEncoded
space%20&%26
?%3F=%3D
/%2F#%23
:%3A+%2B
@%40%%25

Encoding a value or a whole URL

By default the tool encodes everything, which is what you want for a single value going into a link, such as a search term or an email address in a query string. If you paste a complete address and want it to keep working, tick Keep a full URL working. The characters that give a URL its structure are then left alone and only spaces, accents and unsafe symbols are encoded.

Why is a space sometimes a plus sign?

Web forms use an older rule where a space is written as + instead of %20. When decoding, the tool treats + as a space by default. Untick the option if your text contains real plus signs.

Your text stays on your device

Everything happens in your web browser. Nothing you type or paste is sent to a server or stored, so it is safe to use with private notes, passwords, keys and work documents. There is no sign-up and no limit.

Frequently asked questions

How do I URL encode a string?

Choose Encode and paste the text. The percent-encoded version appears on the right.

What does %20 mean in a URL?

It is the code for a space. URLs cannot contain real spaces, so they are written as %20.

How do I decode a URL?

Choose Decode and paste the encoded address or text. The readable version appears on the right.

Is my text uploaded?

No. Encoding and decoding run in your browser.