QuickRef.
Reference table

ASCII Table

Every ASCII character from 0 to 127 with its decimal, hex, octal, and binary value. Search by any column and click a character to copy it.

ASCII lookup128 of 128 shown
ASCII characters 0 to 127
DecHexOctBinaryCharNameDescription
00x0000000000000NULNULNull character (control)
10x0100100000001SOHSOHStart of Heading (control)
20x0200200000010STXSTXStart of Text (control)
30x0300300000011ETXETXEnd of Text (control)
40x0400400000100EOTEOTEnd of Transmission (control)
50x0500500000101ENQENQEnquiry (control)
60x0600600000110ACKACKAcknowledge (control)
70x0700700000111BELBELBell / Alert (control)
80x0801000001000BSBSBackspace (control)
90x0901100001001HTHTHorizontal Tab (control)
100x0A01200001010LFLFLine Feed (control)
110x0B01300001011VTVTVertical Tab (control)
120x0C01400001100FFFFForm Feed (control)
130x0D01500001101CRCRCarriage Return (control)
140x0E01600001110SOSOShift Out (control)
150x0F01700001111SISIShift In (control)
160x1002000010000DLEDLEData Link Escape (control)
170x1102100010001DC1DC1Device Control 1 (XON) (control)
180x1202200010010DC2DC2Device Control 2 (control)
190x1302300010011DC3DC3Device Control 3 (XOFF) (control)
200x1402400010100DC4DC4Device Control 4 (control)
210x1502500010101NAKNAKNegative Acknowledge (control)
220x1602600010110SYNSYNSynchronous Idle (control)
230x1702700010111ETBETBEnd of Transmission Block (control)
240x1803000011000CANCANCancel (control)
250x1903100011001EMEMEnd of Medium (control)
260x1A03200011010SUBSUBSubstitute (control)
270x1B03300011011ESCESCEscape (control)
280x1C03400011100FSFSFile Separator (control)
290x1D03500011101GSGSGroup Separator (control)
300x1E03600011110RSRSRecord Separator (control)
310x1F03700011111USUSUnit Separator (control)
320x2004000100000 SPSpace
330x2104100100001!!Printable character
340x2204200100010""Printable character
350x2304300100011##Printable character
360x2404400100100$$Printable character
370x2504500100101%%Printable character
380x2604600100110&&Printable character
390x2704700100111''Printable character
400x2805000101000((Printable character
410x2905100101001))Printable character
420x2A05200101010**Printable character
430x2B05300101011++Printable character
440x2C05400101100,,Printable character
450x2D05500101101--Printable character
460x2E05600101110..Printable character
470x2F05700101111//Printable character
480x300600011000000Printable character
490x310610011000111Printable character
500x320620011001022Printable character
510x330630011001133Printable character
520x340640011010044Printable character
530x350650011010155Printable character
540x360660011011066Printable character
550x370670011011177Printable character
560x380700011100088Printable character
570x390710011100199Printable character
580x3A07200111010::Printable character
590x3B07300111011;;Printable character
600x3C07400111100<<Printable character
610x3D07500111101==Printable character
620x3E07600111110>>Printable character
630x3F07700111111??Printable character
640x4010001000000@@Printable character
650x4110101000001AAPrintable character
660x4210201000010BBPrintable character
670x4310301000011CCPrintable character
680x4410401000100DDPrintable character
690x4510501000101EEPrintable character
700x4610601000110FFPrintable character
710x4710701000111GGPrintable character
720x4811001001000HHPrintable character
730x4911101001001IIPrintable character
740x4A11201001010JJPrintable character
750x4B11301001011KKPrintable character
760x4C11401001100LLPrintable character
770x4D11501001101MMPrintable character
780x4E11601001110NNPrintable character
790x4F11701001111OOPrintable character
800x5012001010000PPPrintable character
810x5112101010001QQPrintable character
820x5212201010010RRPrintable character
830x5312301010011SSPrintable character
840x5412401010100TTPrintable character
850x5512501010101UUPrintable character
860x5612601010110VVPrintable character
870x5712701010111WWPrintable character
880x5813001011000XXPrintable character
890x5913101011001YYPrintable character
900x5A13201011010ZZPrintable character
910x5B13301011011[[Printable character
920x5C13401011100\\Printable character
930x5D13501011101]]Printable character
940x5E13601011110^^Printable character
950x5F13701011111__Printable character
960x6014001100000``Printable character
970x6114101100001aaPrintable character
980x6214201100010bbPrintable character
990x6314301100011ccPrintable character
1000x6414401100100ddPrintable character
1010x6514501100101eePrintable character
1020x6614601100110ffPrintable character
1030x6714701100111ggPrintable character
1040x6815001101000hhPrintable character
1050x6915101101001iiPrintable character
1060x6A15201101010jjPrintable character
1070x6B15301101011kkPrintable character
1080x6C15401101100llPrintable character
1090x6D15501101101mmPrintable character
1100x6E15601101110nnPrintable character
1110x6F15701101111ooPrintable character
1120x7016001110000ppPrintable character
1130x7116101110001qqPrintable character
1140x7216201110010rrPrintable character
1150x7316301110011ssPrintable character
1160x7416401110100ttPrintable character
1170x7516501110101uuPrintable character
1180x7616601110110vvPrintable character
1190x7716701110111wwPrintable character
1200x7817001111000xxPrintable character
1210x7917101111001yyPrintable character
1220x7A17201111010zzPrintable character
1230x7B17301111011{{Printable character
1240x7C17401111100||Printable character
1250x7D17501111101}}Printable character
1260x7E17601111110~~Printable character
1270x7F17701111111DELDELDelete (control)

