URL Encoding Reference
Reference common percent-encoded characters used in URL paths, query strings, and form-encoded values.
| Character | Encoded | Component | Purpose | Example |
|---|---|---|---|---|
space |
%20 |
Path, query | Represents a space character in URLs. | hello%20world |
! |
%21 |
Path, query | Encodes an exclamation mark. | wow%21 |
" |
%22 |
Path, query | Encodes a double quote. | %22hello%22 |
# |
%23 |
Path, query | Encodes a hash symbol so it is not treated as a fragment marker. | tag%23one |
$ |
%24 |
Path, query | Encodes a dollar sign. | price%2410 |
% |
%25 |
Path, query | Encodes a percent sign. | 100%25 |
& |
%26 |
Query | Encodes an ampersand so it is not treated as a query parameter separator. | company=Tom%20%26%20Co |
' |
%27 |
Path, query | Encodes a single quote. | don%27t |
( |
%28 |
Path, query | Encodes an opening parenthesis. | item%281%29 |
) |
%29 |
Path, query | Encodes a closing parenthesis. | item%281%29 |
* |
%2A |
Path, query | Encodes an asterisk. | wildcard%2A |
+ |
%2B |
Query | Encodes a plus sign so it is not confused with a space in form-encoded query strings. | a%2Bb |
, |
%2C |
Path, query | Encodes a comma. | one%2Ctwo |
/ |
%2F |
Path segment, query | Encodes a slash so it is not treated as a path separator. | folder%2Ffile |
: |
%3A |
Path, query | Encodes a colon. | time%3A10 |
; |
%3B |
Path, query | Encodes a semicolon. | a%3Bb |
= |
%3D |
Query | Encodes an equals sign so it is not treated as a key/value separator. | filter=a%3Db |
? |
%3F |
Path, query | Encodes a question mark so it is not treated as the start of a query string. | what%3F |
@ |
%40 |
Path, query | Encodes an at sign. | user%40example.com |
[ |
%5B |
Path, query | Encodes an opening square bracket. | items%5B0%5D |
\ |
%5C |
Path, query | Encodes a backslash. | path%5Cfile |
] |
%5D |
Path, query | Encodes a closing square bracket. | items%5B0%5D |
^ |
%5E |
Path, query | Encodes a caret. | value%5E2 |
` |
%60 |
Path, query | Encodes a backtick. | %60code%60 |
{ |
%7B |
Path, query | Encodes an opening curly brace. | %7Bvalue%7D |
| |
%7C |
Path, query | Encodes a vertical bar. | a%7Cb |
} |
%7D |
Path, query | Encodes a closing curly brace. | %7Bvalue%7D |
~ |
%7E |
Path, query | Encodes a tilde, though it is commonly left unencoded. | %7Euser |
newline |
%0A |
Query, body | Represents a line feed newline. | line1%0Aline2 |
carriage return |
%0D |
Query, body | Represents a carriage return. | line1%0D%0Aline2 |
tab |
%09 |
Query, body | Represents a tab character. | col1%09col2 |