How to encode or decode a URL
- Choose Encode or Decode and paste your text. The result updates instantly.
- When encoding, choose how much to encode (see below). If you're not sure, use Component for a single value and Full URL for a complete address.
- If your input is a complete URL, its parts and decoded query parameters are listed underneath — handy for reading long tracking links.
Component vs. full URL encoding
URLs can only contain a limited set of ASCII characters. Everything else — spaces, accented letters, emoji and characters with special meaning — is written as % followed by two hex digits for each UTF-8 byte. A space becomes %20, “é” becomes %C3%A9.
| Mode | Leaves alone | Use it for |
|---|---|---|
| Component | A–Z a–z 0–9 - _ . ! ~ * ' ( ) | One query value, path segment or form field. Encodes & = ? / # so they can't break the URL structure. |
| Full URL | The above plus ; , / ? : @ & = + $ # | Cleaning up a whole URL that contains spaces or non-ASCII characters, without breaking its structure. |
| Form | Same as component, but space → + | Bodies of HTML form submissions and some older APIs. |
A classic bug is encoding a value with “full URL” mode: an & inside a search term is left as-is and splits the query string in two. Encode each value with component mode, then join them.
Decoding tips
- If you see
%2520, the text was encoded twice (%25is an encoded%). Decode it twice. - In query strings submitted from HTML forms,
+means a space. Tick “Treat + as space” when decoding those; leave it off for paths, where+is a literal plus sign. - A
%that isn't followed by valid hex digits makes the input malformed; the tool tells you instead of guessing.
Frequently asked questions
What is URL encoding?
Also called percent-encoding, it replaces characters that aren’t allowed or have special meaning in URLs with a % sign and their byte values in hexadecimal, for example a space becomes %20.
Should spaces be %20 or +?
Both mean a space in a query string submitted by an HTML form. In paths and in most modern APIs, use %20, because + is treated as a literal plus sign there.
Why do I get “malformed” when decoding?
The input contains a % that is not followed by a valid UTF-8 byte sequence, for example “100%” or a truncated “%E2%82”. Fix or remove that part and try again.
Is my URL sent anywhere?
No. Encoding, decoding and parsing all run in your browser; the URL is not requested or uploaded.