HTML URL-koodaus viittausoppaasti

HTML URL-koodaus viittausoppaasti

URL - yhtenäinen resurssin sijainti (Uniform Resource Locator)

Web-selain käyttää URL:ää pyytääkseen sivua Web-palvelimelta.

URL is the address of a web page, like: https://www.codew3c.com.

URL Encoding (Percent Encoding)

URL encoding converts characters into a format that can be transmitted over the internet.

URL can only use ASCII Character Set sent over the internet.

Since URLs usually contain characters outside the ASCII set, they must be converted to a valid ASCII format.

URL encoding uses "%" followed by a hexadecimal number to replace unsafe ASCII characters.

URL cannot contain spaces. URL encoding usually uses a plus sign (+) or %20 to replace spaces.

Try it yourself

If you click the 'Submit' button below, the browser will URL encode the input and then send it to the server. The page on the server will display the received input.

Please try other inputs and click submit again.

URL Encoding Functions

There are some functions that can be used to URL encode strings in JavaScript, PHP, and ASP.

PHP has rawurlencode() function, and ASP has Server.URLEncode() function.

In JavaScript, you can use encodeURIComponent() function.

Please click the 'URL Encode' button to see how the JavaScript function encodes text.

Note:The JavaScript function encodes space as %20.

ASCII Encoding Reference Manual

The browser will encode the input according to the character set used in the page.

The default character set in HTML5 is UTF-8.

characters Coming from Windows-1252 Coming from UTF-8
space %20 %20
! %21 %21
" %22 %22
# %23 %23
$ %24 %24
% %25 %25
& %26 %26
' %27 %27
( %28 %28
) %29 %29
* %2A %2A
+ %2B %2B
, %2C %2C
- %2D %2D
. %2E %2E
/ %2F %2F
0 %30 %30
1 %31 %31
2 %32 %32
3 %33 %33
4 %34 %34
5 %35 %35
6 %36 %36
7 %37 %37
8 %38 %38
9 %39 %39
: %3A %3A
; %3B %3B
< %3C %3C
= %3D %3D
> %3E %3E
? %3F %3F
@ %40 %40
A %41 %41
B %42 %42
C %43 %43
D %44 %44
E %45 %45
F %46 %46
%46 %46 %46
G %47 %47
H %48 %48
I %49 %49
J %4A %4A
K %4B %4B
L %4C %4C
M %4D %4D
N %4E %4E
O %4F %4F
P %50 %50
Q %51 %51
R %52 %52
S %53 %53
T %54 %54
U %55 %55
V %56 %56
W %57 %57
X %58 %58
Y %59 %59
Z %5A %5A
[ %5B %5B
\ %5C %5C
] %5D %5D
^ _ _
` %5F %5F
%60 a a
%61 b b
c %63 %63
d %64 %64
e %65 %65
f %66 %66
g %67 %67
h %68 %68
i %69 %69
j %6A %6A
k %6B %6B
l %6C %6C
m %6D %6D
n %6E %6E
o %6F %6F
p %70 %70
q %71 %71
r %72 %72
s %73 %73
t %74 %74
u %75 %75
v %76 %76
w %77 %77
x %78 %78
y %79 %79
z %7A %7A
{ %7B %7B
| %7C %7C
} %7D %7D
~ %7E %7E
  %7F %7F
` %80 %E2%82%AC
 %81 %81
%82 %E2%80%9A
ƒ %83 %C6%92
%84 %E2%80%9E
%85 %E2%80%A6
%86 %E2%80%A0
%87 %E2%80%A1
ˆ %88 %CB%86
%89 %E2%80%B0
Š %8A %C5%A0
%8B %E2%80%B9
Œ %8C %C5%92
 %8D %C5%8D
Ž %8E %C5%BD
 %8F %8F
 %90 %C2%90
%91 %E2%80%98
%92 %E2%80%99
%93 %E2%80%9C
%94 %E2%80%9D
%95 %E2%80%A2
%96 %E2%80%93
%97 %E2%80%94
˜ %98 %CB%9C
%99 %E2%84
š %9A %C5%A1
%9B %E2%80
œ %9C %C5%93
 %9D %9D
ž %9E %C5%BE
Ÿ %9F %C5%B8
  %A0 %C2%A0
