Easy Tutorial
❮ Canvas Shadowoffsety Canvas Shadowblur ❯

HTML ASCII Reference Manual


The ASCII character set is used for transmitting information between different computers on the internet.


ASCII Character Set

ASCII, which stands for "American Standard Code for Information Interchange," was designed in the early 60s and is the standard character set for computers and hardware devices like 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 based on ASCII.

The following table lists the 128 ASCII characters and their corresponding HTML entity codes.


Printable ASCII Characters

Character Code 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 Control Characters

ASCII control characters (00-31, plus 127) were originally designed to control hardware devices such as printers and tape drives.

Control characters (except for 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 of 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 header (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 | Acknowledgment (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 | | 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 Mark | | 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 | | 3D | = | Equal Sign | | 3E | > | Greater Than | | 3F | ? | Question Mark | | ASCII Letter Characters | | 40 | @ | At Symbol | | 41 | A | Uppercase Letter A | | 42 | B | Uppercase Letter B | | 43 | C | Uppercase Letter C | | 44 | D | Uppercase Letter D | | 45 | E | Uppercase Letter E | | 46 | F | Uppercase Letter F | | 47 | G | Uppercase Letter G | | 48 | H | Uppercase Letter H | | 49 | I | Uppercase Letter I | | 4A | J | Uppercase Letter J | | 4B | K | Uppercase Letter K | | 4C | L | Uppercase Letter L | | 4D | M | Uppercase Letter M | | 4E | N | Uppercase Letter N | | 4F | O | Uppercase Letter O | | 50 | P | Uppercase Letter P | | 51 | Q | Uppercase Letter Q | | 52 | R | Uppercase Letter R | | 53 | S | Uppercase Letter S | | 54 | T | Uppercase Letter T | | 55 | U | Uppercase Letter U | | 56 | V | Uppercase Letter V | | 57 | W | Uppercase Letter W | | 58 | X | Uppercase Letter X | | 59 | Y | Uppercase Letter Y | | 5A | Z | Uppercase Letter Z | | 5B | [ | Left Bracket | | 5C | \ | Backslash | | 5D | ] | Right Square Bracket | | 5E | ^ | Caret | | 5F | _ | Underscore | | 60 | ` | Grave Accent | | 61 | a | Lowercase Letter a | | 62 | b | Lowercase Letter b | | 63 | c | Lowercase Letter c | | 64 | d | Lowercase Letter d | | 65 | e | Lowercase Letter e | | 66 | f | Lowercase Letter f | | 67 | g | Lowercase Letter g | | 68 | h | Lowercase Letter h | | 69 | i | Lowercase Letter i | | 6A | j | Lowercase Letter j | | 6B | k | Lowercase Letter k | | 6C | l | Lowercase Letter l | | 6D | m | Lowercase Letter m | | 6E | n | Lowercase Letter n | | 6F | o | Lowercase Letter o | | 70 | p | Lowercase Letter p | | 71 | q | Lowercase Letter q | | 72 | r | Lowercase Letter r | | 73 | s | Lowercase Letter s | | 74 | t | Lowercase Letter t | | 75 | u | Lowercase Letter u | | 76 | v | Lowercase Letter v | | 77 | w | Lowercase Letter w | | 78 | x | Lowercase Letter x | | 79 | y | Lowercase Letter y | | 7A | z | Lowercase Letter z | | 7B | { | Left Curly Brace | | 7C | | | Vertical Bar | | 7D | } | Right Curly Brace (ALTMODE) | | 7E | ~ | Tilde (ALTMODE) | | 7F | DEL | Delete | | Control Characters | | 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 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 Command | | Other Characters | | A0 | | [Reserved] 2 | | A1 | ? | Inverted Exclamation Mark | | A2 | ? | Cent Sign | | A3 | ? | Pound Sign | | A4 | | [Reserved] 2 | | A5 | ? | Yen Sign | | A6 | | [Reserved] 2 | | A7 | § | Section Sign | | A8 | ¤ | General Currency Sign 2 | | A9 | ? | Copyright Sign | | AA | ? | Feminine Ordinal Indicator | | AB | ? | Left-Pointing Double 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 | · | Midpoint | | B8 | | [Reserved] 2 | | B9 | ? | Superscript 1 | | BA | ? | Positive Sequence Indicator | | BB | ? | Right Angle Quotation Mark | | BC | ? | Fraction One Quarter | | BD | ? | Fraction One Half | | BE | | [Reserved] 2 | | BF | ? | Inverted Question Mark | | C0 | ? | Capital Letter A with Grave Accent | | C1 | ? | Capital Letter A with Acute Accent | | C2 | ? | Capital Letter A with Circumflex | | C3 | ? | Capital Letter A with Tilde | | C4 | ? | Capital Letter A with Diaeresis | | C5 | ? | Capital Letter A with Ring Above | | C6 | ? | Capital Letter AE Diphthong | | C7 | ? | Capital Letter C with Cedilla | | C8 | ? | Capital Letter E with Grave Accent | | C9 | ? | Capital Letter E with Acute Accent | | CA | ? | Capital Letter E with Circumflex | | CB | ? | Capital Letter E with Diaeresis | | CC | ? | Capital Letter I with Grave Accent | | CD | ? | Capital Letter I with Acute Accent | | CE | ? | Capital Letter I with Circumflex | | CF | ? | Capital Letter I with Diaeresis | | D0 | | [Reserved] 2 | | D1 | ? | Capital Letter N with Tilde | | D2 | ? | Capital Letter O with Grave Accent | | D3 | ? | Capital Letter O with Acute Accent | | D4 | ? | Capital Letter O with Circumflex | | D5 | ? | Capital Letter O with Tilde | | D6 | ? | Capital Letter O with Diaeresis | | D7 | OE | Capital Letter OE Ligature 2 | | D8 | ? | Capital Letter O with Stroke | | D9 | ? | Capital Letter U with Grave Accent | | DA | ? | Capital Letter U with Acute Accent | | DB | ? | Capital Letter U with Circumflex | | DC | ? | Capital Letter U with Diaeresis | | DD | Y | Capital Letter Y with Diaeresis | | DE | | [Reserved] 2 | | DF | ? | German Sharp S Small Letter | | E0 | à | Small Letter a with Grave Accent | | E1 | á | Small Letter a with Acute Accent | | E2 | ? | Small Letter a with Circumflex | | E3 | ? | Small Letter a with Tilde | | E4 | ? | Small Letter a with Diaeresis | | E5 | ? | Small Letter a with Ring Above | | E6 | ? | Small Letter ae Diphthong | | E7 | ? | Small Letter c with Cedilla | | E8 | è | Small Letter e with Grave Accent | | E9 | é | Small Letter e with Acute Accent | | EA | ê | Small Letter e with Circumflex | | EB | ? | Small Letter e with Diaeresis | | EC | ì | Small Letter i with Grave Accent | | ED | í | Small Letter i with Acute Accent | | EE | ? | Small Letter i with Circumflex | | EF | ? | Small Letter i with Diaeresis | | F0 | | [Reserved] 2 | | F1 | ? | Small Letter n with Tilde | | F2 | ò | Small Letter o with Grave Accent | | F3 | ó | Small Letter o with Acute Accent | | F4 | ? | Small Letter o with Circumflex | | F5 | ? | Small Letter o with Tilde | | F6 | ? | Small Letter o with Diaeresis | | F7 | oe | Small Letter oe Ligature 2 | | F8 | ? | Small Letter o with Stroke | | F9 | ù | Small Letter u with Grave Accent | | FA | ú | Small Letter u with Acute Accent | | FB | ? | Small Letter u with Circumflex | | FC | ü | Small Letter u with Diaeresis | | FD | ? | Small Letter y with Diaeresis 2 | | FE | | [Reserved] 2 | FF | | [Reserved] 2

❮ Canvas Shadowoffsety Canvas Shadowblur ❯