URL Encoder & Decoder

Encode or decode URLs and query parameters in real time. Supports both encodeURI and encodeURIComponent.

0 charactersPlain text
0 charactersEncoded text

Quick Reference: Common Encodings

Space%20
!%21
#%23
$%24
&%26
+%2B
/%2F
:%3A
=%3D
?%3F

What is URL Encoding?

URL encoding (also called percent-encoding) converts characters into a format that can be transmitted over the Internet. Special characters are replaced with a percent sign followed by their hex value (e.g., a space becomes %20).

encodeURI vs encodeURIComponent

encodeURI encodes a full URI but preserves characters that have special meaning in a URL (like :, /, ?, &, =, #).

encodeURIComponent encodes everything, including those reserved characters. Use it when encoding a single query parameter value.

When to Use Each

  • Use encodeURI for encoding a complete URL while keeping its structure intact.
  • Use encodeURIComponent for encoding individual query parameter keys or values.