URL Encode & Decode

Percent-encode text for URLs, decode %XX sequences, or break a URL into its parts.

Mode

Everything you enter is processed inside this browser and is never sent to a server.

How to use it

What URL encoding is

Only letters, digits and a few symbols may appear in a URL as is. Anything else, including spaces, accented letters and characters with special meaning such as “&” and “=”, is converted to UTF-8 bytes and each byte is written as “%” followed by two hex digits. This is called percent-encoding. For example, “é” becomes %C3%A9.

Which method to choose

MethodUse it for“a b&c/” becomes
Value or path (encodeURIComponent)A single query value or path segmenta%20b%26c%2F
Whole URL (encodeURI)A complete URL. Separators such as / ? & are kepta%20b&c/
FormHTML form data. Spaces become +a+b%26c%2F

If unsure, use “Value or path”. It is the right choice for anything you insert into part of a URL, such as a search term.

Frequently asked questions

Why does decoding say the sequence is not valid UTF-8?

Some older websites encoded text with legacy character sets such as Latin-1 or Shift_JIS. This tool decodes UTF-8, the standard for modern URLs.

Why are “+” signs not turned into spaces?

Only form encoding uses “+” for spaces. Tick “Treat + as a space” when decoding form data or search URLs.

Is the URL sent anywhere?

No. Even parsing happens entirely in your browser.