URL Encode and Decode

Encode text for use in a web address, or decode percent-encoded text.

I want to

Encodes every special character. Use it for one query value, like a search term.

 
Parts of this URL
Protocol
Host
Path
Fragment (#)

Use this tool on EWD Labs

This copy of the tool can't run here. Open the original, free version instead.

Open URL Encode and Decode

Runs in your browser. Nothing you type is uploaded.

How to use the URL encoder

  1. Choose Encode a value for a single search term or parameter, Encode a full URL for a whole web address, or Decode.
  2. Type or paste your text. The result updates as you type.
  3. When you decode a full URL, open Parts of this URL to see each query value on its own line.

Encode a value or a full URL?

A value like chai & samosa must have every special character encoded, giving chai%20%26%20samosa, or the & would start a new parameter. A full URL keeps characters like /, ? and & so it still works as an address.

Common codes

  • %20 is a space (forms often use + instead)
  • %26 is &, %3D is =, %3F is ?
  • %2F is /, %23 is #, %25 is % itself
  • Letters outside English become several codes. For example, ₹ is %E2%82%B9

Frequently asked questions

What is the difference between the two encode options?

Encode a value encodes every special character, for one query value. Encode a full URL keeps characters like / ? & = so the address still works.

Why is a space sometimes + and sometimes %20?

Web forms send spaces as +, while addresses use %20. Tick Treat + as a space when decoding form data.

Why do I get a broken % code error?

Each % must be followed by two hex digits, such as %2F. A lone % or a cut-off code can't be decoded.