URL Encoder / Decoder

Make text safe for URLs, or turn %20-style encoded links back into readable text and see their parameters.

Mode
Encode

Two encoding modes

  • Everything: encodes all special characters (& = ? / #), like JavaScript's encodeURIComponent. Use it for individual query-string values; tick Spaces as + for form data.
  • Keep URL structure: leaves : / ? & = intact, like encodeURI. Use it to clean up a whole link with spaces or non-English text.

Tick Each line separately to encode or decode a list, one value per line.

Example

a b&c=₹ → a%20b%26c%3D%E2%82%B9, or a+b%26c%3D%E2%82%B9 with spaces as +.

Frequently asked questions

Why is a space %20 or +?

In a web address a space is %20 (RFC 3986). HTML forms and query strings often write it as +, the application/x-www-form-urlencoded format browsers use. Tick Spaces as + to encode that way. When decoding, + is read as a space unless you untick it, for paths where + really is a plus, as in /c++.

Should I encode everything or keep the URL structure?

Encode everything for a single value going into a query string, such as a search term or a redirect address, so its & = ? and / can't break the link. Keep URL structure to tidy a whole link that has spaces or non-English letters, leaving its : / ? & = in place.

How do I read a long tracking link?

Paste it in Decode. The decoded link is shown, and below it every query parameter (utm_source, q, ref and so on) is listed with its decoded value.

What does %E2%82%B9 mean?

It is the ₹ sign in UTF-8: characters outside basic English take two to four bytes, each written as % and two hex digits. é is %C3%A9 and the emoji 👋 is %F0%9F%91%8B.

Why do I get an invalid percent-encoding error?

A % isn't followed by two hex digits, or a multi-byte character was cut off. The message shows the sequence and where it is, so you can fix or remove it.

More text and developer tools

See all text and developer tools →

Can't find the tool you need? Tell us.