Click a character to copy it. Control codes copy their abbreviation.

Reading the ASCII table

ASCII is the encoding that quietly underpins almost all plain text. Fixed in the 1960s by the American National Standards Institute, it assigns a number from 0 to 127 to each letter, digit, punctuation mark, and a set of control codes. Because it needs only seven bits, any ASCII text is trivially portable, and its printable range is reproduced exactly in Unicode, so an ASCII file is already valid UTF-8 without any conversion.

The layout is deliberate. Digits sit in a contiguous block from 48 to 57, so subtracting 48 from a digit character gives its numeric value. Capital letters run 65 to 90 and lower case 97 to 122, a gap of exactly 32, which is a single bit. That structure is why case folding and simple parsing were cheap on early hardware, and it still shapes how strings are compared today.

Practical uses

  • Convert a character to its code point when debugging encoding issues.
  • Read escape sequences that start at code 27 to understand terminal color output.
  • Spot invisible control characters, such as a stray carriage return, that break file parsing.
  • Map hex bytes in a dump back to readable characters.

Frequently asked questions

FAQ
What is the ASCII table?

ASCII, the American Standard Code for Information Interchange, maps the numbers 0 through 127 to characters. Codes 0 to 31 and 127 are control codes such as tab and carriage return, 32 is the space, 48 to 57 are the digits, 65 to 90 are capital letters, and 97 to 122 are lower case letters.

What is the ASCII value of A?

The capital letter A is decimal 65, hex 0x41, and binary 01000001. Lower case a is decimal 97, exactly 32 higher, which is why flipping bit 6 switches the case of a letter.

What is the difference between ASCII and Unicode?

ASCII defines only 128 code points and fits in seven bits. Unicode is a superset whose first 128 code points are identical to ASCII, so every ASCII file is already valid UTF-8. Unicode then extends far beyond that to cover the writing systems of the world.

What are control characters used for?

Control characters are non printing codes that once drove teleprinters and terminals. A few are still everywhere: 9 is horizontal tab, 10 is line feed (the Unix newline), 13 is carriage return, and 27 is escape, which begins the sequences that color terminal output.

See also