BrowseASCII ArtSymbolsASCII TableLearnToolsImage to ASCIIASCII CameraGIF to ASCIIVideo to ASCIIDot ArtEmoji Art

ASCII Table — All 128 Characters

ASCII (American Standard Code for Information Interchange) maps 128 characters to the numbers 0–127. The table below lists every code in decimal, hexadecimal, and octal, alongside its character or control-code name. Codes 0–31 and 127 are control characters (they trigger actions rather than print), and 32–126 are printable characters including the space, digits, letters, and punctuation.

DecHexOctCharDescription
000000NULNull character
101001SOHStart of Heading
202002STXStart of Text
303003ETXEnd of Text
404004EOTEnd of Transmission
505005ENQEnquiry
606006ACKAcknowledge
707007BELBell (alert)
808010BSBackspace
909011HTHorizontal Tab
100A012LFLine Feed (newline)
110B013VTVertical Tab
120C014FFForm Feed (new page)
130D015CRCarriage Return
140E016SOShift Out
150F017SIShift In
1610020DLEData Link Escape
1711021DC1Device Control 1 (XON)
1812022DC2Device Control 2
1913023DC3Device Control 3 (XOFF)
2014024DC4Device Control 4
2115025NAKNegative Acknowledge
2216026SYNSynchronous Idle
2317027ETBEnd of Transmission Block
2418030CANCancel
2519031EMEnd of Medium
261A032SUBSubstitute
271B033ESCEscape
281C034FSFile Separator
291D035GSGroup Separator
301E036RSRecord Separator
311F037USUnit Separator
3220040(space)Space
3321041!Exclamation mark
3422042"Double quote
3523043#Number sign (hash)
3624044$Dollar sign
3725045%Percent sign
3826046&Ampersand
3927047'Single quote (apostrophe)
4028050(Left parenthesis
4129051)Right parenthesis
422A052*Asterisk
432B053+Plus sign
442C054,Comma
452D055-Hyphen-minus
462E056.Period (full stop)
472F057/Slash (solidus)
48300600Digit zero
49310611Digit one
50320622Digit two
51330633Digit three
52340644Digit four
53350655Digit five
54360666Digit six
55370677Digit seven
56380708Digit eight
57390719Digit nine
583A072:Colon
593B073;Semicolon
603C074<Less-than sign
613D075=Equals sign
623E076>Greater-than sign
633F077?Question mark
6440100@At sign
6541101AUppercase letter A
6642102BUppercase letter B
6743103CUppercase letter C
6844104DUppercase letter D
6945105EUppercase letter E
7046106FUppercase letter F
7147107GUppercase letter G
7248110HUppercase letter H
7349111IUppercase letter I
744A112JUppercase letter J
754B113KUppercase letter K
764C114LUppercase letter L
774D115MUppercase letter M
784E116NUppercase letter N
794F117OUppercase letter O
8050120PUppercase letter P
8151121QUppercase letter Q
8252122RUppercase letter R
8353123SUppercase letter S
8454124TUppercase letter T
8555125UUppercase letter U
8656126VUppercase letter V
8757127WUppercase letter W
8858130XUppercase letter X
8959131YUppercase letter Y
905A132ZUppercase letter Z
915B133[Left square bracket
925C134\Backslash
935D135]Right square bracket
945E136^Caret (circumflex)
955F137_Underscore (low line)
9660140`Grave accent (backtick)
9761141aLowercase letter a
9862142bLowercase letter b
9963143cLowercase letter c
10064144dLowercase letter d
10165145eLowercase letter e
10266146fLowercase letter f
10367147gLowercase letter g
10468150hLowercase letter h
10569151iLowercase letter i
1066A152jLowercase letter j
1076B153kLowercase letter k
1086C154lLowercase letter l
1096D155mLowercase letter m
1106E156nLowercase letter n
1116F157oLowercase letter o
11270160pLowercase letter p
11371161qLowercase letter q
11472162rLowercase letter r
11573163sLowercase letter s
11674164tLowercase letter t
11775165uLowercase letter u
11876166vLowercase letter v
11977167wLowercase letter w
12078170xLowercase letter x
12179171yLowercase letter y
1227A172zLowercase letter z
1237B173{Left curly brace
1247C174|Vertical bar (pipe)
1257D175}Right curly brace
1267E176~Tilde
1277F177DELDelete

What is an ASCII table?

An ASCII table is the lookup chart that pairs each ASCII number with the character it represents. Computers store text as numbers, and ASCII was the standard agreement — dating to 1963 — for which number means which character. The letter A is 65, a is 97, the digit 0 is 48, and a space is 32.

Because ASCII uses only 7 bits, it has exactly 2^7 = 128 slots. That is why the table runs from 0 to 127 and no further. Anything beyond 127 belongs to an extended set or to Unicode, not to ASCII proper.

How to read the table

Each row shows one character four ways. Dec is the decimal (base-10) code you will see most often in programming. Hex is the base-16 code, common in memory dumps and escapes like \x41 for A. Oct is the base-8 code, used in older systems and in escapes like \101.

The character column shows the printable glyph, or for control codes the standard abbreviation (NUL, CR, LF, ESC, DEL) and a short description. A useful pattern: uppercase and lowercase letters differ by exactly 32 (A=65, a=97), which is a single bit, so flipping case is a fast bit operation.

Extended ASCII and Unicode

You will often hear about "extended ASCII" — sets that use an eighth bit to add codes 128–255 for accented letters, box-drawing characters, and symbols. These are not part of standard ASCII; they are separate code pages (like Latin-1 or code page 437) that disagree with each other above 127.

Modern software has largely moved to Unicode and UTF-8, which cover every writing system. The good news is that UTF-8 was designed so the first 128 code points are byte-for-byte identical to ASCII. Every ASCII file is already a valid UTF-8 file.

FAQ

How many characters are in the ASCII table?
Exactly 128, numbered 0 to 127. This is because ASCII is a 7-bit code, and 7 bits can represent 2^7 = 128 distinct values.
What is the ASCII code for A and a?
Uppercase A is 65 (hex 41) and lowercase a is 97 (hex 61). They differ by 32, which is true for every letter — a handy shortcut for changing case.
What are the control characters in ASCII?
Codes 0–31 plus 127 are control characters. They do not print; they signal actions such as line feed (10), carriage return (13), tab (9), escape (27), and delete (127).
What is the difference between ASCII and extended ASCII?
Standard ASCII covers codes 0–127. Extended ASCII adds codes 128–255 using an eighth bit, but there is no single standard for those — different code pages assign them differently, which is one reason Unicode replaced them.