ASCII table

All 128 ASCII codes in one place: decimal, hexadecimal and octal values alongside the character each code represents. Control characters (0-31 and 127) have names instead of glyphs — they still matter, because they hide in logs, protocols and line endings.

How to read this table

  • Dec is the value everyone quotes; Hex (0x…) is what byte dumps and debuggers show; Oct appears in file permissions and escape sequences such as \101 for "A".
  • Codes 0-31 and 127 are control characters: no visible glyph, but real effects — LF (10) and CR (13) are the famous Windows vs Unix line-ending pair.
  • Codes 32-126 are the printable characters: space, punctuation, digits and letters.

To convert a value yourself, type it into the number base converter — for example hex 0x4A to decimal gives 74, which this table shows is "J".

Control characters (0-31, 127)

DecHexOctNameMeaning
00x00000NULNull character - all zero bits; strings end here in C
10x01001SOHStart of Heading
20x02002STXStart of Text
30x03003ETXEnd of Text
40x04004EOTEnd of Transmission
50x05005ENQEnquiry
60x06006ACKAcknowledge
70x07007BELBell - rings the terminal alert
80x08010BSBackspace
90x09011HTHorizontal Tab
100x0A012LFLine Feed - the newline character on Unix
110x0B013VTVertical Tab
120x0C014FFForm Feed - new page on printers
130x0D015CRCarriage Return - Windows line endings are CR + LF (13, 10)
140x0E016SOShift Out
150x0F017SIShift In
160x10020DLEData Link Escape
170x11021DC1Device Control 1 - XON, resumes terminal output
180x12022DC2Device Control 2
190x13023DC3Device Control 3 - XOFF, pauses terminal output
200x14024DC4Device Control 4
210x15025NAKNegative Acknowledge
220x16026SYNSynchronous Idle
230x17027ETBEnd of Transmission Block
240x18030CANCancel
250x19031EMEnd of Medium
260x1A032SUBSubstitute
270x1B033ESCEscape - starts terminal escape sequences
280x1C034FSFile Separator
290x1D035GSGroup Separator
300x1E036RSRecord Separator
310x1F037USUnit Separator
1270x7F177DELDelete

Printable characters (32-126)

DecHexOctChar
320x20040
330x21041!
340x22042"
350x23043#
360x24044$
370x25045%
380x26046&
390x27047'
400x28050(
410x29051)
420x2A052*
430x2B053+
440x2C054,
450x2D055-
460x2E056.
470x2F057/
480x300600
490x310611
500x320622
510x330633
520x340644
530x350655
540x360666
550x370677
560x380708
570x390719
580x3A072:
590x3B073;
600x3C074<
610x3D075=
620x3E076>
630x3F077?
640x40100@
650x41101A
660x42102B
670x43103C
680x44104D
690x45105E
700x46106F
710x47107G
720x48110H
730x49111I
740x4A112J
750x4B113K
760x4C114L
770x4D115M
780x4E116N
790x4F117O
800x50120P
810x51121Q
820x52122R
830x53123S
840x54124T
850x55125U
860x56126V
870x57127W
880x58130X
890x59131Y
900x5A132Z
910x5B133[
920x5C134\
930x5D135]
940x5E136^
950x5F137_
960x60140`
970x61141a
980x62142b
990x63143c
1000x64144d
1010x65145e
1020x66146f
1030x67147g
1040x68150h
1050x69151i
1060x6A152j
1070x6B153k
1080x6C154l
1090x6D155m
1100x6E156n
1110x6F157o
1120x70160p
1130x71161q
1140x72162r
1150x73163s
1160x74164t
1170x75165u
1180x76166v
1190x77167w
1200x78170x
1210x79171y
1220x7A172z
1230x7B173{
1240x7C174|
1250x7D175}
1260x7E176~

FAQ

What is the difference between ASCII and Unicode?

ASCII is a 7-bit code from the 1960s covering 128 characters — enough for English text, nothing else. Unicode assigns numbers to over 150,000 characters from every writing system, and the first 128 Unicode code points are exactly ASCII. That is why UTF-8 encodes ASCII text byte-for-byte identically, and why a "plain text" file that suddenly shows mojibake is usually an encoding mismatch, not corruption.

Why do codes 128-255 vary?

ASCII stops at 127. What filled 128-255 was vendor-specific ("extended ASCII"): Latin-1, Windows-1252, code pages for Cyrillic or Greek — different tables sharing the same numbers. That ambiguity is precisely why UTF-8 replaced them.

Why does my file show both CR and LF?

Windows ends lines with CR + LF (codes 13, 10); Unix and macOS use LF (10) alone; classic Mac OS used CR alone. Opening a Windows file in a Unix editor shows the stray 13s; opening a Unix file in old Notepad shows one long line. Most modern editors handle both automatically.

Related tools and guides