URL Encoder/Decoder
Encode and decode URLs for safe transmission in web applications.
URL Encoder
URL Decoder
Common URL Encodings
| Character | Encoded | Character | Encoded |
|---|---|---|---|
| Space | %20 or + | ! | %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?