URL Encode and Decode

Free URL encoder and decoder: percent-encode text or a full URL, decode %20 and + back to text, and list every query parameter. UTF-8, runs in your browser.

✓ Free🔒 Private⚡ No sign-up

🔒 Runs entirely in your browser. Your files are never uploaded.

</> Add to your site

Embed this tool on your website for free: copy the code and paste it into your page's HTML. Everything runs in your visitors' browsers; files are not uploaded.

Preview ↗

How to encode or decode a URL

  1. Choose Encode or Decode.
  2. Paste the text, query value or full URL into the input box. The result appears instantly.
  3. When encoding, choose Component for a single value or Full URL for a whole address. Tick Space as + for HTML form data.
  4. If the input contains a query string (?name=value&…), every parameter is listed below in decoded form.

Common encoded characters

| Character | Encoded | Character | Encoded |

|---|---|---|---|

| space | %20 (or + in forms) | # | %23 |

| ! | %21 | $ | %24 |

| & | %26 | ' | %27 |

| ( ) | %28 %29 | + | %2B |

| , | %2C | / | %2F |

| : | %3A | ; | %3B |

| = | %3D | ? | %3F |

| @ | %40 | % | %25 |

Letters A–Z and a–z, digits and the four characters - _ . ~ are never encoded.

Non-English characters

Characters outside ASCII are first converted to UTF-8 bytes and every byte is encoded: ü → %C3%BC, ş → %C5%9F, € → %E2%82%AC and an emoji takes four bytes. Browsers often show the readable form in the address bar but send the encoded form.

Component vs full URL

| Input | Component | Full URL |

|---|---|---|

| a b&c=d | a%20b%26c%3Dd | a%20b&c=d |

| https://x.com/?q=ç | https%3A%2F%2Fx.com%2F%3Fq%3D%C3%A7 | https://x.com/?q=%C3%A7 |

Use component encoding when you build a URL from pieces — for example a search term placed after ?q= — so a & in the value is not read as a new parameter. In JavaScript this is encodeURIComponent; this tool additionally encodes ! ' ( ) * as RFC 3986 recommends.

Is it safe?

Encoding is not encryption — anyone can decode it. All processing happens in your browser; nothing you paste is sent anywhere.

Frequently asked questions

What is URL encoding?

URL encoding (percent-encoding) replaces characters that are not allowed or have a special meaning in a URL with % followed by two hexadecimal digits of their UTF-8 bytes. A space becomes %20, & becomes %26 and ç becomes %C3%A7.

Should I encode a component or the full URL?

Encode a component (one query value, path segment or form field) in most cases: it also encodes / ? & = # so they cannot break the URL. Choose the full URL option only to clean up a whole address; it keeps the separators and encodes spaces and non-ASCII characters.

Is a space %20 or +?

Both appear. %20 is the standard percent-encoding used everywhere in a URL. HTML forms send query strings as application/x-www-form-urlencoded, where a space is written as +. Tick the + option to encode or decode that form style.

Why do I get an error when decoding?

The text contains a % that is not followed by two hexadecimal digits, or the bytes are not valid UTF-8 (for example a cut-off %C3). Check that the whole value was copied. A lone % must itself be encoded as %25.

Sources

Last updated: