HTML ASCIIReference Manual
The ASCII character set is used to transmit information between different computers over the Internet.
ASCII Character Set
ASCII, whose full name is "American Standard Code for Information Interchange", was designed in the early 1960s and is the standard character set for computers and hardware devices such as printers and tape drives.
ASCII is a 7-bit character set containing 128 different character values.
ASCII supports the digits 0-9, uppercase and lowercase English letters A-Z, and some special characters.
The character sets widely used in modern computers, HTML, and the Internet are all based on ASCII.
The following table lists 128 ASCII characters and their corresponding HTML entity codes.
ASCII Printable Characters
| Character | Number | Description |
|---|---|---|
| 32 | Space | |
| ! | 33 | Exclamation mark |
| " | 34 | Quotation mark |
| # | 35 | Number sign |
| $ | 36 | Dollar sign |
| % | 37 | Percent sign |
| & | 38 | Ampersand |
| ' | 39 | Apostrophe |
| ( | 40 | Left parenthesis |
| ) | 41 | Right parenthesis |
| * | 42 | Asterisk |
| + | 43 | Plus sign |
| , | 44 | Comma |
| - | 45 | Hyphen |
| . | 46 | Period |
| / | 47 | Slash |
| 0 | 48 | Digit 0 |
| 1 | 49 | Digit 1 |
| 2 | 50 | Digit 2 |
| 3 | 51 | Digit 3 |
| 4 | 52 | Digit 4 |
| 5 | 53 | Digit 5 |
| 6 | 54 | Digit 6 |
| 7 | 55 | Digit 7 |
| 8 | 56 | Digit 8 |
| 9 | 57 | Digit 9 |
| : | 58 | Colon |
| ; | 59 | Semicolon |
| < | 60 | Less-than |
| = | 61 | Equals-to |
| > | 62 | Greater-than |
| ? | 63 | Question mark |
| @ | 64 | At sign |
| A | 65 | Uppercase letter A |
| B | 66 | Uppercase letter B |
| C | 67 | Uppercase letter C |
| D | 68 | Uppercase letter D |
| E | 69 | Uppercase letter E |
| F | 70 | Uppercase letter F |
| G | 71 | Uppercase letter G |
| H | 72 | Uppercase letter H |
| I | 73 | Uppercase letter I |
| J | 74 | Uppercase letter J |
| K | 75 | Uppercase letter K |
| L | 76 | Uppercase letter L |
| M | 77 | Uppercase letter M |
| N | 78 | Uppercase letter N |
| O | 79 | Uppercase letter O |
| P | 80 | Uppercase letter P |
| Q | 81 | Uppercase letter Q |
| R | 82 | Uppercase letter R |
| S | 83 | Uppercase letter S |
| T | 84 | Uppercase letter T |
| U | 85 | Uppercase letter U |
| V | 86 | Uppercase letter V |
| W | 87 | Uppercase letter W |
| X | 88 | Uppercase letter X |
| Y | 89 | Uppercase letter Y |
| Z | 90 | Uppercase letter Z |
| [ | 91 | Left square bracket |
| \ | 92 | Backslash |
| ] | 93 | Right square bracket |
| ^ | 94 | Caret |
| _ | 95 | Underscore |
| ` | 96 | Grave accent |
| a | 97 | Lowercase letter a |
| b | 98 | Lowercase letter b |
| c | 99 | Lowercase letter c |
| d | 100 | Lowercase letter d |
| e | 101 | Lowercase letter e |
| f | 102 | Lowercase letter f |
| g | 103 | Lowercase letter g |
| h | 104 | Lowercase letter h |
| i | 105 | Lowercase letter i |
| j | 106 | Lowercase letter j |
| k | 107 | Lowercase letter k |
| l | 108 | Lowercase letter l |
| m | 109 | Lowercase letter m |
| n | 110 | Lowercase letter n |
| o | 111 | Lowercase letter o |
| p | 112 | Lowercase letter p |
| q | 113 | Lowercase letter q |
| r | 114 | Lowercase letter r |
| s | 115 | Lowercase letter s |
| t | 116 | Lowercase letter t |
| u | 117 | Lowercase letter u |
| v | 118 | Lowercase letter v |
| w | 119 | Lowercase letter w |
| x | 120 | Lowercase letter x |
| y | 121 | Lowercase letter y |
| z | 122 | Lowercase letter z |
| { | 123 | Left curly brace |
| | | 124 | Vertical bar |
| } | 125 | Right curly brace |
| ~ | 126 | Tilde |
ASCII Device Control Characters
The ASCII control characters (00-31, plus 127) were originally designed to control hardware devices such as printers and tape drives.
Control characters (except horizontal tab, line feed, and carriage return) have no effect in HTML documents.
| Character | Number | Description |
|---|---|---|
| NUL | 00 | Null character |
| SOH | 01 | Start of header |
| STX | 02 | Start of text |
| ETX | 03 | End of text |
| EOT | 04 | End of transmission |
| ENQ | 05 | Enquiry |
| ACK | 06 | Acknowledge |
| BEL | 07 | Bell |
| BS | 08 | Backspace |
| HT | 09 | Horizontal tab |
| LF | 10 | Line feed |
| VT | 11 | Vertical tab |
| FF | 12 | Form feed |
| CR | 13 | Carriage return |
| SO | 14 | Shift out |
| SI | 15 | Shift in |
| DLE | 16 | Data link escape |
| DC1 | 17 | Device control 1 |
| DC2 | 18 | Device control 2 |
| DC3 | 19 | Device control 3 |
| DC4 | 20 | Device control 4 |
| NAK | 21 | Negative acknowledge |
| SYN | 22 | Synchronize |
| ETB | 23 | End transmission block |
| CAN | 24 | Cancel |
| EM | 25 | End of medium |
| SUB | 26 | Substitute |
| ESC | 27 | Escape |
| FS | 28 | File separator |
| GS | 29 | Group separator |
| RS | 30 | Record separator |
| US | 31 | Unit separator |
| DEL | 127 | Delete |
ASCII to Hexadecimal Conversion Table
|
Hexadecimal code |
MCS character or abbreviation |
DEC multinational character name |
|
ASCII control characters 1 |
||
|
00 |
NUL |
Null character |
|
01 |
SOH |
Start of Heading (Ctrl/A) |
|
02 |
STX |
Start of Text (Ctrl/B) |
|
03 |
ETX |
End of Text (Ctrl/C) |
|
04 |
EOT |
End of Transmission (Ctrl/D) |
|
05 |
ENQ |
Enquiry (Ctrl/E) |
|
06 |
ACK |
Acknowledge (Ctrl/F) |
|
07 |
BEL |
Bell (Ctrl/G) |
|
08 |
BS |
Backspace (Ctrl/H) |
|
09 |
HT |
Horizontal tab (Ctrl/I) |
|
0A |
LF |
Line feed (Ctrl/J) |
|
0B |
VT |
Vertical tab (Ctrl/K) |
|
0C |
FF |
Form feed (Ctrl/L) |
|
0D |
CR |
Carriage return (Ctrl/M) |
|
0E |
SO |
Shift out (Ctrl/N) |
|
0F |
SI |
Shift in (Ctrl/O) |
|
10 |
DLE |
Data link escape (Ctrl/P) |
|
11 |
DC1 |
Device control 1 (Ctrl/Q) |
|
12 |
DC2 |
Device control 2 (Ctrl/R) |
|
13 |
DC3 |
Device control 3 (Ctrl/S) |
|
14 |
DC4 |
Device control 4 (Ctrl/T) |
|
15 |
NAK |
Negative acknowledge (Ctrl/U) |
|
16 |
SYN |
Synchronous idle (Ctrl/V) |
|
17 |
ETB |
End of transmission block (Ctrl/W) |
|
18 |
CAN |
Cancel (Ctrl/X) |
|
19 |
EM |
End of medium (Ctrl/Y) |
|
1A |
SUB |
Substitute (Ctrl/Z) |
|
1B |
ESC |
Escape character |
|
1C |
FS |
File separator |
|
1D |
GS |
Group separator |
|
1E |
RS |
Record separator |
|
1F |
US |
Unit separator |
|
ASCII special and numeric characters |
||
|
20 |
SP |
Space |
|
21 |
! |
Exclamation point |
|
22 |
" |
Quotation mark (double quote) |
|
23 |
# |
Number sign |
|
24 |
$ |
Dollar sign |
|
25 |
% |
Percent sign |
|
26 |
& |
Ampersand |
|
27 |
" |
Apostrophe (single quote) |
|
28 |
( |
Left parenthesis |
|
29 |
) |
Right parenthesis |
|
2A |
* |
Asterisk |
|
2B |
|
Plus sign |
|
2C |
, |
Comma |
|
2D |
-- |
Hyphen or minus sign |
|
2E |
. |
Period or decimal point |
|
2F |
/ |
Slash |
|
30 |
0 |
zero |
|
31 |
1 |
1 |
|
32 |
2 |
2 |
|
33 |
3 |
3 |
|
34 |
4 |
4 |
|
35 |
5 |
5 |
|
36 |
6 |
6 |
|
37 |
7 |
7 |
|
38 |
8 |
8 |
|
39 |
9 |
9 |
|
3A |
: |
Colon |
|
3B |
; |
Semicolon |
|
3C |
< |
Less-than sign |
|
3D |
= |
Equals sign |
|
3E |
> |
Greater-than sign |
|
3F |
? |
Question mark |
|
ASCII alphabetic characters |
||
|
40 |
@ |
Commercial at sign |
|
41 |
A |
Uppercase A |
|
42 |
B |
Uppercase B |
|
43 |
C |
Uppercase C |
|
44 |
D |
Uppercase D |
|
45 |
E |
Uppercase E |
|
46 |
F |
Uppercase F |
|
47 |
G |
Uppercase G |
|
48 |
H |
Uppercase H |
|
49 |
I |
Uppercase I |
|
4A |
J |
Uppercase J |
|
4B |
K |
Uppercase K |
|
4C |
L |
Uppercase L |
|
4D |
M |
Uppercase M |
|
4E |
N |
Uppercase N |
|
4F |
O |
Uppercase O |
|
50 |
P |
Uppercase P |
|
51 |
Q |
Uppercase Q |
|
52 |
R |
Uppercase R |
|
53 |
S |
Uppercase S |
|
54 |
T |
Uppercase T |
|
55 |
U |
Uppercase U |
|
56 |
V |
Uppercase V |
|
57 |
W |
Uppercase W |
|
58 |
X |
Uppercase X |
|
59 |
Y |
Uppercase Y |
|
5A |
Z |
Uppercase Z |
|
5B |
[ |
Left square bracket |
|
5C |
\ |
Backslash |
|
5D |
] |
Right square bracket |
|
5E |
^ |
Circumflex |
|
5F |
_ |
Underscore |
|
60 |
` |
Grave accent |
|
61 |
a |
Lowercase a |
|
62 |
b |
Lowercase b |
|
63 |
c |
Lowercase c |
|
64 |
d |
Lowercase d |
|
65 |
e |
Lowercase e |
|
66 |
f |
Lowercase f |
|
67 |
g |
Lowercase g |
|
68 |
h |
Lowercase h |
|
69 |
i |
Lowercase i |
|
6A |
j |
Lowercase j |
|
6B |
k |
Lowercase k |
|
6C |
l |
Lowercase l |
|
6D |
m |
Lowercase m |
|
6E |
n |
Lowercase n |
|
6F |
o |
Lowercase o |
|
70 |
p |
Lowercase p |
|
71 |
q |
Lowercase q |
|
72 |
r |
Lowercase r |
|
73 |
s |
Lowercase s |
|
74 |
t |
Lowercase t |
|
75 |
u |
Lowercase u |
|
76 |
v |
Lowercase v |
|
77 |
w |
Lowercase w |
|
78 |
x |
Lowercase x |
|
79 |
y |
Lowercase y |
|
7A |
z |
Lowercase z |
|
7B |
{ |
Left curly brace |
|
7C |
| |
Vertical line |
|
7D |
} |
Right curly brace (ALTMODE) |
|
7E |
~ |
Tilde (ALTMODE) |
|
7F |
DEL |
Erase (DELETE) |
|
Control character |
||
|
80 |
|
[Reserved] |
|
81 |
|
[Reserved] |
|
82 |
|
[Reserved] |
|
83 |
|
[Reserved] |
|
84 |
IND |
Index |
|
85 |
NEL |
Next line |
|
86 |
SSA |
Start of selected area |
|
87 |
ESA |
End of selected area |
|
88 |
HTS |
Horizontal tab set |
|
89 |
HTJ |
Horizontal tab set with justification |
|
8A |
VTS |
Vertical tab set |
|
8B |
PLD |
Partial line down |
|
8C |
PLU |
Partial line up |
|
8D |
RI |
Reverse index |
|
8E |
SS2 |
Single shift 2 |
|
8F |
SS3 |
Single shift 3 |
|
90 |
DCS |
Device control string |
|
91 |
PU1 |
Private use 1 |
|
92 |
PU2 |
Private use 2 |
|
93 |
STS |
Set transmit state |
|
94 |
CCH |
Cancel character |
|
95 |
MW |
Message waiting |
|
96 |
SPA |
Start of protected area |
|
97 |
EPA |
End of protected area |
|
98 |
|
[Reserved] |
|
99 |
|
[Reserved] |
|
9A |
|
[Reserved] |
|
9B |
CSI |
Control sequence introducer |
|
9C |
ST |
String terminator |
|
9D |
OSC |
Operating system command |
|
9E |
PM |
Privacy message |
|
9F |
APC |
Application program |
|
Other characters |
||
|
A0 |
|
[Reserved] 2 |
|
A1 |
? |
Inverted exclamation mark |
|
A2 |
? |
Cent sign |
|
A3 |
? |
Pound sign |
|
A4 |
|
[Reserved] 2 |
|
A5 |
? |
Yuan sign |
|
A6 |
|
[Reserved] 2 |
|
A7 |
§ |
Section sign |
|
A8 |
¤ |
General currency sign 2 |
|
A9 |
? |
Copyright symbol |
|
AA |
? |
Feminine ordinal indicator |
|
AB |
? |
Left angle quotation mark |
|
AC |
|
[Reserved] 2 |
|
AD |
|
[Reserved] 2 |
|
AE |
|
[Reserved] 2 |
|
AF |
|
[Reserved] 2 |
|
B0 |
° |
Degree sign |
|
B1 |
± |
Plus/minus sign |
|
B2 |
? |
Superscript two |
|
B3 |
? |
Superscript three |
|
B4 |
|
[Reserved] 2 |
|
B5 |
? |
Micro sign |
|
B6 |
? |
Paragraph sign, pilcrow |
|
B7 |
· |
Middle dot |
|
B8 |
|
[Reserved] 2 |
|
B9 |
? |
Superscript one |
|
BA |
? |
Masculine ordinal indicator |
|
BB |
? |
Right angle quotation mark |
|
BC |
? |
Fraction one quarter |
|
BD |
? |
Fraction one half |
|
BE |
|
[Reserved] 2 |
|
BF |
? |
Inverted question mark |
|
C0 |
? |
Uppercase A with grave accent |
|
C1 |
? |
Uppercase A with acute accent |
|
C2 |
? |
Uppercase A with circumflex |
|
C3 |
? |
Uppercase A with tilde |
|
C4 |
? |
Uppercase A with diaeresis (umlaut) |
|
C5 |
? |
Uppercase A with ring |
|
C6 |
? |
Uppercase AE diphthong |
|
C7 |
? |
Uppercase C with cedilla |
|
C8 |
? |
Uppercase E with grave accent |
|
C9 |
? |
Uppercase E with acute accent |
|
CA |
? |
Uppercase E with circumflex |
|
CB |
? |
Uppercase E with diaeresis (umlaut) |
|
CC |
? |
Uppercase I with grave accent |
|
CD |
? |
Uppercase I with acute accent |
|
CE |
? |
Uppercase I with circumflex |
|
CF |
? |
Uppercase I with diaeresis (umlaut) |
|
D0 |
|
[Reserved] 2 |
|
D1 |
? |
Uppercase N with tilde |
|
D2 |
? |
Uppercase O with grave accent |
|
D3 |
? |
Uppercase O with acute accent |
|
D4 |
? |
Uppercase O with circumflex |
|
D5 |
? |
Uppercase O with tilde |
|
D6 |
? |
Uppercase O with diaeresis (umlaut) |
|
D7 |
OE |
Uppercase OE ligature 2 |
|
D8 |
? |
Uppercase O with slash |
|
D9 |
? |
Uppercase U with grave accent |
|
DA |
? |
Uppercase U with acute accent |
|
DB |
? |
Uppercase U with circumflex |
|
DC |
? |
Uppercase U with diaeresis (umlaut) |
|
DD |
Y |
Uppercase Y with diaeresis (umlaut) |
|
DE |
|
[Reserved] 2 |
|
DF |
? |
German sharp lowercase s |
|
E0 |
à |
Lowercase a with grave accent |
|
E1 |
á |
Lowercase a with acute accent |
|
E2 |
? |
Lowercase a with circumflex |
|
E3 |
? |
Lowercase a with tilde |
|
E4 |
? |
Lowercase a with diaeresis (umlaut) |
|
E5 |
? |
Lowercase a with ring |
|
E6 |
? |
Lowercase ae diphthong |
|
E7 |
? |
Lowercase c with cedilla |
|
E8 |
è |
Lowercase e with grave accent |
|
E9 |
é |
Lowercase e with acute accent |
|
EA |
ê |
Lowercase e with circumflex |
|
EB |
? |
Lowercase e with umlaut (diaeresis) |
|
EC |
ì |
Lowercase i with grave |
|
ED |
í |
Lowercase i with acute |
|
EE |
? |
Lowercase i with circumflex |
|
EF |
? |
Lowercase i with umlaut (diaeresis) |
|
F0 |
|
[Reserved] 2 |
|
F1 |
? |
Lowercase n with tilde |
|
F2 |
ò |
Lowercase o with grave |
|
F3 |
ó |
Lowercase o with acute |
|
F4 |
? |
Lowercase o with circumflex |
|
F5 |
? |
Lowercase o with tilde |
|
F6 |
? |
Lowercase o with umlaut (diaeresis) |
|
F7 |
oe |
Lowercase oe ligature 2 |
|
F8 |
? |
Lowercase o with slash |
|
F9 |
ù |
Lowercase u with grave |
|
FA |
ú |
Lowercase u with acute |
|
FB |
? |
Lowercase u with circumflex |
|
FC |
ü |
Lowercase u with umlaut (diaeresis) |
|
FD |
? |
Lowercase y with umlaut (diaeresis) 2 |
|
FE |
|
[Reserved] 2 |
|
FF |
|
[Reserved] 2 |