π
URL Encoder/Decoder
Encode and decode URLs and URL components safely.
- Encode URI
- Decode URI
- Component encoding
- Special chars
- Query strings
Mode
Encoding type
Common examples
Query string parameter
Input:
name=John Doe&city=New York
Output:
name=John%20Doe&city=New%20York
Full URL with special chars
Input:
https://example.com/search?q=hello world&lang=es
Output:
https://example.com/search?q=hello%20world&lang=es
Path with spaces
Input:
/api/users/John Doe
Output:
/api/users/John%20Doe
Special character reference
| Character | Encoded | Description |
|---|---|---|
| (space) | %20 | Space |
| ! | %21 | Exclamation |
| # | %23 | Hash/Fragment |
| $ | %24 | Dollar sign |
| & | %26 | Ampersand |
| ' | %27 | Single quote |
| ( | %28 | Open paren |
| ) | %29 | Close paren |
| * | %2A | Asterisk |
| + | %2B | Plus sign |
| , | %2C | Comma |
| / | %2F | Forward slash |
| : | %3A | Colon |
| ; | %3B | Semicolon |
| = | %3D | Equals |
| ? | %3F | Question mark |
| @ | %40 | At symbol |