URL Encode & Decode

Percent-encode text so it's safe inside a URL, decode encoded URLs back to readable text, and break any URL into its parts.

Result

URL parts

Enter a full URL (starting with http:// or https://) to see its parts.

How to use it

  1. Choose a mode: Encode text / parameter, Encode full URL or Decode.
  2. Paste your text into Input. The result appears as you type; press Copy to take it.
  3. When the input is a full web address, URL parts splits it into protocol, host, port, path, query and fragment, and lists every query parameter with its decoded value.

When to use which mode

What is percent-encoding?

URLs can only contain a limited set of characters. Everything else is written as % followed by two hexadecimal digits per byte of its UTF-8 code. A space becomes %20 and "é" becomes %C3%A9.

Common encoded characters

FAQ

Why do I get "URI malformed"?

The text contains a % that isn't followed by a valid code, like 100%. Encode the text first, or fix the stray percent sign.

Should a space be %20 or +?

Both are common. %20 works everywhere in a URL. + means a space only in query strings sent by HTML forms, so tick Treat + as space when you decode those.

Is URL encoding a form of encryption?

No. Anyone can decode it in a second. It only makes text safe to put in an address, so never put passwords or other secrets in a URL.