Developer / URL text

URL Encoder / Decoder

Percent-encode text intended for one URL component, or decode an encoded component back to readable Unicode.

What percent-encoding does

Characters that are not safe in a URL component are represented as UTF-8 bytes written with percent signs, such as a space becoming %20. The encoder uses component rules, which are suited to individual query values, path segments and similar pieces.

Decoding requires complete and valid percent sequences. A stray percent sign or invalid UTF-8 sequence produces a clear error rather than partial output.