What is URL Encoding?
URL encoding (also called percent-encoding) converts characters into a format that can be safely transmitted over the internet. Special characters like spaces, &, ?, =, and non-ASCII characters must be encoded because they have special meanings in URLs or are not allowed.
Each encoded character is replaced by a % followed by two hexadecimal digits. For example, a space becomes %20.
Common examples
| Character | Encoded |
|---|---|
| Space | %20 |
| @ | %40 |
| & | %26 |
| ? | %3F |
| = | %3D |
| + | %2B |
| # | %23 |