URL Encoder & Decoder Online

Percent-encode and decode URLs and query strings online, and split any URL into its parts and query parameters. Free, instant and private.

How to encode or decode a URL

  1. Choose Encode or Decode.
  2. Paste text or a URL. The result updates as you type.
  3. When encoding, choose Component for a single value (like a search term going into ?q=) or Whole URL to keep the address's structure.
  4. When the input is a full URL, its parts (host, path and every query parameter, decoded) are listed underneath.

Characters that get encoded

CharacterEncodedCharacterEncoded
space%20&%26
/%2F=%3D
?%3F#%23
+%2B%%25
@%40é%C3%A9
ñ%C3%B1€%E2%82%AC

Frequently asked questions

What is URL encoding?

URL encoding (percent-encoding) replaces characters that aren't allowed in URLs with a % followed by two hex digits. A space becomes %20, & becomes %26 and é becomes %C3%A9. It keeps the meaning of a URL intact when it contains special characters.

What's the difference between encodeURIComponent and encodeURI?

encodeURIComponent encodes everything except letters, digits and - _ . ! ~ * ' ( ). Use it for a single value, like a query parameter. encodeURI leaves characters that structure a URL (: / ? # & =) alone, so use it for a whole address.

Why does + sometimes mean a space?

In HTML form submissions (application/x-www-form-urlencoded), spaces are written as +. That's why decoding treats + as a space by default. Untick the option if your + signs are real plus signs.

Is my URL sent anywhere?

No. Encoding, decoding and URL parsing happen in your browser. Nothing is logged or uploaded, so it's safe for links containing tokens.

Related tools