Encode text for safe URL transmission or decode URL-encoded strings. Perfect for web developers, API testing, and SEO work.
URL encoding, also known as percent-encoding, converts characters into a format that can be transmitted over the Internet. Special characters are replaced with a "%" followed by two hexadecimal digits representing the character's ASCII code.
Component Encoding (encodeURIComponent): Encodes all special characters except: A-Z a-z 0-9 - _ . ! ~ * ' ( )
Use this for encoding URL parameters and query strings.
Full URL Encoding (encodeURI): Preserves URL structure characters: : / ? # [ ] @ ! $ & ' ( ) * + , ; =
Use this for encoding complete URLs while maintaining their structure.
| Character | URL Encoded | Description |
|---|---|---|
| Space | %20 |
Space character |
| ! | %21 |
Exclamation mark |
| # | %23 |
Hash/pound sign |
| $ | %24 |
Dollar sign |
| % | %25 |
Percent sign |
| & | %26 |
Ampersand |
| + | %2B |
Plus sign |
| = | %3D |
Equal sign |
Original: "Hello World! How are you?"
URL Encoded: "Hello%20World!%20How%20are%20you%3F"
Full URL: "https://example.com/search?q=Hello World"
Encoded URL: "https://example.com/search?q=Hello%20World"