URL Encoder / Decoder

Encode special characters into percent-escaped form, or decode an escaped URL component. Useful for query strings and API parameters.

Frequently asked questions

What characters get encoded?

encodeURIComponent escapes everything except letters, digits and - _ . ! ~ * ' ( ). Spaces become %20.

Why not encode a whole URL at once?

Encoding a full URL will also escape the : / ? and & separators. Encode individual parameter values instead.

Is anything uploaded?

No. Encoding uses built-in browser functions and stays on your device.

What if decoding fails?

The input likely contains a malformed percent escape such as a lone %. Check the string and try again.