Skip to content
browserutils
Cheatsheet

ASCII Table — Complete Character Code Reference

Full ASCII table with all 128 characters showing decimal, hexadecimal, octal, binary values and descriptions for control characters and printable characters.

Reference

ASCII (American Standard Code for Information Interchange) assigns numeric values to 128 characters. These include control characters (0-31, 127), printable characters (32-126), and the standard Latin alphabet. ASCII is the foundation of virtually all modern character encoding systems including UTF-8.

Control Characters (0-31, 127)

These non-printable characters were originally designed to control hardware devices like printers and telephones. Many still serve purposes in modern computing.

DecHexOctCharNameDescription
000000NULNullString terminator in C
101001SOHStart of HeadingStart of header
202002STXStart of TextStart of text body
303003ETXEnd of TextOften used as Ctrl+C (interrupt)
404004EOTEnd of TransmissionCtrl+D (end of input)
505005ENQEnquiryRequest for response
606006ACKAcknowledgePositive acknowledgement
707007BELBellTerminal bell/beep (\a)
808010BSBackspaceMove cursor back (\b)
909011HTHorizontal TabTab character (\t)
100A012LFLine FeedNewline on Unix/macOS (\n)
110B013VTVertical TabVertical tab (\v)
120C014FFForm FeedPage break (\f)
130D015CRCarriage ReturnNewline on old Mac; \r\n on Windows (\r)
140E016SOShift OutSwitch to alternate character set
150F017SIShift InReturn to default character set
1610020DLEData Link EscapeControl character for data links
1711021DC1Device Control 1XON — resume transmission
1812022DC2Device Control 2
1913023DC3Device Control 3XOFF — pause transmission
2014024DC4Device Control 4
2115025NAKNegative AcknowledgeNegative acknowledgement
2216026SYNSynchronous IdleSynchronization
2317027ETBEnd of Transmission BlockEnd of data block
2418030CANCancelCancel previous data
2519031EMEnd of MediumEnd of storage medium
261A032SUBSubstituteCtrl+Z (EOF on Windows)
271B033ESCEscapeStart of escape sequences
281C034FSFile SeparatorDelimiter
291D035GSGroup SeparatorDelimiter
301E036RSRecord SeparatorDelimiter
311F037USUnit SeparatorDelimiter
1277F177DELDeleteDelete character

Printable Characters (32-126)

DecHexOctCharDecHexOctCharDecHexOctChar
3220040(space)6440100@9660140`
3321041!6541101A9761141a
3422042"6642102B9862142b
3523043#6743103C9963143c
3624044$6844104D10064144d
3725045%6945105E10165145e
3826046&7046106F10266146f
3927047'7147107G10367147g
4028050(7248110H10468150h
4129051)7349111I10569151i
422A052*744A112J1066A152j
432B053+754B113K1076B153k
442C054,764C114L1086C154l
452D055-774D115M1096D155m
462E056.784E116N1106E156n
472F057/794F117O1116F157o
483006008050120P11270160p
493106118151121Q11371161q
503206228252122R11472162r
513306338353123S11573163s
523406448454124T11674164t
533506558555125U11775165u
543606668656126V11876166v
553706778757127W11977167w
563807088858130X12078170x
573907198959131Y12179171y
583A072:905A132Z1227A172z
593B073;915B133[1237B173{
603C074<925C134\1247C174|
613D075=935D135]1257D175}
623E076>945E136^1267E176~
633F077?955F137_

Key Ranges

RangeDecHexContents
Control chars0-3100-1FNon-printable control codes
Space3220The space character
Digits 0-948-5730-39Numeric characters
Uppercase A-Z65-9041-5ACapital letters
Lowercase a-z97-12261-7ALowercase letters
DEL1277FDelete control character

Useful Conversions

# Uppercase to lowercase: add 32
'A' (65) + 32 = 'a' (97)

# Lowercase to uppercase: subtract 32
'a' (97) - 32 = 'A' (65)

# Digit char to number: subtract 48
'7' (55) - 48 = 7

# Number to digit char: add 48
7 + 48 = '7' (55)

# Check if printable: 32 <= code <= 126

ASCII vs Unicode

ASCII covers only 128 characters (7 bits). Unicode extends this to over 149,000 characters across all writing systems. UTF-8, the dominant encoding on the web, is backward-compatible with ASCII: the first 128 UTF-8 code points are identical to ASCII.

Explore the full table interactively with the ASCII Table tool, or convert between formats with ASCII to Hex and Hex to Text.