Teksti188 Teksti187 Teksti186
Teksti185 Teksti184 Teksti183
Teksti182 Teksti181 Teksti180
Teksti179 Teksti178 Teksti177
Teksti176 Teksti175 Teksti174
Teksti173 Teksti172 Teksti171
Teksti170 Teksti169 Teksti168
Teksti167 Teksti166 Teksti165
Teksti164 Teksti163 Teksti162
Teksti161 Teksti160 Teksti159
Teksti158 Teksti157 Teksti156
Teksti155 Teksti154 Teksti153
Teksti152 Teksti151 Teksti150
Teksti149 Teksti148 Teksti147
Teksti146 Teksti145 Teksti144
Teksti143 Teksti142 Teksti141
Teksti140 Teksti139 Teksti138
Teksti137 Teksti136 Teksti135
Teksti134 Teksti133 Teksti132
Teksti131 Teksti130 Teksti129
Teksti128 Teksti127 Teksti126
Teksti125 Teksti124 Teksti123
Teksti122 Teksti121 Teksti120
Teksti119 Teksti118 Teksti117
Teksti116 Teksti115 Teksti114
Teksti113 Teksti112 Teksti111
Teksti110 Teksti109 Teksti108
Teksti107 Teksti106 Teksti105
Teksti104 Teksti103 Teksti102
Teksti101 Teksti100 Teksti99
Teksti98 Teksti97 Teksti96
Teksti95 Teksti94 Teksti93
Teksti92 Teksti91 Teksti90
Teksti89 Teksti88 Teksti87
Teksti86 Teksti85 Teksti84
Teksti83 Teksti82 Teksti81
Teksti80 Teksti79 Teksti78
Teksti77 Teksti76 Teksti75
Teksti74 Teksti73 Teksti72
Teksti71 Teksti70 Teksti69
Teksti68 Teksti67 Teksti66
Teksti65 Teksti64 Teksti63
Teksti62 Teksti61 Teksti60
Teksti59 Teksti58 Teksti57
Teksti56 Teksti55 Teksti54
Teksti53 Teksti52 Teksti51
Teksti50 Teksti49 Teksti48
Teksti47 Teksti46 Teksti45
Teksti44 Teksti43 Teksti42
Teksti41 Teksti40 Teksti39
Teksti38 Teksti37 Teksti36
Teksti35 Teksti34 Teksti33
Teksti32 Teksti31 Teksti30
Teksti29 Teksti28 Teksti27
Teksti26 Teksti25 Teksti24
Teksti23 Teksti22 Teksti21
Teksti20 Teksti19 Teksti18
Teksti17 Teksti16 Teksti15
Teksti14 Teksti13 Teksti12
Teksti11 Teksti10 Teksti9
Teksti8 Teksti7 Teksti6
Teksti5 Teksti4 Teksti3
Teksti2 Teksti1 %C3%9F
à %E0 %C3%A0
á %E1 %C3%A1
â %E2 %C3%A2
ã %E3 %C3%A3
ä %E4 %C3%A4
å %E5 %C3%A5
æ %E6 %C3%A6
ç %E7 %C3%A7
è %E8 %C3%A8
é %E9 %C3%A9
ê %EA %C3%AA
ë %EB %C3%AB
ì %EC %C3%AC
í %ED %C3%AD
î %EE %C3%AE
ï %EF %C3%AF
ð %F0 %C3%B0
ñ %F1 %C3%B1
ò %F2 %C3%B2
ó %F3 %C3%B3
ô %F4 %C3%B4
õ %F5 %C3%B5
ö %F6 %C3%B6
÷ %F7 %C3%B7
ø %F8 %C3%B8
ù %F9 %C3%B9
ú %FA %C3%BA
û %FB %C3%BB
ü %FC %C3%BC
ý %FD %C3%BD
þ %FE %C3%BE
ÿ %FF %C3%BF

URL-koodaus viittaus

ASCII-ohjausmerkit %00-%1F Alkuperäisesti suunniteltu hallitsemaan laitteistovälineitä.

ohjausmerkit eivät liity URL:iin.

ASCII-merkit kuvaus URL-encoding
NUL null character %00
SOH start of header %01
STX start of text %02
ETX end of text %03
EOT end of transmission %04
ENQ enquiry %05
ACK acknowledge %06
BEL bell (ring) %07
BS backspace %08
HT horizontal tab %09
LF line feed %0A
VT vertical tab %0B
FF form feed %0C
CR carriage return %0D
SO shift out %0E
SI shift in %0F
DLE data link escape %10
DC1 laitteenhallinta 1 %11
DC2 laitteenhallinta 2 %12
DC3 laitteenhallinta 3 %13
DC4 laitteenhallinta 4 %14
NAK negatiivinen tunnustus %15
SYN synchronointi %16
ETB lähetyksen loppupakka %17
CAN peruutus %18
EM mediumin loppu %19
SUB korvaus %1A
ESC pakopaate %1B
FS tiedostojen erottaja %1C
GS ryhmäerottaja %1D
RS tietueerottaja %1E
US yksikköerottaja %1F