ASCII Table

–
Control characters still in daily use
DecHexNameWhat it does today
000NULends C strings; the original "nothing here"
707BELrang a real bell on teletypes; now the terminal beep
808BSbackspace
909TABhorizontal tab - indentation wars start here
100ALFline feed - the Unix/macOS line ending
130DCRcarriage return - Windows ends lines with CR+LF
271BESCstarts terminal escape sequences (colors, cursor moves)
1277FDELlegacy erase; rarely used today
Printable range 32-126 (95 characters, space through tilde)
DecHexCharDecHexChar
3220(space)442C,
3321!452D-
3422"462E.
3523#472F/
3624$48300
3725%49311
3826&50322
3927'51333
4028(52344
4129)53355
422A*54366
432B+55377
DecHexCharDecHexChar
563886844D
573996945E
583A:7046F
593B;7147G
603C<7248H
613D=7349I
623E>744AJ
633F?754BK
6440@764CL
6541A774DM
6642B784EN
6743C794FO
DecHexCharDecHexChar
8050P925C\
8151Q935D]
8252R945E^
8353S955F_
8454T9660`
8555U9761a
8656V9862b
8757W9963c
8858X10064d
8959Y10165e
905AZ10266f
915B[10367g
DecHexCharDecHexChar
10468h11674t
10569i11775u
1066Aj11876v
1076Bk11977w
1086Cl12078x
1096Dm12179y
1106En1227Az
1116Fo1237B{
11270p1247C|
11371q1257D}
11472r1267E~
11573s
Where the numbers come from: control codes first (0-31), punctuation and digits (32-64, with 0-9 at 48-57), uppercase at 65-90, lowercase at 97-122. The one-bit gem: lowercase equals uppercase plus 32, a single bit flip - and 48-57 keeps digits sortable as text. Official definition: RFC 20: ASCII format for Network Interchange (1969), the document that put ASCII on the ARPANET.
Beyond 127 everything is Unicode: byte 128-255 meant different things on different systems (the "extended ASCII" chaos -é on one machine, block art on another) until UTF-8 settled it by keeping ASCII bytes exactly as they are. Converting text to those bytes: text to binary shows each character's bits, Base64 encode-decode packs bytes into text, and the word counter counts what those bytes spell.

ASCII - the American Standard Code for Information Interchange, standardized in 1963 and defined for networks in RFC 20 - maps 128 numbers to the characters every computer agrees on: 95 printable symbols (space through tilde) and 33 control codes that once drove teletypes and still hide inside every text file you own. The table below lists the full set with decimal, hex and binary values, plus a lookup box: type any character and see its code in every base.

Two design decisions from 1963 still shape computing. First, uppercase and lowercase letters differ by exactly one bit (A is 65, a is 97 - they differ by 32, a single binary digit), which is why case-insensitive matching is one cheap comparison away. Second, control codes survive: LF (10) and CR (13) are literally why Windows files and Unix files disagree about line endings - the CRLF versus LF war is ASCII history you can still trigger with the wrong file transfer mode.

How to use

  1. Scan the printable range table for a code: decimal, hex, binary and the character are in each row.
  2. Check the control characters table for the codes that still matter: TAB, LF, CR, ESC and NUL.
  3. Use the lookup box - type a character like A, % or 7 - and read its decimal, hex and binary code live.

Frequently asked questions

What is the difference between ASCII and Unicode?

ASCII is 128 characters - enough for English, and the first 128 code points of Unicode are identical to it, byte for byte. Unicode extends the same idea to over 150,000 characters (every living script, emoji included) using encodings like UTF-8, whose clever trick is keeping ASCII bytes unchanged: a file that is pure ASCII is automatically valid UTF-8. That backward compatibility, not sentimentality, is why 1963 decisions still run the internet.

Why does uppercase A have code 65?

Because the layout packs six things into seven bits by ranges: control codes first (0-31), punctuation (32-64), then digits 0-9 at 48-57, uppercase A-Z at 65-90, more punctuation, lowercase a-z at 97-122. Putting digits before letters means 'sort as text' and 'sort as number' agree for numbers of equal length - a 1963 design choice your file explorer still inherits.

Do control characters still do anything?

Yes - three of them structure every text file: TAB (9), LF (10) and CR (13). Windows ends lines with CRLF (13 then 10); Unix and macOS use LF alone; classic Mac used CR. That is the entire difference between 'wrong line endings' in your editor and why git warns about them. NUL (0) ends strings in C, ESC (27) still starts terminal escape sequences, and BEL (7) is the bell - the only code that originally rang a physical bell on the teletype.

How do I type an ASCII code instead of the character?

Windows: hold Alt and type the decimal code on the numpad (Alt+64 gives @). In HTML, use the entity form &#64; or &#x40; for the same character. Programmers meet the reverse daily: in Python, ord('A') returns 65 and chr(65) returns 'A' - and JavaScript's String.fromCharCode(65) does the same job in the browser, which is exactly what the lookup box above runs.

Related tools