ASCII Table
All 128 ASCII codes. Click any character to copy.
By Λ · Updated June 9, 2026
ASCII (American Standard Code for Information Interchange) defines 128 characters using 7 bits per character. The first 32 are control characters; the remaining 96 are printable characters including digits, letters, and punctuation. Modern systems use UTF-8 which extends ASCII to the full Unicode range while keeping the first 128 codes identical to ASCII.
I keep this table open most often for three jobs. First, decoding escape sequences in logs: when a parser chokes on byte 0x09 or 0x0D, the table names the culprit (TAB, CR) immediately. Second, sanity-checking binary file headers, where the printable range 32-126 separates text from raw data at a glance. Third, the digit and letter arithmetic in the notes below, which turns up in every low-level string routine. Click any character to copy it, including the control characters, which copy their real byte value rather than the abbreviation.
Control Characters (0-31, 127)
Printable Characters (32-126)
Notes
32 = space,10 = LF(newline),13 = CR,9 = TAB- To convert a digit char to its numeric value: subtract 48.
'7'(55) - 48 = 7. - To convert uppercase to lowercase: add 32.
'A'(65) + 32 ='a'(97). - Extended ASCII (128-255) is not standardized; Windows-1252, Latin-1, and others all define these differently. Always use UTF-8 for non-ASCII text.
Related
Last updated