URL Encoder and Decoder

Encode text for use in a URL, decode a percent-encoded string, or paste a full URL to see its parts and query parameters.

Your text

Up to 500,000 characters (8,192 for splitting a URL).

Type or paste something to encode, decode or split.

How to

Work with URLs in three steps

  1. Paste your text or URL Anything you would put in a link: a search term, a query value, an encoded string or a whole address.
  2. Pick what to do Encode a single value, encode a whole URL without breaking its structure, encode form data, decode, or split a URL into its parts.
  3. Read or copy the result Bad percent codes are reported by position, and split URLs list every query parameter in decoded form.

Getting URL encoding right

  • Encode the value, not the whole URL: encoding a full address with the value option also encodes the slashes and colons.
  • A space is %20 in a path and may be + in form data. The two are not interchangeable everywhere.
  • Encode only once. Encoding an already encoded string turns % into %25 and breaks the link.
  • Do not put passwords or tokens in URLs; they end up in logs and browser history.

FAQ

URL encoding questions

What is URL or percent encoding?

It writes characters that are not allowed in a URL as a percent sign and two hex digits, such as a space becoming %20.

What is the difference between encoding a value and a whole URL?

Encoding a value escapes every special character, including / ? & and =. Encoding a whole URL leaves those alone so the address keeps its structure.

Why does decoding fail?

A % that is not followed by two hex digits, or codes that do not form valid UTF-8, cannot be decoded. The tool tells you where the problem is.

When is + a space?

In HTML form data (application/x-www-form-urlencoded). In the path of a URL a + is just a plus sign.

Does the URL splitter open the link?

No. It only reads the text you paste. Nothing is fetched or visited.

More developer tools