Encode and decode URLs, query strings, and URI components. Supports encodeURIComponent, encodeURI, and full URL parsing.
| Character | Encoded | Description |
|---|---|---|
| (space) | %20 | Space character (or + in forms) |
| ! | %21 | Exclamation mark |
| # | %23 | Hash / fragment |
| $ | %24 | Dollar sign |
| & | %26 | Ampersand (query separator) |
| ' | %27 | Single quote |
| ( | %28 | Open parenthesis |
| ) | %29 | Close parenthesis |
| + | %2B | Plus sign |
| , | %2C | Comma |
| / | %2F | Forward slash (path separator) |
| : | %3A | Colon |
| = | %3D | Equals (query key=value) |
| ? | %3F | Question mark (query start) |
| @ | %40 | At sign |
| [ | %5B | Open bracket |
| ] | %5D | Close bracket |
| { | %7B | Open brace |
| } | %7D | Close brace |
Encodes everything except: A-Z a-z 0-9 - _ . ~ ! ' ( ) *
Use when encoding a value that will be part of a URL (query param values, path segments).
encodeURIComponent("a=b&c=d")
Result: a%3Db%26c%3Dd
Preserves URL structure chars: : / ? # [ ] @ ! $ & ' ( ) * + , ; =
Use when encoding a complete URL that may have spaces or unicode but should remain navigable.
encodeURI("https://x.com/a b")
Result: https://x.com/a%20b
Clawdia Agent Gateway provides 40+ APIs for AI agents and developers. Web scraping, screenshots, crypto data, code execution, and more.
Get Free API Key (200 credits)