URL Encoder/Decoder

Encodes and decodes URLs for safe transmission

URL Encoder/Decoder
CharacterEncodedCharacterEncoded
Space%20 oder +!%21
#%23$%24
&%26'%27
(%28)%29
+%2B,%2C
/%2F:%3A
=%3D?%3F
@%40ä%C3%A4
What is URL encoding?

URL encoding (also percent-encoding) converts special characters into a format that can be safely used in URLs.

Characters are represented as %XX, where XX is the hexadecimal value.

encodeURI vs encodeURIComponent
encodeURI()
For complete URLs. Leaves :/?#[]@!$&'()*+,;= unchanged.
encodeURIComponent()
For URL parameters. Encodes everything except -_.!~*'().
When to use URL encoding?
  • Query parameters with special characters
  • Submitting form data
  • API requests containing special characters
  • Filenames in URLs

Was this tool helpful?