Description
URL only supports ASCII transmission.
URL encoding encodes characters into a transferable format.
URL encoding uses % followed by two hexadecimal numbers to encode unsupported characters.
URL cannot contain spaces, URL encoding replaces spaces with %20
.
Reserved characters
Reserved characters mean these characters have special purposes in certain situations, for example, the forward slash / can be used to separate directories.
Reserved characters |
percent-encoding |
newline |
%0A or %0D or %0D%0A |
space |
%20 |
! |
%21 |
# |
%23 |
$ |
%24 |
% |
%25 |
& |
%26 |
' |
%27 |
( |
%28 |
) |
%29 |
* |
%2A |
+ |
%2B |
, |
%2C |
/ |
%2F |
: |
%3A |
; |
%3B |
= |
%3D |
? |
%3F |
@ |
%40 |
[ |
%5B |
] |
%5D |
Unreserved characters
Unreserved characters mean these characters can be transmitted directly. For characters outside of the reserved set, they require percent encoding for transmission.
RFC 3986 section 2.3 Unreserved Characters (January 2005) |
A |
B |
C |
D |
E |
F |
G |
H |
I |
J |
K |
L |
M |
N |
O |
P |
Q |
R |
S |
T |
U |
V |
W |
X |
Y |
Z |
a |
b |
c |
d |
e |
f |
g |
h |
i |
j |
k |
l |
m |
n |
o |
p |
q |
r |
s |
t |
u |
v |
w |
x |
y |
z |
0 |
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
- |
_ |
. |
~ |
|