1. Home
  2. Generators & Encoders
  3. URL Encode / Decode

URL Encode & Decode

Percent-encode or decode a query value or a whole URL in your browser. UTF-8 is preserved.

What it is for?
Runs in your browser Free, no sign-up

What it is for?

A URL can only carry a small set of characters. Spaces, Turkish letters, emoji and marks such as & or = must be written as a percent sign and two hex digits, for example %20 for a space. You need this when you build a link by hand, put a search term or a redirect address into a query string, or read an encoded value from a log.

Query value or whole URL

Query value encodes everything except letters, digits and a few safe marks, which is what you want for a single parameter. Whole URL leaves the characters that give a link its structure, such as : / ? & =. Spaces as + matches an HTML form submission.

Spaces as + only applies to Query value. Text is encoded as UTF-8, so ç becomes %C3%A7, two bytes.

Example

The value a b&c=ç encoded as a Query value becomes a%20b%26c%3D%C3%A7. Now it can sit safely after q= in a link. With Whole URL the & and = would stay, and the server would read them as a new parameter.

Common mistakes

  • Encoding twice. If the text already contains %20, encoding it again gives %2520. Decode first when you are not sure.
  • Decode always turns + into a space, as a form submission would. If a value holds a real plus sign, it must be sent as %2B.
  • Using Whole URL for a single value. It leaves & ? = and # untouched, which breaks the query string.
  • A lone % or a broken sequence such as %E is not valid. Decode shows an error instead of guessing.

It stays in the browser

Encoding and decoding run in this tab. The text is not sent to a server, so a URL with a token in it does not leave your machine.