ASCII Table

Complete ASCII character table with decimal, hex, and binary values.

A full ASCII table: all 128 characters from 0 to 127, each with its decimal, hexadecimal, octal and 7-bit binary code and a description. Codes 0 to 31 and 127 are control characters, such as tab (9), line feed (10) and carriage return (13); 32 is the space; 33 to 126 are the printable letters, digits and symbols. ASCII is the base of almost every modern text encoding, and UTF-8 stores these same 128 characters as the same single bytes, so the codes here are also the first 128 Unicode code points. Use the Unicode Reference Table for anything beyond them.

ASCII characters 0–127

DecHexOctBinaryCharDescription
0000000000000NULNull
1010010000001SOHStart of heading
2020020000010STXStart of text
3030030000011ETXEnd of text
4040040000100EOTEnd of transmission
5050050000101ENQEnquiry
6060060000110ACKAcknowledge
7070070000111BELBell
8080100001000BSBackspace
9090110001001HTHorizontal tab
100A0120001010LFLine feed (new line)
110B0130001011VTVertical tab
120C0140001100FFForm feed
130D0150001101CRCarriage return
140E0160001110SOShift out
150F0170001111SIShift in
16100200010000DLEData link escape
17110210010001DC1Device control 1 (XON)
18120220010010DC2Device control 2
19130230010011DC3Device control 3 (XOFF)
20140240010100DC4Device control 4
21150250010101NAKNegative acknowledge
22160260010110SYNSynchronous idle
23170270010111ETBEnd of transmission block
24180300011000CANCancel
25190310011001EMEnd of medium
261A0320011010SUBSubstitute
271B0330011011ESCEscape
281C0340011100FSFile separator
291D0350011101GSGroup separator
301E0360011110RSRecord separator
311F0370011111USUnit separator
32200400100000(space)Space
33210410100001!Punctuation / symbol
34220420100010"Punctuation / symbol
35230430100011#Punctuation / symbol
36240440100100$Punctuation / symbol
37250450100101%Punctuation / symbol
38260460100110&Punctuation / symbol
39270470100111'Punctuation / symbol
40280500101000(Punctuation / symbol
41290510101001)Punctuation / symbol
422A0520101010*Punctuation / symbol
432B0530101011+Punctuation / symbol
442C0540101100,Punctuation / symbol
452D0550101101-Punctuation / symbol
462E0560101110.Punctuation / symbol
472F0570101111/Punctuation / symbol
483006001100000Digit 0
493106101100011Digit 1
503206201100102Digit 2
513306301100113Digit 3
523406401101004Digit 4
533506501101015Digit 5
543606601101106Digit 6
553706701101117Digit 7
563807001110008Digit 8
573907101110019Digit 9
583A0720111010:Punctuation / symbol
593B0730111011;Punctuation / symbol
603C0740111100<Punctuation / symbol
613D0750111101=Punctuation / symbol
623E0760111110>Punctuation / symbol
633F0770111111?Punctuation / symbol
64401001000000@Punctuation / symbol
65411011000001AUppercase A
66421021000010BUppercase B
67431031000011CUppercase C
68441041000100DUppercase D
69451051000101EUppercase E
70461061000110FUppercase F
71471071000111GUppercase G
72481101001000HUppercase H
73491111001001IUppercase I
744A1121001010JUppercase J
754B1131001011KUppercase K
764C1141001100LUppercase L
774D1151001101MUppercase M
784E1161001110NUppercase N
794F1171001111OUppercase O
80501201010000PUppercase P
81511211010001QUppercase Q
82521221010010RUppercase R
83531231010011SUppercase S
84541241010100TUppercase T
85551251010101UUppercase U
86561261010110VUppercase V
87571271010111WUppercase W
88581301011000XUppercase X
89591311011001YUppercase Y
905A1321011010ZUppercase Z
915B1331011011[Punctuation / symbol
925C1341011100\Punctuation / symbol
935D1351011101]Punctuation / symbol
945E1361011110^Punctuation / symbol
955F1371011111_Punctuation / symbol
96601401100000`Punctuation / symbol
97611411100001aLowercase a
98621421100010bLowercase b
99631431100011cLowercase c
100641441100100dLowercase d
101651451100101eLowercase e
102661461100110fLowercase f
103671471100111gLowercase g
104681501101000hLowercase h
105691511101001iLowercase i
1066A1521101010jLowercase j
1076B1531101011kLowercase k
1086C1541101100lLowercase l
1096D1551101101mLowercase m
1106E1561101110nLowercase n
1116F1571101111oLowercase o
112701601110000pLowercase p
113711611110001qLowercase q
114721621110010rLowercase r
115731631110011sLowercase s
116741641110100tLowercase t
117751651110101uLowercase u
118761661110110vLowercase v
119771671110111wLowercase w
120781701111000xLowercase x
121791711111001yLowercase y
1227A1721111010zLowercase z
1237B1731111011{Punctuation / symbol
1247C1741111100|Punctuation / symbol
1257D1751111101}Punctuation / symbol
1267E1761111110~Punctuation / symbol
1277F1771111111DELDelete

ASCII is a 7-bit code. Codes 0–31 and 127 are control characters; 32–126 are printable. UTF-8 encodes these 128 characters with the same single bytes.

Common use cases

  • Look up the code for a character in decimal, hex or binary
  • Decode bytes from a hex dump or a serial log
  • Check control characters such as line endings and tabs
  • Teach how computers store text

How to use

  1. Find the character, or its number, in the table (your browser's find works well).
  2. Read across for the decimal, hex, octal and binary codes.
  3. Check the description for control characters, which don't print.

FAQ

What is the ASCII code for A?

Capital A is 65 (hex 41) and small a is 97 (hex 61). Each small letter is 32 more than its capital. The digit 0 is 48 and the space is 32.

What is the difference between ASCII and Unicode?

ASCII has 128 characters, enough for English. Unicode covers well over 100,000 characters from every writing system, plus emoji. Its first 128 code points are ASCII, and UTF-8 stores them as the same single bytes.

What is extended ASCII?

There's no single extended ASCII. Codes 128 to 255 were used differently by different code pages, such as ISO-8859-1, Windows-1252 and the original IBM PC's code page 437, which is why old text files sometimes show the wrong accented letters.

Why do Windows and Linux files end lines differently?

Windows ends a line with carriage return then line feed (13, 10, written CRLF). Linux and macOS use line feed alone (10). Most editors handle both, but some tools and scripts don't.