Back to all tools

URL Encoder / Decoder

Encode and decode URLs, parse query parameters, and build URLs with an interactive editor

Developer Tools
encodeURIComponent
decodeURIComponent

About URL Encoding

URL encoding (also known as percent-encoding) converts special characters into a format that can be safely transmitted over the internet. Characters are replaced with a percent sign (%) followed by two hexadecimal digits.

Common Encoded Characters:
  • Space → %20 (or +)
  • ! → %21
  • # → %23
  • $ → %24
  • % → %25
  • & → %26
  • = → %3D
When to Use:
  • Passing data in URL query parameters
  • Building API requests with special characters
  • Creating shareable links with user input
  • Encoding form data for HTTP requests
  • Working with URLs containing non-ASCII characters

Note: This tool uses encodeURIComponent() for encoding and decodeURIComponent() for decoding, which is the standard method for encoding URL parameters in JavaScript.