URL encoding and address parser

Percent-encoding both ways, and an address split into parts and parameters.

Encoding

What to encode

For a parameter value or a path segment: everything is encoded except letters, digits and - _ . ! ~ * ' ( ). Same as encodeURIComponent.

Address parser

How URL encoding works

Only Latin letters, digits and a few symbols are allowed in an address. Everything else is written as UTF-8 bytes with a percent sign: "п" becomes %D0%BF. The decoder converts such addresses back to readable text.

The "address fragment" mode encodes everything except letters and digits, which is how you prepare a parameter value. The "whole address" mode leaves / ? & = # in place so the address keeps working. The breakdown shows the scheme, domain, path and each parameter separately.

FAQ

How do I decode a Russian URL?
Paste the address with percent codes into the right field: the text appears in the left one. A plus in form parameters means a space, so for such strings turn on the "space as +" checkbox.

You might also need