URL Encoder / Decoder

Encode text so it can be used safely in a link or query string, decode a messy %-encoded URL into readable text, or split a URL into host, path and query parameters.

Runs entirely in your browser. Nothing you enter is uploaded or stored.

How to encode or decode a URL

  1. Choose Encode or Decode and paste your text. The result updates instantly.
  2. 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.
  3. 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.

ModeLeaves aloneUse it for
ComponentA–Z a–z 0–9 - _ . ! ~ * ' ( )One query value, path segment or form field. Encodes & = ? / # so they can't break the URL structure.
Full URLThe above plus ; , / ? : @ & = + $ #Cleaning up a whole URL that contains spaces or non-ASCII characters, without breaking its structure.
FormSame 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

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.