URL Encoder & Decoder

Encode special characters for URLs or decode percent-encoded strings instantly.

What is URL Encoding?

URL encoding (also called percent-encoding) converts characters into a format that can be transmitted over the Internet. URLs can only be sent using the ASCII character set — special characters are replaced with a % followed by two hexadecimal digits.

encodeURI vs encodeURIComponent

  • encodeURIComponent — encodes everything except A-Z a-z 0-9 - _ . ! ~ * ' ( )
  • encodeURI — preserves URL structure characters like : / ? # [ ] @

Common Use Cases

  • Encoding query parameter values
  • Making URLs safe for sharing
  • Encoding form data
  • Working with REST APIs