ASCII Table

All 128 ASCII characters with their decimal, hex, octal and binary codes. Search by character, number or name, and convert text to codes below.

DecHexOctBinaryCharDescription
00000000000000NULNull
10100100000001SOHStart of heading
20200200000010STXStart of text
30300300000011ETXEnd of text
40400400000100EOTEnd of transmission
50500500000101ENQEnquiry
60600600000110ACKAcknowledge
70700700000111BELBell
80801000001000BSBackspace
90901100001001HTHorizontal tab
100A01200001010LFLine feed (\n)
110B01300001011VTVertical tab
120C01400001100FFForm feed
130D01500001101CRCarriage return (\r)
140E01600001110SOShift out
150F01700001111SIShift in
161002000010000DLEData link escape
171102100010001DC1Device control 1 (XON)
181202200010010DC2Device control 2
191302300010011DC3Device control 3 (XOFF)
201402400010100DC4Device control 4
211502500010101NAKNegative acknowledge
221602600010110SYNSynchronous idle
231702700010111ETBEnd of transmission block
241803000011000CANCancel
251903100011001EMEnd of medium
261A03200011010SUBSubstitute
271B03300011011ESCEscape
281C03400011100FSFile separator
291D03500011101GSGroup separator
301E03600011110RSRecord separator
311F03700011111USUnit separator
322004000100000SPSpace
332104100100001!
342204200100010"
352304300100011#
362404400100100$
372504500100101%
382604600100110&
392704700100111'
402805000101000(
412905100101001)
422A05200101010*
432B05300101011+
442C05400101100,
452D05500101101-
462E05600101110.
472F05700101111/
4830060001100000Digit 0
4931061001100011Digit 1
5032062001100102Digit 2
5133063001100113Digit 3
5234064001101004Digit 4
5335065001101015Digit 5
5436066001101106Digit 6
5537067001101117Digit 7
5638070001110008Digit 8
5739071001110019Digit 9
583A07200111010:
593B07300111011;
603C07400111100<
613D07500111101=
623E07600111110>
633F07700111111?
644010001000000@
654110101000001AUppercase A
664210201000010BUppercase B
674310301000011CUppercase C
684410401000100DUppercase D
694510501000101EUppercase E
704610601000110FUppercase F
714710701000111GUppercase G
724811001001000HUppercase H
734911101001001IUppercase I
744A11201001010JUppercase J
754B11301001011KUppercase K
764C11401001100LUppercase L
774D11501001101MUppercase M
784E11601001110NUppercase N
794F11701001111OUppercase O
805012001010000PUppercase P
815112101010001QUppercase Q
825212201010010RUppercase R
835312301010011SUppercase S
845412401010100TUppercase T
855512501010101UUppercase U
865612601010110VUppercase V
875712701010111WUppercase W
885813001011000XUppercase X
895913101011001YUppercase Y
905A13201011010ZUppercase Z
915B13301011011[
925C13401011100\
935D13501011101]
945E13601011110^
955F13701011111_
966014001100000`
976114101100001aLowercase a
986214201100010bLowercase b
996314301100011cLowercase c
1006414401100100dLowercase d
1016514501100101eLowercase e
1026614601100110fLowercase f
1036714701100111gLowercase g
1046815001101000hLowercase h
1056915101101001iLowercase i
1066A15201101010jLowercase j
1076B15301101011kLowercase k
1086C15401101100lLowercase l
1096D15501101101mLowercase m
1106E15601101110nLowercase n
1116F15701101111oLowercase o
1127016001110000pLowercase p
1137116101110001qLowercase q
1147216201110010rLowercase r
1157316301110011sLowercase s
1167416401110100tLowercase t
1177516501110101uLowercase u
1187616601110110vLowercase v
1197716701110111wLowercase w
1207817001111000xLowercase x
1217917101111001yLowercase y
1227A17201111010zLowercase z
1237B17301111011{
1247C17401111100|
1257D17501111101}
1267E17601111110~
1277F17701111111DELDelete

Text to ASCII codes

Characters beyond ASCII show their Unicode code point, e.g. é is 233.

Patterns hidden in the table

  • Digits start at 48 (hex 30), so subtracting 48 from a digit’s code gives its value. That is why '7' - '0' is 7 in C.
  • Case: uppercase A–Z is 65–90 and lowercase a–z is 97–122. Each pair differs by 32, a single bit (hex 20). Flip that bit and you flip the case.
  • Control codes 0–31 were commands for teleprinters: ring the bell (7), backspace (8), line feed (10). Ctrl+letter on a keyboard still sends letter − 64, so Ctrl+C is 3, “end of text”.

ASCII was designed as a 7-bit code for teleprinters, and the tape at the top of this page punches “ASCII” exactly the way one of those machines would. To read or write whole messages in bits, use the binary translator.

Questions people ask

What is ASCII?

ASCII (American Standard Code for Information Interchange) is a 7-bit character set published in 1963 and revised in 1967. It assigns the numbers 0–127 to English letters, digits, punctuation and 33 control codes. Every modern encoding, including UTF-8, keeps these 128 codes unchanged.

What is the ASCII code for A?

Uppercase A is 65 (hex 41, binary 01000001). Lowercase a is 97 (hex 61). The digit 0 is 48 and a space is 32.

What is extended ASCII (128–255)?

There is no single extended ASCII. Codes 128–255 were used differently by different code pages, such as ISO-8859-1 (Latin-1) and Windows-1252. Today UTF-8 is used instead, where those values start multi-byte characters.

Why is DEL code 127?

On punched paper tape, 127 is all seven holes punched (1111111). Punching every hole over a mistake erased it, so “delete” had to be the all-ones code.

What is the difference between LF and CR?

LF (10) moves to the next line and CR (13) returns to the start of the line — terms from typewriters and teleprinters. Unix and macOS end lines with LF; Windows uses CR followed by LF.

Related tools