Home › Guides › Reference › ASCII Table Reference

ASCII Table Reference

The full 128-character ASCII table with decimal, hexadecimal, octal and binary values, control character names and notes on how the layout works.

By the tools4free.dev team · Last reviewed 4 December 2026

How to read this reference

ASCII, the American Standard Code for Information Interchange, assigns a number from 0 to 127 to each of 128 characters. It was standardised as ANSI X3.4 and is described for internet use in RFC 20. Seven bits are enough to hold every code, and in practice each one is stored in a byte whose top bit is zero. Modern encodings such as UTF-8 keep ASCII unchanged: the first 128 Unicode code points are the ASCII characters, and a UTF-8 byte below 128 means the same thing in both.

The table below is split into four blocks of 32 codes. Each row shows the code in decimal, hexadecimal, octal and 8-bit binary, then the character and a description. Codes 0 to 31 and 127 are control characters: they do not print but control devices and data flow, and they are listed by their standard abbreviations. Codes 32 to 126 are the printable characters: the space, digits, punctuation and letters.

The values in these tables were generated by a program from the code number itself, so the four number bases always agree. To convert any value yourself, use the number base converter. To look up what a key press produces, see the key codes tool, to inspect raw bytes use the hex dump tool, and for characters such as & and < in HTML see the HTML entities tool.

Patterns worth knowing

Digits 0 to 9 are codes 48 to 57 (hex 30 to 39). Uppercase A to Z are 65 to 90 (hex 41 to 5A). Lowercase a to z are 97 to 122 (hex 61 to 7A). The space is 32 (hex 20), and newline (LF) is 10 (hex 0A).

Control characters, 0 to 31

These codes come from teleprinters and paper tape. A few remain in everyday use: tab (9), line feed (10), carriage return (13), escape (27) and null (0). Different systems end lines differently: Unix uses LF alone, Windows uses CR followed by LF, and classic Mac OS used CR alone.

DecHexOctBinaryCharDescription
00000000000000NULNull. Null character; ends strings in C
10100100000001SOHStart of Heading
20200200000010STXStart of Text
30300300000011ETXEnd of Text. Ctrl+C in many terminals
40400400000100EOTEnd of Transmission. Ctrl+D signals end of input on Unix
50500500000101ENQEnquiry
60600600000110ACKAcknowledge. Positive acknowledgement
70700700000111BELBell. Rings the terminal bell or beeps
80801000001000BSBackspace. Moves back one position
90901100001001HTHorizontal Tab. The tab character, \t
100A01200001010LFLine Feed. Newline on Unix, \n
110B01300001011VTVertical Tab
120C01400001100FFForm Feed. Page break, \f
130D01500001101CRCarriage Return. Return to line start, \r. Windows line ends use CR LF
140E01600001110SOShift Out
150F01700001111SIShift In
161002000010000DLEData Link Escape
171102100010001DC1Device Control 1. XON, resumes output (Ctrl+Q)
181202200010010DC2Device Control 2
191302300010011DC3Device Control 3. XOFF, pauses output (Ctrl+S)
201402400010100DC4Device Control 4
211502500010101NAKNegative Acknowledge
221602600010110SYNSynchronous Idle
231702700010111ETBEnd of Transmission Block
241803000011000CANCancel
251903100011001EMEnd of Medium
261A03200011010SUBSubstitute. Ctrl+Z; end-of-file on old DOS text files
271B03300011011ESCEscape. Starts terminal escape sequences, \e or \x1b
281C03400011100FSFile Separator
291D03500011101GSGroup Separator
301E03600011110RSRecord Separator
311F03700011111USUnit Separator

Space, punctuation and digits, 32 to 63

