TFT

ASCII Table: Complete ASCII Code Reference (0-127)

Comprehensive ASCII reference table showing decimal, hex, octal, and binary values for all 128 ASCII characters. Includes control characters (NUL, SOH, STX), printable characters, and extended ASCII. Search and filter by character or code.

ASCII Character Table (0-127)

DecHexOctBinaryCharNameCopy
0000000000000NULNUL
1010010000001SOHSOH
2020020000010STXSTX
3030030000011ETXETX
4040040000100EOTEOT
5050050000101ENQENQ
6060060000110ACKACK
7070070000111BELBEL
8080100001000BSBS
9090110001001HTHT
100A0120001010LFLF
110B0130001011VTVT
120C0140001100FFFF
130D0150001101CRCR
140E0160001110SOSO
150F0170001111SISI
16100200010000DLEDLE
17110210010001DC1DC1
18120220010010DC2DC2
19130230010011DC3DC3
20140240010100DC4DC4
21150250010101NAKNAK
22160260010110SYNSYN
23170270010111ETBETB
24180300011000CANCAN
25190310011001EMEM
261A0320011010SUBSUB
271B0330011011ESCESC
281C0340011100FSFS
291D0350011101GSGS
301E0360011110RSRS
311F0370011111USUS
32200400100000 Printable
33210410100001!Printable
34220420100010"Printable
35230430100011#Printable
36240440100100$Printable
37250450100101%Printable
38260460100110&Printable
39270470100111'Printable
40280500101000(Printable
41290510101001)Printable
422A0520101010*Printable
432B0530101011+Printable
442C0540101100,Printable
452D0550101101-Printable
462E0560101110.Printable
472F0570101111/Printable
483006001100000Printable
493106101100011Printable
503206201100102Printable
513306301100113Printable
523406401101004Printable
533506501101015Printable
543606601101106Printable
553706701101117Printable
563807001110008Printable
573907101110019Printable
583A0720111010:Printable
593B0730111011;Printable
603C0740111100<Printable
613D0750111101=Printable
623E0760111110>Printable
633F0770111111?Printable
64401001000000@Printable
65411011000001APrintable
66421021000010BPrintable
67431031000011CPrintable
68441041000100DPrintable
69451051000101EPrintable
70461061000110FPrintable
71471071000111GPrintable
72481101001000HPrintable
73491111001001IPrintable
744A1121001010JPrintable
754B1131001011KPrintable
764C1141001100LPrintable
774D1151001101MPrintable
784E1161001110NPrintable
794F1171001111OPrintable
80501201010000PPrintable
81511211010001QPrintable
82521221010010RPrintable
83531231010011SPrintable
84541241010100TPrintable
85551251010101UPrintable
86561261010110VPrintable
87571271010111WPrintable
88581301011000XPrintable
89591311011001YPrintable
905A1321011010ZPrintable
915B1331011011[Printable
925C1341011100\Printable
935D1351011101]Printable
945E1361011110^Printable
955F1371011111_Printable
96601401100000`Printable
97611411100001aPrintable
98621421100010bPrintable
99631431100011cPrintable
100641441100100dPrintable
101651451100101ePrintable
102661461100110fPrintable
103671471100111gPrintable
104681501101000hPrintable
105691511101001iPrintable
1066A1521101010jPrintable
1076B1531101011kPrintable
1086C1541101100lPrintable
1096D1551101101mPrintable
1106E1561101110nPrintable
1116F1571101111oPrintable
112701601110000pPrintable
113711611110001qPrintable
114721621110010rPrintable
115731631110011sPrintable
116741641110100tPrintable
117751651110101uPrintable
118761661110110vPrintable
119771671110111wPrintable
120781701111000xPrintable
121791711111001yPrintable
1227A1721111010zPrintable
1237B1731111011{Printable
1247C1741111100|Printable
1257D1751111101}Printable
1267E1761111110~Printable
1277F1771111111DELDEL

Legend

Dec

Decimal (base-10)

Hex

Hexadecimal (base-16)

Oct

Octal (base-8)

Binary

Binary (base-2)

How it works

This tool displays the complete ASCII character table, showing all 128 standard ASCII codes (0-127) with their decimal, hexadecimal, octal, binary, and character representations.

The table organizes characters by code value, making it easy to look up any ASCII character's various representations. Control characters (0-31) show their abbreviations, while printable characters (32-126) display directly.

ASCII table sections:

0-31Control characters (NUL, SOH, etc.)
32-126Printable characters (space to ~)
127Delete character (DEL)

Search by character, code, or description. Click any row to copy the character or code value. Use the filter to show only printable characters or include control codes.

When you'd actually use this

Looking up ASCII codes for programming

A developer needs the ASCII code for newline in their code. They check the table and find LF (Line Feed) is code 10, or 0x0A in hex, for use in their byte array.

Understanding control characters

A student learning about text files encounters \r\n line endings. They look up CR (13) and LF (10) to understand what these control characters actually do.

Debugging character encoding issues

A QA engineer sees unexpected behavior with tab characters. They verify that tab is ASCII 9 (0x09) and check if their code handles it correctly.

Writing character classification functions

A programmer writes isDigit() and isAlpha() functions. They reference the ASCII table to find that digits are 48-57, uppercase is 65-90, lowercase is 97-122.

Creating test data with special characters

A tester needs input with specific control characters. They use the table to find the codes and generate test strings with null bytes, tabs, or other special characters.

Learning computer science fundamentals

A beginner studies how computers represent text. The ASCII table shows the mapping between characters and numbers, a fundamental concept in computing.

What to know before using it

ASCII only has 128 characters.Standard ASCII covers codes 0-127. Extended ASCII (128-255) varies by code page and isn't standardized. Unicode extends this to over 140,000 characters.

Control characters aren't printable.Codes 0-31 and 127 are control characters. They affect text formatting (like tab, newline) or have historical meanings (like bell, escape) but don't display as visible symbols.

Case matters in ASCII.Uppercase and lowercase letters have different codes. 'A' is 65, 'a' is 97. The 32-point difference is consistent—flip bit 5 to toggle case.

Some control characters are still used.NUL (0), TAB (9), LF (10), CR (13), and ESC (27) are still common in modern systems. Others like SOH, STX, ETX are mostly historical.

Pro tip: Memorize key ranges: 48-57 for digits, 65-90 for uppercase, 97-122 for lowercase. These patterns help you quickly validate character types in code without looking them up.

Common questions

What is ASCII code for space?

Space is ASCII 32 (0x20 in hex, 040 in octal). It's the first printable character. Codes below 32 are control characters.

What's the difference between CR and LF?

CR (Carriage Return, 13) moves the cursor to the start of the line. LF (Line Feed, 10) moves down one line. Windows uses both (CRLF) for line endings. Unix uses just LF.

Why are digits 48-57 not 0-9?

ASCII reserves codes 0-31 for control characters. Printable characters start at 32 (space). Digits begin at 48 so '0' is 48, '1' is 49, etc. This leaves room for punctuation first.

What character is ASCII 0?

ASCII 0 is NUL, the null character. It's used to terminate strings in C and C++. You can't display it—it has no visual representation.

Is ASCII still used today?

Yes, ASCII is the foundation of Unicode. The first 128 Unicode code points match ASCII exactly. Most English text is still pure ASCII even in UTF-8 encoding.

What's the ASCII code for newline?

It depends on the system. Unix/Linux/macOS use LF (10). Windows uses CR+LF (13, 10). Old Mac (pre-OS X) used just CR (13).

How do I type control characters?

Use keyboard shortcuts: Ctrl+@ for NUL, Ctrl+I for TAB, Ctrl+M for CR, Ctrl+[ for ESC. Or use escape sequences in code: \0, \t, \n, \r, \e.