URL Encode "https://example.com/path?a=1&b=2"
Original
https://example.com/path?a=1&b=2
URL Encoded
https%3A%2F%2Fexample.com%2Fpath%3Fa%3D1%26b%3D2
"https://example.com/path?a=1&b=2" URL encoded is: https%3A%2F%2Fexample.com%2Fpath%3Fa%3D1%26b%3D2
Common URL-encoded characters
| Character | Encoded | Name |
|---|---|---|
| %20 | space | |
| / | %2F | slash |
| ? | %3F | question mark |
| = | %3D | equals |
| & | %26 | ampersand |
| @ | %40 | at sign |
| # | %23 | hash |
| + | %2B | plus |
| % | %25 | percent |
How URL encoding works
URL encoding (percent-encoding) replaces unsafe characters with % followed by two hex digits. "https://example.com/path?a=1&b=2" becomes "https%3A%2F%2Fexample.com%2Fpath%3Fa%3D1%26b%3D2" because special characters like spaces, @, and / must be encoded in URLs.
Try the URL encoder
Loading tool...