Encodes special characters (except: - _ . ! ~ * ' ( ))
Decodes percent-encoded characters
Encodes a full URL while preserving structure
Decodes a full URL
Convert between Unicode domain names and ASCII-compatible encoding
Analyze and break down URL components
No query string found in URL
Build and generate query strings
Parse and display query string parameters
Process multiple URLs at once (one per line)
| Character | Encoded | Description |
|---|---|---|
| space | %20 | Space character |
| ! | %21 | Exclamation mark |
| # | %23 | Hash/Fragment identifier |
| $ | %24 | Dollar sign |
| & | %26 | Ampersand/Parameter separator |
| ' | %27 | Single quote |
| ( | %28 | Left parenthesis |
| ) | %29 | Right parenthesis |
| * | %2A | Asterisk |
| + | %2B | Plus sign |
| , | %2C | Comma |
| / | %2F | Forward slash |
| : | %3A | Colon |
| ; | %3B | Semicolon |
| = | %3D | Equals/Parameter assignment |
| ? | %3F | Question mark/Query indicator |
| @ | %40 | At symbol |
| [ | %5B | Left bracket |
| ] | %5D | Right bracket |
Reserved characters have special meaning in URLs and should be encoded when used as data: : / ? # [ ] @ ! $ & ' ( ) * + , ; =
Unreserved characters don't need encoding: A-Z a-z 0-9 - _ . ~
encodeURIComponent → Encodes everything except: - _ . ! ~ * ' ( )
encodeURI → Preserves URL structure, doesn't encode: ; , / ? : @ & = + $ #
Punycode is an ASCII-compatible encoding of Unicode used for Internationalized Domain Names (IDN).
Unicode characters are converted to ASCII with the prefix xn--.
Example: münchen.de → xn--mnchen-3ya.de