DecHexOctBinaryCharDescription
322004000100000SPSpace
332104100100001!Exclamation mark
342204200100010"Double quote
352304300100011#Number sign (hash)
362404400100100$Dollar sign
372504500100101%Percent sign
382604600100110&Ampersand
392704700100111'Apostrophe (single quote)
402805000101000(Left parenthesis
412905100101001)Right parenthesis
422A05200101010*Asterisk
432B05300101011+Plus sign
442C05400101100,Comma
452D05500101101-Hyphen-minus
462E05600101110.Full stop (period)
472F05700101111/Slash
4830060001100000Digit 0
4931061001100011Digit 1
5032062001100102Digit 2
5133063001100113Digit 3
5234064001101004Digit 4
5335065001101015Digit 5
5436066001101106Digit 6
5537067001101117Digit 7
5638070001110008Digit 8
5739071001110019Digit 9
583A07200111010:Colon
593B07300111011;Semicolon
603C07400111100<Less-than sign
613D07500111101=Equals sign
623E07600111110>Greater-than sign
633F07700111111?Question mark

Uppercase letters and symbols, 64 to 95

DecHexOctBinaryCharDescription
644010001000000@At sign
654110101000001AUppercase letter A
664210201000010BUppercase letter B
674310301000011CUppercase letter C
684410401000100DUppercase letter D
694510501000101EUppercase letter E
704610601000110FUppercase letter F
714710701000111GUppercase letter G
724811001001000HUppercase letter H
734911101001001IUppercase letter I
744A11201001010JUppercase letter J
754B11301001011KUppercase letter K
764C11401001100LUppercase letter L
774D11501001101MUppercase letter M
784E11601001110NUppercase letter N
794F11701001111OUppercase letter O
805012001010000PUppercase letter P
815112101010001QUppercase letter Q
825212201010010RUppercase letter R
835312301010011SUppercase letter S
845412401010100TUppercase letter T
855512501010101UUppercase letter U
865612601010110VUppercase letter V
875712701010111WUppercase letter W
885813001011000XUppercase letter X
895913101011001YUppercase letter Y
905A13201011010ZUppercase letter Z
915B13301011011[Left square bracket
925C13401011100\Backslash
935D13501011101]Right square bracket
945E13601011110^Caret
955F13701011111_Underscore

Lowercase letters and symbols, 96 to 127

DecHexOctBinaryCharDescription
966014001100000`Grave accent (backtick)
976114101100001aLowercase letter a
986214201100010bLowercase letter b
996314301100011cLowercase letter c
1006414401100100dLowercase letter d
1016514501100101eLowercase letter e
1026614601100110fLowercase letter f
1036714701100111gLowercase letter g
1046815001101000hLowercase letter h
1056915101101001iLowercase letter i
1066A15201101010jLowercase letter j
1076B15301101011kLowercase letter k
1086C15401101100lLowercase letter l
1096D15501101101mLowercase letter m
1106E15601101110nLowercase letter n
1116F15701101111oLowercase letter o
1127016001110000pLowercase letter p
1137116101110001qLowercase letter q
1147216201110010rLowercase letter r
1157316301110011sLowercase letter s
1167416401110100tLowercase letter t
1177516501110101uLowercase letter u
1187616601110110vLowercase letter v
1197716701110111wLowercase letter w
1207817001111000xLowercase letter x
1217917101111001yLowercase letter y
1227A17201111010zLowercase letter z
1237B17301111011{Left curly brace
1247C17401111100|Vertical bar
1257D17501111101}Right curly brace
1267E17601111110~Tilde
1277F17701111111DELDelete. Originally erased a punched-tape character

Extended ASCII is not ASCII

You may see references to "extended ASCII" with codes 128 to 255. There is no single standard. ISO 8859-1 (Latin-1), Windows-1252 and many other 8-bit code pages each use that upper half differently, which is why text sometimes shows garbled characters when it is read with the wrong encoding. Unicode and UTF-8 solved this: characters beyond ASCII are encoded as multi-byte sequences whose bytes are all 128 or above, so they never collide with ASCII.

Common mistakes

Sources