ASCII Table
| Dec | Hex | Name | What it does today |
|---|---|---|---|
| 0 | 00 | NUL | ends C strings; the original "nothing here" |
| 7 | 07 | BEL | rang a real bell on teletypes; now the terminal beep |
| 8 | 08 | BS | backspace |
| 9 | 09 | TAB | horizontal tab - indentation wars start here |
| 10 | 0A | LF | line feed - the Unix/macOS line ending |
| 13 | 0D | CR | carriage return - Windows ends lines with CR+LF |
| 27 | 1B | ESC | starts terminal escape sequences (colors, cursor moves) |
| 127 | 7F | DEL | legacy erase; rarely used today |
| Dec | Hex | Char | Dec | Hex | Char |
|---|---|---|---|---|---|
| 32 | 20 | (space) | 44 | 2C | , |
| 33 | 21 | ! | 45 | 2D | - |
| 34 | 22 | " | 46 | 2E | . |
| 35 | 23 | # | 47 | 2F | / |
| 36 | 24 | $ | 48 | 30 | 0 |
| 37 | 25 | % | 49 | 31 | 1 |
| 38 | 26 | & | 50 | 32 | 2 |
| 39 | 27 | ' | 51 | 33 | 3 |
| 40 | 28 | ( | 52 | 34 | 4 |
| 41 | 29 | ) | 53 | 35 | 5 |
| 42 | 2A | * | 54 | 36 | 6 |
| 43 | 2B | + | 55 | 37 | 7 |
| Dec | Hex | Char | Dec | Hex | Char |
|---|---|---|---|---|---|
| 56 | 38 | 8 | 68 | 44 | D |
| 57 | 39 | 9 | 69 | 45 | E |
| 58 | 3A | : | 70 | 46 | F |
| 59 | 3B | ; | 71 | 47 | G |
| 60 | 3C | < | 72 | 48 | H |
| 61 | 3D | = | 73 | 49 | I |
| 62 | 3E | > | 74 | 4A | J |
| 63 | 3F | ? | 75 | 4B | K |
| 64 | 40 | @ | 76 | 4C | L |
| 65 | 41 | A | 77 | 4D | M |
| 66 | 42 | B | 78 | 4E | N |
| 67 | 43 | C | 79 | 4F | O |
| Dec | Hex | Char | Dec | Hex | Char |
|---|---|---|---|---|---|
| 80 | 50 | P | 92 | 5C | \ |
| 81 | 51 | Q | 93 | 5D | ] |
| 82 | 52 | R | 94 | 5E | ^ |
| 83 | 53 | S | 95 | 5F | _ |
| 84 | 54 | T | 96 | 60 | ` |
| 85 | 55 | U | 97 | 61 | a |
| 86 | 56 | V | 98 | 62 | b |
| 87 | 57 | W | 99 | 63 | c |
| 88 | 58 | X | 100 | 64 | d |
| 89 | 59 | Y | 101 | 65 | e |
| 90 | 5A | Z | 102 | 66 | f |
| 91 | 5B | [ | 103 | 67 | g |
| Dec | Hex | Char | Dec | Hex | Char |
|---|---|---|---|---|---|
| 104 | 68 | h | 116 | 74 | t |
| 105 | 69 | i | 117 | 75 | u |
| 106 | 6A | j | 118 | 76 | v |
| 107 | 6B | k | 119 | 77 | w |
| 108 | 6C | l | 120 | 78 | x |
| 109 | 6D | m | 121 | 79 | y |
| 110 | 6E | n | 122 | 7A | z |
| 111 | 6F | o | 123 | 7B | { |
| 112 | 70 | p | 124 | 7C | | |
| 113 | 71 | q | 125 | 7D | } |
| 114 | 72 | r | 126 | 7E | ~ |
| 115 | 73 | s |
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
- Scan the printable range table for a code: decimal, hex, binary and the character are in each row.
- Check the control characters table for the codes that still matter: TAB, LF, CR, ESC and NUL.
- 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 @ or @ 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.