ASCII table

All 128 ASCII characters with their decimal, hex, octal and binary codes. Codes 0–31 and 127 are control characters; 32–126 are printable.

DecHexOctBinaryCharName
00000000000000NULNUL – Null
10100100000001SOHSOH – Start of heading
20200200000010STXSTX – Start of text
30300300000011ETXETX – End of text
40400400000100EOTEOT – End of transmission
50500500000101ENQENQ – Enquiry
60600600000110ACKACK – Acknowledge
70700700000111BELBEL – Bell
80801000001000BSBS – Backspace
90901100001001HTHT – Horizontal tab
100A01200001010LFLF – Line feed (newline)
110B01300001011VTVT – Vertical tab
120C01400001100FFFF – Form feed
130D01500001101CRCR – Carriage return
140E01600001110SOSO – Shift out
150F01700001111SISI – Shift in
161002000010000DLEDLE – Data link escape
171102100010001DC1DC1 – Device control 1 (XON)
181202200010010DC2DC2 – Device control 2
191302300010011DC3DC3 – Device control 3 (XOFF)
201402400010100DC4DC4 – Device control 4
211502500010101NAKNAK – Negative acknowledge
221602600010110SYNSYN – Synchronous idle
231702700010111ETBETB – End of transmission block
241803000011000CANCAN – Cancel
251903100011001EMEM – End of medium
261A03200011010SUBSUB – Substitute
271B03300011011ESCESC – Escape
281C03400011100FSFS – File separator
291D03500011101GSGS – Group separator
301E03600011110RSRS – Record separator
311F03700011111USUS – Unit separator
322004000100000␠Space
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.Period (full stop)
472F05700101111/Slash (solidus)
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
644010001000000@At sign
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[Left square bracket
925C13401011100\Backslash
935D13501011101]Right square bracket
945E13601011110^Caret (circumflex)
955F13701011111_Underscore
966014001100000`Grave accent (backtick)
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{Left curly brace
1247C17401111100|Vertical bar (pipe)
1257D17501111101}Right curly brace
1267E17601111110~Tilde
1277F17701111111DELDEL – Delete

Handy ASCII facts

Frequently asked questions

What is the ASCII code for A?
65 in decimal, 0x41 in hex, 01000001 in binary. Lowercase a is 97.
What is the ASCII code for space?
32 (0x20).
What is the difference between ASCII and Unicode?
ASCII defines 128 characters. Unicode defines over 150,000 and includes ASCII as its first 128 code points.