UtilixWebCode → URL Encoder / Decoder

URL Encoder / Decoder

Encode or decode percent-encoded URLs instantly

About URL Encoding

URL encoding (percent-encoding) replaces special characters with a % followed by two hex digits. This ensures URLs are transmitted safely over the internet.

When to use

  • Encoding query string parameters before adding to a URL
  • Decoding URL-encoded data from API responses
  • Fixing broken URLs with special characters (spaces, &, #, etc.)
  • Working with form data submission

encodeURIComponent vs encodeURI

  • encodeURIComponent — encodes everything except letters, digits, - _ . ! ~ * ' ( ). Use for parameters.
  • encodeURI — preserves URL structure characters like / ? # =. Use for full URLs.