Computer Science Reference
ASCII Table
ASCII assigns a number from 0 to 127 to each of the basic Latin characters: 0–31 are non-printing control codes, 32 is space, 48–57 are the digits, 65–90 the uppercase letters and 97–122 the lowercase. This table gives every character in decimal, hex, octal, binary and HTML entity form.
Browse by Category
All ASCII Table (128)
Control Codes (33)
The 33 non-printing codes (0–31 and 127) that steer devices and streams.
| Dec | Char | Name | Hex · Oct · Binary · HTML |
|---|---|---|---|
0 | NUL | NUL — Null | 0x00 · 0000 · 00000000 · � |
1 | SOH | SOH — Start of Heading | 0x01 · 0001 · 00000001 ·  |
2 | STX | STX — Start of Text | 0x02 · 0002 · 00000010 ·  |
3 | ETX | ETX — End of Text | 0x03 · 0003 · 00000011 ·  |
4 | EOT | EOT — End of Transmission | 0x04 · 0004 · 00000100 ·  |
5 | ENQ | ENQ — Enquiry | 0x05 · 0005 · 00000101 ·  |
6 | ACK | ACK — Acknowledge | 0x06 · 0006 · 00000110 ·  |
7 | BEL | BEL — Bell — rang a physical bell on a teletype | 0x07 · 0007 · 00000111 ·  |
8 | BS | BS — Backspace | 0x08 · 0010 · 00001000 ·  |
9 | HT | HT — Horizontal Tab | 0x09 · 0011 · 00001001 · 	 |
10 | LF | LF — Line Feed — ends a line on Unix | 0x0A · 0012 · 00001010 · |
11 | VT | VT — Vertical Tab | 0x0B · 0013 · 00001011 ·  |
12 | FF | FF — Form Feed — page break | 0x0C · 0014 · 00001100 ·  |
13 | CR | CR — Carriage Return — paired with LF on Windows | 0x0D · 0015 · 00001101 · |
14 | SO | SO — Shift Out | 0x0E · 0016 · 00001110 ·  |
15 | SI | SI — Shift In | 0x0F · 0017 · 00001111 ·  |
16 | DLE | DLE — Data Link Escape | 0x10 · 0020 · 00010000 ·  |
17 | DC1 | DC1 — Device Control 1 — XON, resumes flow | 0x11 · 0021 · 00010001 ·  |
18 | DC2 | DC2 — Device Control 2 | 0x12 · 0022 · 00010010 ·  |
19 | DC3 | DC3 — Device Control 3 — XOFF, pauses flow | 0x13 · 0023 · 00010011 ·  |
20 | DC4 | DC4 — Device Control 4 | 0x14 · 0024 · 00010100 ·  |
21 | NAK | NAK — Negative Acknowledge | 0x15 · 0025 · 00010101 ·  |
22 | SYN | SYN — Synchronous Idle | 0x16 · 0026 · 00010110 ·  |
23 | ETB | ETB — End of Transmission Block | 0x17 · 0027 · 00010111 ·  |
24 | CAN | CAN — Cancel | 0x18 · 0030 · 00011000 ·  |
25 | EM | EM — End of Medium | 0x19 · 0031 · 00011001 ·  |
26 | SUB | SUB — Substitute | 0x1A · 0032 · 00011010 ·  |
27 | ESC | ESC — Escape — begins every ANSI terminal sequence | 0x1B · 0033 · 00011011 ·  |
28 | FS | FS — File Separator | 0x1C · 0034 · 00011100 ·  |
29 | GS | GS — Group Separator | 0x1D · 0035 · 00011101 ·  |
30 | RS | RS — Record Separator | 0x1E · 0036 · 00011110 ·  |
31 | US | US — Unit Separator | 0x1F · 0037 · 00011111 ·  |
127 | DEL | DEL — Delete | 0x7F · 0177 · 01111111 ·  |
Char
NUL
Name
NUL — Null
Hex · Oct · Binary · HTML
0x00 · 0000 · 00000000 · �
Char
SOH
Name
SOH — Start of Heading
Hex · Oct · Binary · HTML
0x01 · 0001 · 00000001 · 
Char
STX
Name
STX — Start of Text
Hex · Oct · Binary · HTML
0x02 · 0002 · 00000010 · 
Char
ETX
Name
ETX — End of Text
Hex · Oct · Binary · HTML
0x03 · 0003 · 00000011 · 
Char
EOT
Name
EOT — End of Transmission
Hex · Oct · Binary · HTML
0x04 · 0004 · 00000100 · 
Char
ENQ
Name
ENQ — Enquiry
Hex · Oct · Binary · HTML
0x05 · 0005 · 00000101 · 
Char
ACK
Name
ACK — Acknowledge
Hex · Oct · Binary · HTML
0x06 · 0006 · 00000110 · 
Char
BEL
Name
BEL — Bell — rang a physical bell on a teletype
Hex · Oct · Binary · HTML
0x07 · 0007 · 00000111 · 
Char
BS
Name
BS — Backspace
Hex · Oct · Binary · HTML
0x08 · 0010 · 00001000 · 
Char
HT
Name
HT — Horizontal Tab
Hex · Oct · Binary · HTML
0x09 · 0011 · 00001001 · 	
Char
LF
Name
LF — Line Feed — ends a line on Unix
Hex · Oct · Binary · HTML
0x0A · 0012 · 00001010 ·
Char
VT
Name
VT — Vertical Tab
Hex · Oct · Binary · HTML
0x0B · 0013 · 00001011 · 
Char
FF
Name
FF — Form Feed — page break
Hex · Oct · Binary · HTML
0x0C · 0014 · 00001100 · 
Char
CR
Name
CR — Carriage Return — paired with LF on Windows
Hex · Oct · Binary · HTML
0x0D · 0015 · 00001101 ·
Char
SO
Name
SO — Shift Out
Hex · Oct · Binary · HTML
0x0E · 0016 · 00001110 · 
Char
SI
Name
SI — Shift In
Hex · Oct · Binary · HTML
0x0F · 0017 · 00001111 · 
Char
DLE
Name
DLE — Data Link Escape
Hex · Oct · Binary · HTML
0x10 · 0020 · 00010000 · 
Char
DC1
Name
DC1 — Device Control 1 — XON, resumes flow
Hex · Oct · Binary · HTML
0x11 · 0021 · 00010001 · 
Char
DC2
Name
DC2 — Device Control 2
Hex · Oct · Binary · HTML
0x12 · 0022 · 00010010 · 
Char
DC3
Name
DC3 — Device Control 3 — XOFF, pauses flow
Hex · Oct · Binary · HTML
0x13 · 0023 · 00010011 · 
Char
DC4
Name
DC4 — Device Control 4
Hex · Oct · Binary · HTML
0x14 · 0024 · 00010100 · 
Char
NAK
Name
NAK — Negative Acknowledge
Hex · Oct · Binary · HTML
0x15 · 0025 · 00010101 · 
Char
SYN
Name
SYN — Synchronous Idle
Hex · Oct · Binary · HTML
0x16 · 0026 · 00010110 · 
Char
ETB
Name
ETB — End of Transmission Block
Hex · Oct · Binary · HTML
0x17 · 0027 · 00010111 · 
Char
CAN
Name
CAN — Cancel
Hex · Oct · Binary · HTML
0x18 · 0030 · 00011000 · 
Char
EM
Name
EM — End of Medium
Hex · Oct · Binary · HTML
0x19 · 0031 · 00011001 · 
Char
SUB
Name
SUB — Substitute
Hex · Oct · Binary · HTML
0x1A · 0032 · 00011010 · 
Char
ESC
Name
ESC — Escape — begins every ANSI terminal sequence
Hex · Oct · Binary · HTML
0x1B · 0033 · 00011011 · 
Char
FS
Name
FS — File Separator
Hex · Oct · Binary · HTML
0x1C · 0034 · 00011100 · 
Char
GS
Name
GS — Group Separator
Hex · Oct · Binary · HTML
0x1D · 0035 · 00011101 · 
Char
RS
Name
RS — Record Separator
Hex · Oct · Binary · HTML
0x1E · 0036 · 00011110 · 
Char
US
Name
US — Unit Separator
Hex · Oct · Binary · HTML
0x1F · 0037 · 00011111 · 
Char
DEL
Name
DEL — Delete
Hex · Oct · Binary · HTML
0x7F · 0177 · 01111111 · 
Punctuation & Symbols (33)
Space, punctuation and mathematical symbols.
| Dec | Char | Name | Hex · Oct · Binary · HTML |
|---|---|---|---|
32 | SP | Space | 0x20 · 0040 · 00100000 ·   |
33 | ! | Exclamation mark | 0x21 · 0041 · 00100001 · ! |
34 | " | Quotation mark | 0x22 · 0042 · 00100010 · " |
35 | # | Number sign (hash) | 0x23 · 0043 · 00100011 · # |
36 | $ | Dollar sign | 0x24 · 0044 · 00100100 · $ |
37 | % | Percent sign | 0x25 · 0045 · 00100101 · % |
38 | & | Ampersand | 0x26 · 0046 · 00100110 · & |
39 | ' | Apostrophe | 0x27 · 0047 · 00100111 · ' |
40 | ( | Left parenthesis | 0x28 · 0050 · 00101000 · ( |
41 | ) | Right parenthesis | 0x29 · 0051 · 00101001 · ) |
42 | * | Asterisk | 0x2A · 0052 · 00101010 · * |
43 | + | Plus sign | 0x2B · 0053 · 00101011 · + |
44 | , | Comma | 0x2C · 0054 · 00101100 · , |
45 | - | Hyphen-minus | 0x2D · 0055 · 00101101 · - |
46 | . | Full stop (period) | 0x2E · 0056 · 00101110 · . |
47 | / | Solidus (forward slash) | 0x2F · 0057 · 00101111 · / |
58 | : | Colon | 0x3A · 0072 · 00111010 · : |
59 | ; | Semicolon | 0x3B · 0073 · 00111011 · ; |
60 | < | Less-than sign | 0x3C · 0074 · 00111100 · < |
61 | = | Equals sign | 0x3D · 0075 · 00111101 · = |
62 | > | Greater-than sign | 0x3E · 0076 · 00111110 · > |
63 | ? | Question mark | 0x3F · 0077 · 00111111 · ? |
64 | @ | Commercial at | 0x40 · 0100 · 01000000 · @ |
91 | [ | Left square bracket | 0x5B · 0133 · 01011011 · [ |
92 | \ | Reverse solidus (backslash) | 0x5C · 0134 · 01011100 · \ |
93 | ] | Right square bracket | 0x5D · 0135 · 01011101 · ] |
94 | ^ | Circumflex accent (caret) | 0x5E · 0136 · 01011110 · ^ |
95 | _ | Low line (underscore) | 0x5F · 0137 · 01011111 · _ |
96 | ` | Grave accent (backtick) | 0x60 · 0140 · 01100000 · ` |
123 | { | Left curly brace | 0x7B · 0173 · 01111011 · { |
124 | | | Vertical line (pipe) | 0x7C · 0174 · 01111100 · | |
125 | } | Right curly brace | 0x7D · 0175 · 01111101 · } |
126 | ~ | Tilde | 0x7E · 0176 · 01111110 · ~ |
Char
SP
Name
Space
Hex · Oct · Binary · HTML
0x20 · 0040 · 00100000 ·  
Char
!
Name
Exclamation mark
Hex · Oct · Binary · HTML
0x21 · 0041 · 00100001 · !
Char
"
Name
Quotation mark
Hex · Oct · Binary · HTML
0x22 · 0042 · 00100010 · "
Char
#
Name
Number sign (hash)
Hex · Oct · Binary · HTML
0x23 · 0043 · 00100011 · #
Char
$
Name
Dollar sign
Hex · Oct · Binary · HTML
0x24 · 0044 · 00100100 · $
Char
%
Name
Percent sign
Hex · Oct · Binary · HTML
0x25 · 0045 · 00100101 · %
Char
&
Name
Ampersand
Hex · Oct · Binary · HTML
0x26 · 0046 · 00100110 · &
Char
'
Name
Apostrophe
Hex · Oct · Binary · HTML
0x27 · 0047 · 00100111 · '
Char
(
Name
Left parenthesis
Hex · Oct · Binary · HTML
0x28 · 0050 · 00101000 · (
Char
)
Name
Right parenthesis
Hex · Oct · Binary · HTML
0x29 · 0051 · 00101001 · )
Char
*
Name
Asterisk
Hex · Oct · Binary · HTML
0x2A · 0052 · 00101010 · *
Char
+
Name
Plus sign
Hex · Oct · Binary · HTML
0x2B · 0053 · 00101011 · +
Char
,
Name
Comma
Hex · Oct · Binary · HTML
0x2C · 0054 · 00101100 · ,
Char
-
Name
Hyphen-minus
Hex · Oct · Binary · HTML
0x2D · 0055 · 00101101 · -
Char
.
Name
Full stop (period)
Hex · Oct · Binary · HTML
0x2E · 0056 · 00101110 · .
Char
/
Name
Solidus (forward slash)
Hex · Oct · Binary · HTML
0x2F · 0057 · 00101111 · /
Char
:
Name
Colon
Hex · Oct · Binary · HTML
0x3A · 0072 · 00111010 · :
Char
;
Name
Semicolon
Hex · Oct · Binary · HTML
0x3B · 0073 · 00111011 · ;
Char
<
Name
Less-than sign
Hex · Oct · Binary · HTML
0x3C · 0074 · 00111100 · <
Char
=
Name
Equals sign
Hex · Oct · Binary · HTML
0x3D · 0075 · 00111101 · =
Char
>
Name
Greater-than sign
Hex · Oct · Binary · HTML
0x3E · 0076 · 00111110 · >
Char
?
Name
Question mark
Hex · Oct · Binary · HTML
0x3F · 0077 · 00111111 · ?
Char
@
Name
Commercial at
Hex · Oct · Binary · HTML
0x40 · 0100 · 01000000 · @
Char
[
Name
Left square bracket
Hex · Oct · Binary · HTML
0x5B · 0133 · 01011011 · [
Char
\
Name
Reverse solidus (backslash)
Hex · Oct · Binary · HTML
0x5C · 0134 · 01011100 · \
Char
]
Name
Right square bracket
Hex · Oct · Binary · HTML
0x5D · 0135 · 01011101 · ]
Char
^
Name
Circumflex accent (caret)
Hex · Oct · Binary · HTML
0x5E · 0136 · 01011110 · ^
Char
_
Name
Low line (underscore)
Hex · Oct · Binary · HTML
0x5F · 0137 · 01011111 · _
Char
`
Name
Grave accent (backtick)
Hex · Oct · Binary · HTML
0x60 · 0140 · 01100000 · `
Char
{
Name
Left curly brace
Hex · Oct · Binary · HTML
0x7B · 0173 · 01111011 · {
Char
|
Name
Vertical line (pipe)
Hex · Oct · Binary · HTML
0x7C · 0174 · 01111100 · |
Char
}
Name
Right curly brace
Hex · Oct · Binary · HTML
0x7D · 0175 · 01111101 · }
Char
~
Name
Tilde
Hex · Oct · Binary · HTML
0x7E · 0176 · 01111110 · ~
Digits (48–57) (10)
The decimal digits 0 to 9.
| Dec | Char | Name | Hex · Oct · Binary · HTML |
|---|---|---|---|
48 | 0 | Digit zero | 0x30 · 0060 · 00110000 · 0 |
49 | 1 | Digit one | 0x31 · 0061 · 00110001 · 1 |
50 | 2 | Digit two | 0x32 · 0062 · 00110010 · 2 |
51 | 3 | Digit three | 0x33 · 0063 · 00110011 · 3 |
52 | 4 | Digit four | 0x34 · 0064 · 00110100 · 4 |
53 | 5 | Digit five | 0x35 · 0065 · 00110101 · 5 |
54 | 6 | Digit six | 0x36 · 0066 · 00110110 · 6 |
55 | 7 | Digit seven | 0x37 · 0067 · 00110111 · 7 |
56 | 8 | Digit eight | 0x38 · 0070 · 00111000 · 8 |
57 | 9 | Digit nine | 0x39 · 0071 · 00111001 · 9 |
Char
0
Name
Digit zero
Hex · Oct · Binary · HTML
0x30 · 0060 · 00110000 · 0
Char
1
Name
Digit one
Hex · Oct · Binary · HTML
0x31 · 0061 · 00110001 · 1
Char
2
Name
Digit two
Hex · Oct · Binary · HTML
0x32 · 0062 · 00110010 · 2
Char
3
Name
Digit three
Hex · Oct · Binary · HTML
0x33 · 0063 · 00110011 · 3
Char
4
Name
Digit four
Hex · Oct · Binary · HTML
0x34 · 0064 · 00110100 · 4
Char
5
Name
Digit five
Hex · Oct · Binary · HTML
0x35 · 0065 · 00110101 · 5
Char
6
Name
Digit six
Hex · Oct · Binary · HTML
0x36 · 0066 · 00110110 · 6
Char
7
Name
Digit seven
Hex · Oct · Binary · HTML
0x37 · 0067 · 00110111 · 7
Char
8
Name
Digit eight
Hex · Oct · Binary · HTML
0x38 · 0070 · 00111000 · 8
Char
9
Name
Digit nine
Hex · Oct · Binary · HTML
0x39 · 0071 · 00111001 · 9
Uppercase (65–90) (26)
The capital letters A to Z.
| Dec | Char | Name | Hex · Oct · Binary · HTML |
|---|---|---|---|
65 | A | Latin capital letter A | 0x41 · 0101 · 01000001 · A |
66 | B | Latin capital letter B | 0x42 · 0102 · 01000010 · B |
67 | C | Latin capital letter C | 0x43 · 0103 · 01000011 · C |
68 | D | Latin capital letter D | 0x44 · 0104 · 01000100 · D |
69 | E | Latin capital letter E | 0x45 · 0105 · 01000101 · E |
70 | F | Latin capital letter F | 0x46 · 0106 · 01000110 · F |
71 | G | Latin capital letter G | 0x47 · 0107 · 01000111 · G |
72 | H | Latin capital letter H | 0x48 · 0110 · 01001000 · H |
73 | I | Latin capital letter I | 0x49 · 0111 · 01001001 · I |
74 | J | Latin capital letter J | 0x4A · 0112 · 01001010 · J |
75 | K | Latin capital letter K | 0x4B · 0113 · 01001011 · K |
76 | L | Latin capital letter L | 0x4C · 0114 · 01001100 · L |
77 | M | Latin capital letter M | 0x4D · 0115 · 01001101 · M |
78 | N | Latin capital letter N | 0x4E · 0116 · 01001110 · N |
79 | O | Latin capital letter O | 0x4F · 0117 · 01001111 · O |
80 | P | Latin capital letter P | 0x50 · 0120 · 01010000 · P |
81 | Q | Latin capital letter Q | 0x51 · 0121 · 01010001 · Q |
82 | R | Latin capital letter R | 0x52 · 0122 · 01010010 · R |
83 | S | Latin capital letter S | 0x53 · 0123 · 01010011 · S |
84 | T | Latin capital letter T | 0x54 · 0124 · 01010100 · T |
85 | U | Latin capital letter U | 0x55 · 0125 · 01010101 · U |
86 | V | Latin capital letter V | 0x56 · 0126 · 01010110 · V |
87 | W | Latin capital letter W | 0x57 · 0127 · 01010111 · W |
88 | X | Latin capital letter X | 0x58 · 0130 · 01011000 · X |
89 | Y | Latin capital letter Y | 0x59 · 0131 · 01011001 · Y |
90 | Z | Latin capital letter Z | 0x5A · 0132 · 01011010 · Z |
Char
A
Name
Latin capital letter A
Hex · Oct · Binary · HTML
0x41 · 0101 · 01000001 · A
Char
B
Name
Latin capital letter B
Hex · Oct · Binary · HTML
0x42 · 0102 · 01000010 · B
Char
C
Name
Latin capital letter C
Hex · Oct · Binary · HTML
0x43 · 0103 · 01000011 · C
Char
D
Name
Latin capital letter D
Hex · Oct · Binary · HTML
0x44 · 0104 · 01000100 · D
Char
E
Name
Latin capital letter E
Hex · Oct · Binary · HTML
0x45 · 0105 · 01000101 · E
Char
F
Name
Latin capital letter F
Hex · Oct · Binary · HTML
0x46 · 0106 · 01000110 · F
Char
G
Name
Latin capital letter G
Hex · Oct · Binary · HTML
0x47 · 0107 · 01000111 · G
Char
H
Name
Latin capital letter H
Hex · Oct · Binary · HTML
0x48 · 0110 · 01001000 · H
Char
I
Name
Latin capital letter I
Hex · Oct · Binary · HTML
0x49 · 0111 · 01001001 · I
Char
J
Name
Latin capital letter J
Hex · Oct · Binary · HTML
0x4A · 0112 · 01001010 · J
Char
K
Name
Latin capital letter K
Hex · Oct · Binary · HTML
0x4B · 0113 · 01001011 · K
Char
L
Name
Latin capital letter L
Hex · Oct · Binary · HTML
0x4C · 0114 · 01001100 · L
Char
M
Name
Latin capital letter M
Hex · Oct · Binary · HTML
0x4D · 0115 · 01001101 · M
Char
N
Name
Latin capital letter N
Hex · Oct · Binary · HTML
0x4E · 0116 · 01001110 · N
Char
O
Name
Latin capital letter O
Hex · Oct · Binary · HTML
0x4F · 0117 · 01001111 · O
Char
P
Name
Latin capital letter P
Hex · Oct · Binary · HTML
0x50 · 0120 · 01010000 · P
Char
Q
Name
Latin capital letter Q
Hex · Oct · Binary · HTML
0x51 · 0121 · 01010001 · Q
Char
R
Name
Latin capital letter R
Hex · Oct · Binary · HTML
0x52 · 0122 · 01010010 · R
Char
S
Name
Latin capital letter S
Hex · Oct · Binary · HTML
0x53 · 0123 · 01010011 · S
Char
T
Name
Latin capital letter T
Hex · Oct · Binary · HTML
0x54 · 0124 · 01010100 · T
Char
U
Name
Latin capital letter U
Hex · Oct · Binary · HTML
0x55 · 0125 · 01010101 · U
Char
V
Name
Latin capital letter V
Hex · Oct · Binary · HTML
0x56 · 0126 · 01010110 · V
Char
W
Name
Latin capital letter W
Hex · Oct · Binary · HTML
0x57 · 0127 · 01010111 · W
Char
X
Name
Latin capital letter X
Hex · Oct · Binary · HTML
0x58 · 0130 · 01011000 · X
Char
Y
Name
Latin capital letter Y
Hex · Oct · Binary · HTML
0x59 · 0131 · 01011001 · Y
Char
Z
Name
Latin capital letter Z
Hex · Oct · Binary · HTML
0x5A · 0132 · 01011010 · Z
Lowercase (97–122) (26)
The small letters a to z.
| Dec | Char | Name | Hex · Oct · Binary · HTML |
|---|---|---|---|
97 | a | Latin small letter a | 0x61 · 0141 · 01100001 · a |
98 | b | Latin small letter b | 0x62 · 0142 · 01100010 · b |
99 | c | Latin small letter c | 0x63 · 0143 · 01100011 · c |
100 | d | Latin small letter d | 0x64 · 0144 · 01100100 · d |
101 | e | Latin small letter e | 0x65 · 0145 · 01100101 · e |
102 | f | Latin small letter f | 0x66 · 0146 · 01100110 · f |
103 | g | Latin small letter g | 0x67 · 0147 · 01100111 · g |
104 | h | Latin small letter h | 0x68 · 0150 · 01101000 · h |
105 | i | Latin small letter i | 0x69 · 0151 · 01101001 · i |
106 | j | Latin small letter j | 0x6A · 0152 · 01101010 · j |
107 | k | Latin small letter k | 0x6B · 0153 · 01101011 · k |
108 | l | Latin small letter l | 0x6C · 0154 · 01101100 · l |
109 | m | Latin small letter m | 0x6D · 0155 · 01101101 · m |
110 | n | Latin small letter n | 0x6E · 0156 · 01101110 · n |
111 | o | Latin small letter o | 0x6F · 0157 · 01101111 · o |
112 | p | Latin small letter p | 0x70 · 0160 · 01110000 · p |
113 | q | Latin small letter q | 0x71 · 0161 · 01110001 · q |
114 | r | Latin small letter r | 0x72 · 0162 · 01110010 · r |
115 | s | Latin small letter s | 0x73 · 0163 · 01110011 · s |
116 | t | Latin small letter t | 0x74 · 0164 · 01110100 · t |
117 | u | Latin small letter u | 0x75 · 0165 · 01110101 · u |
118 | v | Latin small letter v | 0x76 · 0166 · 01110110 · v |
119 | w | Latin small letter w | 0x77 · 0167 · 01110111 · w |
120 | x | Latin small letter x | 0x78 · 0170 · 01111000 · x |
121 | y | Latin small letter y | 0x79 · 0171 · 01111001 · y |
122 | z | Latin small letter z | 0x7A · 0172 · 01111010 · z |
Char
a
Name
Latin small letter a
Hex · Oct · Binary · HTML
0x61 · 0141 · 01100001 · a
Char
b
Name
Latin small letter b
Hex · Oct · Binary · HTML
0x62 · 0142 · 01100010 · b
Char
c
Name
Latin small letter c
Hex · Oct · Binary · HTML
0x63 · 0143 · 01100011 · c
Char
d
Name
Latin small letter d
Hex · Oct · Binary · HTML
0x64 · 0144 · 01100100 · d
Char
e
Name
Latin small letter e
Hex · Oct · Binary · HTML
0x65 · 0145 · 01100101 · e
Char
f
Name
Latin small letter f
Hex · Oct · Binary · HTML
0x66 · 0146 · 01100110 · f
Char
g
Name
Latin small letter g
Hex · Oct · Binary · HTML
0x67 · 0147 · 01100111 · g
Char
h
Name
Latin small letter h
Hex · Oct · Binary · HTML
0x68 · 0150 · 01101000 · h
Char
i
Name
Latin small letter i
Hex · Oct · Binary · HTML
0x69 · 0151 · 01101001 · i
Char
j
Name
Latin small letter j
Hex · Oct · Binary · HTML
0x6A · 0152 · 01101010 · j
Char
k
Name
Latin small letter k
Hex · Oct · Binary · HTML
0x6B · 0153 · 01101011 · k
Char
l
Name
Latin small letter l
Hex · Oct · Binary · HTML
0x6C · 0154 · 01101100 · l
Char
m
Name
Latin small letter m
Hex · Oct · Binary · HTML
0x6D · 0155 · 01101101 · m
Char
n
Name
Latin small letter n
Hex · Oct · Binary · HTML
0x6E · 0156 · 01101110 · n
Char
o
Name
Latin small letter o
Hex · Oct · Binary · HTML
0x6F · 0157 · 01101111 · o
Char
p
Name
Latin small letter p
Hex · Oct · Binary · HTML
0x70 · 0160 · 01110000 · p
Char
q
Name
Latin small letter q
Hex · Oct · Binary · HTML
0x71 · 0161 · 01110001 · q
Char
r
Name
Latin small letter r
Hex · Oct · Binary · HTML
0x72 · 0162 · 01110010 · r
Char
s
Name
Latin small letter s
Hex · Oct · Binary · HTML
0x73 · 0163 · 01110011 · s
Char
t
Name
Latin small letter t
Hex · Oct · Binary · HTML
0x74 · 0164 · 01110100 · t
Char
u
Name
Latin small letter u
Hex · Oct · Binary · HTML
0x75 · 0165 · 01110101 · u
Char
v
Name
Latin small letter v
Hex · Oct · Binary · HTML
0x76 · 0166 · 01110110 · v
Char
w
Name
Latin small letter w
Hex · Oct · Binary · HTML
0x77 · 0167 · 01110111 · w
Char
x
Name
Latin small letter x
Hex · Oct · Binary · HTML
0x78 · 0170 · 01111000 · x
Char
y
Name
Latin small letter y
Hex · Oct · Binary · HTML
0x79 · 0171 · 01111001 · y
Char
z
Name
Latin small letter z
Hex · Oct · Binary · HTML
0x7A · 0172 · 01111010 · z
Frequently Asked Questions
How do I convert a letter to its ASCII code?
Look it up in the table, or in code use the language's ordinal function: ord("A") in Python and "A".charCodeAt(0) in JavaScript both give 65. Going back is chr(65) and String.fromCharCode(65).
What is the difference between ASCII and UTF-8?
ASCII defines 128 characters in 7 bits. UTF-8 encodes the whole of Unicode using one to four bytes per character, and is designed so that its one-byte encodings are exactly ASCII — every ASCII file is already valid UTF-8, which is why UTF-8 won.
Why is uppercase A 65 and lowercase a 97?
The gap is exactly 32, which is a single bit (bit 5). That was deliberate: flipping one bit converts between cases, so early hardware could change case with a bitwise OR or AND rather than a lookup table.
What are ASCII control characters used for?
They predate screens and were device commands: 10 is line feed and 13 carriage return, still used to end lines; 9 is tab; 7 rang a physical bell; 0 terminates strings in C. Most of the rest are historical, though 27 (escape) still starts every ANSI terminal sequence.