URL Encoder and Decoder

Paste text or a link and encode it for safe use in a URL, or decode a percent-encoded string. Choose between encoding a part of a URL and a whole URL.

Use the tool

Loading the tool…

About URL Encoder and Decoder

Encode text so that it can be used safely in a web address, or decode a percent-encoded address back to text. Choose whether to encode a part of a URL, which also encodes characters such as / ? & and =, or a whole URL, which keeps those characters.

Worked example

Encode a search phrase with spaces as a part of a URL. The spaces become %20.

Limits

Encoding a whole URL keeps its structure, but encoding a part of a URL changes the reserved characters. Choose the option that matches what you are encoding.

How to use URL Encoder and Decoder

  1. Paste your text or URL.
  2. Choose to encode a part of a URL, encode a whole URL, or decode.
  3. Read the result as it appears and copy it.

Good to know

  • Encoding a part of a URL changes characters such as / ? & = and #. Use it for a value inside a query string.
  • Encoding a whole URL keeps the characters that give a URL its structure.
  • When decoding form data, tick the plus option to turn + into a space.
  • Decoding fails with a clear message if a % sign is not followed by two hex digits or the bytes are not valid UTF-8.

Frequently asked questions

Which mode should I use for a query value?

Use Encode a part of a URL. It also changes & and = so they cannot split the value.

Why does + stay as + when I decode?

In a normal URL, + is a plus sign. In form data it means a space. Tick the option if your text is form data.

Is my text stored?

No. It is processed in your browser only.