HTML Tutorial HTML References

ASCII Table



ASCII stands for American Standard Code for Information Interchange. It was designed in the early 60's, as a standard character set for computers and electronic devices. It is a 7-bit character set containing 128 characters. Below is the ASCII character table, including descriptions of the first 32 characters. ASCII was originally designed for use with teletypes, and so the descriptions are somewhat obscure and their use is frequently not as intended.

ASCII Printable Characters

DECCHARDescriptionHEXEntity NumberExample
0-31 Control characters (see table below)0-1F
32 Space20 Example
33!Exclamation mark21!Example
34"Quotation mark22"Example
35#Number sign23#Example
36$Dollar sign24$Example
37%Percent sign25%Example
38&Ampersand26&Example
39'Apostrophe27'Example
40(Open parenthesis28(Example
41)Close parenthesis29)Example
42*Asterisk2A*Example
43+Plus2B+Example
44,Comma2C,Example
45-Hyphen2D-Example
46.Period2E.Example
47/Slash2F/Example
480Digit 0300Example
491Digit 1311Example
502Digit 2322Example
513Digit 3333Example
524Digit 4344Example
535Digit 5355Example
546Digit 6366Example
557Digit 7377Example
568Digit 8388Example
579Digit 9399Example
58:Colon3A:Example
59;Semicolon3B&#59;Example
60<Less than3C&#60;Example
61=Equal to3D&#61;Example
62>Greater than3E&#62;Example
63?Question mark3F&#63;Example
64@At sign40&#64;Example
65AUppercase A41&#65;Example
66BUppercase B42&#66;Example
67CUppercase C43&#67;Example
68DUppercase D44&#68;Example
69EUppercase E45&#69;Example
70FUppercase F46&#70;Example
71GUppercase G47&#71;Example
72HUppercase H48&#72;Example
73IUppercase I49&#73;Example
74JUppercase J4A&#74;Example
75KUppercase K4B&#75;Example
76LUppercase L4C&#76;Example
77MUppercase M4D&#77;Example
78NUppercase N4E&#78;Example
79OUppercase O4F&#79;Example
80PUppercase P50&#80;Example
81QUppercase Q51&#81;Example
82RUppercase R52&#82;Example
83SUppercase S53&#83;Example
84TUppercase T54&#84;Example
85UUppercase U55&#85;Example
86VUppercase V56&#86;Example
87WUppercase W57&#87;Example
88XUppercase X58&#88;Example
89YUppercase Y59&#89;Example
90ZUppercase Z5A&#90;Example
91[Opening square bracket5B&#91;Example
92\Backslash5C&#92;Example
93]Closing square bracket5D&#93;Example
94^Caret5E&#94;Example
95_Underscore5F&#95;Example
96`Grave accent60&#96;Example
97aLowercase a61&#97;Example
98bLowercase b62&#98;Example
99cLowercase c63&#99;Example
100dLowercase d64&#100;Example
101eLowercase e65&#101;Example
102fLowercase f66&#102;Example
103gLowercase g67&#103;Example
104hLowercase h68&#104;Example
105iLowercase i69&#105;Example
106jLowercase j6A&#106;Example
107kLowercase k6B&#107;Example
108lLowercase l6C&#108;Example
109mLowercase m6D&#109;Example
110nLowercase n6E&#110;Example
111oLowercase o6F&#111;Example
112pLowercase p70&#112;Example
113qLowercase q71&#113;Example
114rLowercase r72&#114;Example
115sLowercase s73&#115;Example
116tLowercase t74&#116;Example
117uLowercase u75&#117;Example
118vLowercase v76&#118;Example
119wLowercase w77&#119;Example
120xLowercase x78&#120;Example
121yLowercase y79&#121;Example
122zLowercase z7A&#122;Example
123{Opening curly brace7B&#123;Example
124|Vertical bar7C&#124;Example
125}Closing curly brace7D&#125;Example
126~Tilde7E&#126;Example

ASCII Device Control Characters

The ASCII control characters (range 00-31, plus 127) were designed to control hardware devices.

DECCHARDescriptionHEX
0NUL'\0', Null character0
1SOHStart of heading1
2STXStart of text2
3ETXEnd of text3
4EOTEnd of transmission4
5ENQEnquiry5
6ACKAcknowledge6
7BEL'\a', Bell7
8BS'\b', Backspace8
9HT'\t', Horizontal tab9
10LF'\n', New line0A
11VT'\v', Vertical tab0B
12FF'\f', Form feed0C
13CR'\r', Carriage return0D
14SOShift out0E
15SIShift in0F
16DLEData link escape10
17DC1Device control 111
18DC2Device control 212
19DC3Device control 313
20DC4Device control 414
21NAKNegative acknowledge15
22SYNSynchronous idle16
23ETBEnd of transmission block17
24CANCancel18
25EM End of medium19
26SUBSubstitute1A
27ESCEscape1B
28FSFile separator1C
29GSGroup separator1D
30RSRecord separator1E
31USUnit separator1F
127DELDelete7F