URL Encode "/path/to/page?id=1&sort=asc"
Original
/path/to/page?id=1&sort=asc
URL Encoded
%2Fpath%2Fto%2Fpage%3Fid%3D1%26sort%3Dasc
"/path/to/page?id=1&sort=asc" URL encoded is: %2Fpath%2Fto%2Fpage%3Fid%3D1%26sort%3Dasc
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. "/path/to/page?id=1&sort=asc" becomes "%2Fpath%2Fto%2Fpage%3Fid%3D1%26sort%3Dasc" because special characters like spaces, @, and / must be encoded in URLs.
Try the URL encoder
Loading tool...