URL Encoder / Decoder

Paste a URL or text string on the left and encode or decode it on the right. Uses encodeURIComponent and decodeURIComponent — safe for query parameters and path segments.


When to use URL encoding

FAQ

What characters get encoded?

All characters except unreserved ones: A–Z, a–z, 0–9, - _ . ! ~ * ' ( ). Spaces become %20.

What is the difference between encode and encodeURIComponent?

This tool uses encodeURIComponent which also encodes reserved URI characters like / ? # & =, making it safe for encoding individual parameter values.

Related: Base64 Encoder / Decoder · HTML Entity Encoder · All Tools