← Profiterole

URL Encoder / Decoder

Percent-encode URLs or decode them back to plain text — instantly, client-side, no server.

Input text (to encode)
Mode:
Encoded output

What is URL encoding?

URL encoding (percent-encoding) replaces unsafe characters with %XX hex sequences. Spaces become %20, & becomes %26, etc.

encodeURIComponent

Encodes everything except A-Z a-z 0-9 - _ . ! ~ * ' ( ). Use this for query parameters and form values. Most common choice.

encodeURI

Encodes everything except characters allowed in a full URI: leaves : / ? # [ ] @ ! $ & ' ( ) * + , ; = - intact. Use for full URLs.

Form data (+ spaces)

HTML forms encode spaces as + instead of %20. This is the application/x-www-form-urlencoded format used by GET/POST forms.

Buy me a coffee