The ASCII table
| Dec | Hex | Oct | Binary | Char | Name |
|---|---|---|---|---|---|
| 0 | 00 | 000 | 0000000 | NUL | Null |
| 1 | 01 | 001 | 0000001 | SOH | Start of Heading |
| 2 | 02 | 002 | 0000010 | STX | Start of Text |
| 3 | 03 | 003 | 0000011 | ETX | End of Text |
| 4 | 04 | 004 | 0000100 | EOT | End of Transmission |
| 5 | 05 | 005 | 0000101 | ENQ | Enquiry |
| 6 | 06 | 006 | 0000110 | ACK | Acknowledge |
| 7 | 07 | 007 | 0000111 | BEL | Bell |
| 8 | 08 | 010 | 0001000 | BS | Backspace |
| 9 | 09 | 011 | 0001001 | HT | Horizontal Tabulation |
| 10 | 0A | 012 | 0001010 | LF | Line Feed |
| 11 | 0B | 013 | 0001011 | VT | Vertical Tabulation |
| 12 | 0C | 014 | 0001100 | FF | Form Feed |
| 13 | 0D | 015 | 0001101 | CR | Carriage Return |
| 14 | 0E | 016 | 0001110 | SO | Shift Out |
| 15 | 0F | 017 | 0001111 | SI | Shift In |
| 16 | 10 | 020 | 0010000 | DLE | Data Link Escape |
| 17 | 11 | 021 | 0010001 | DC1 | Device Control 1 |
| 18 | 12 | 022 | 0010010 | DC2 | Device Control 2 |
| 19 | 13 | 023 | 0010011 | DC3 | Device Control 3 |
| 20 | 14 | 024 | 0010100 | DC4 | Device Control 4 (Stop) |
| 21 | 15 | 025 | 0010101 | NAK | Negative Acknowledge |
| 22 | 16 | 026 | 0010110 | SYN | Synchronous Idle |
| 23 | 17 | 027 | 0010111 | ETB | End of Transmission Block |
| 24 | 18 | 030 | 0011000 | CAN | Cancel |
| 25 | 19 | 031 | 0011001 | EM | End of Medium |
| 26 | 1A | 032 | 0011010 | SUB | Substitute |
| 27 | 1B | 033 | 0011011 | ESC | Escape |
| 28 | 1C | 034 | 0011100 | FS | File Separator |
| 29 | 1D | 035 | 0011101 | GS | Group Separator |
| 30 | 1E | 036 | 0011110 | RS | Record Separator |
| 31 | 1F | 037 | 0011111 | US | Unit Separator |
| 32 | 20 | 040 | 0100000 | SP | Space |
| 33 | 21 | 041 | 0100001 | ! | Exclamation mark |
| 34 | 22 | 042 | 0100010 | " | Quotation mark |
| 35 | 23 | 043 | 0100011 | # | Number sign |
| 36 | 24 | 044 | 0100100 | $ | Dollar sign |
| 37 | 25 | 045 | 0100101 | % | Percent sign |
| 38 | 26 | 046 | 0100110 | & | Ampersand |
| 39 | 27 | 047 | 0100111 | ' | Apostrophe |
| 40 | 28 | 050 | 0101000 | ( | Left parenthesis |
| 41 | 29 | 051 | 0101001 | ) | Right parenthesis |
| 42 | 2A | 052 | 0101010 | * | Asterisk |
| 43 | 2B | 053 | 0101011 | + | Plus sign |
| 44 | 2C | 054 | 0101100 | , | Comma |
| 45 | 2D | 055 | 0101101 | - | Hyphen-minus |
| 46 | 2E | 056 | 0101110 | . | Full stop |
| 47 | 2F | 057 | 0101111 | / | Solidus |
| 48 | 30 | 060 | 0110000 | 0 | Digit zero |
| 49 | 31 | 061 | 0110001 | 1 | Digit one |
| 50 | 32 | 062 | 0110010 | 2 | Digit two |
| 51 | 33 | 063 | 0110011 | 3 | Digit three |
| 52 | 34 | 064 | 0110100 | 4 | Digit four |
| 53 | 35 | 065 | 0110101 | 5 | Digit five |
| 54 | 36 | 066 | 0110110 | 6 | Digit six |
| 55 | 37 | 067 | 0110111 | 7 | Digit seven |
| 56 | 38 | 070 | 0111000 | 8 | Digit eight |
| 57 | 39 | 071 | 0111001 | 9 | Digit nine |
| 58 | 3A | 072 | 0111010 | : | Colon |
| 59 | 3B | 073 | 0111011 | ; | Semicolon |
| 60 | 3C | 074 | 0111100 | < | Less-than sign |
| 61 | 3D | 075 | 0111101 | = | Equals sign |
| 62 | 3E | 076 | 0111110 | > | Greater-than sign |
| 63 | 3F | 077 | 0111111 | ? | Question mark |
| 64 | 40 | 100 | 1000000 | @ | Commercial at |
| 65 | 41 | 101 | 1000001 | A | Capital A |
| 66 | 42 | 102 | 1000010 | B | Capital B |
| 67 | 43 | 103 | 1000011 | C | Capital C |
| 68 | 44 | 104 | 1000100 | D | Capital D |
| 69 | 45 | 105 | 1000101 | E | Capital E |
| 70 | 46 | 106 | 1000110 | F | Capital F |
| 71 | 47 | 107 | 1000111 | G | Capital G |
| 72 | 48 | 110 | 1001000 | H | Capital H |
| 73 | 49 | 111 | 1001001 | I | Capital I |
| 74 | 4A | 112 | 1001010 | J | Capital J |
| 75 | 4B | 113 | 1001011 | K | Capital K |
| 76 | 4C | 114 | 1001100 | L | Capital L |
| 77 | 4D | 115 | 1001101 | M | Capital M |
| 78 | 4E | 116 | 1001110 | N | Capital N |
| 79 | 4F | 117 | 1001111 | O | Capital O |
| 80 | 50 | 120 | 1010000 | P | Capital P |
| 81 | 51 | 121 | 1010001 | Q | Capital Q |
| 82 | 52 | 122 | 1010010 | R | Capital R |
| 83 | 53 | 123 | 1010011 | S | Capital S |
| 84 | 54 | 124 | 1010100 | T | Capital T |
| 85 | 55 | 125 | 1010101 | U | Capital U |
| 86 | 56 | 126 | 1010110 | V | Capital V |
| 87 | 57 | 127 | 1010111 | W | Capital W |
| 88 | 58 | 130 | 1011000 | X | Capital X |
| 89 | 59 | 131 | 1011001 | Y | Capital Y |
| 90 | 5A | 132 | 1011010 | Z | Capital Z |
| 91 | 5B | 133 | 1011011 | [ | Left square bracket |
| 92 | 5C | 134 | 1011100 | \ | Reverse solidus |
| 93 | 5D | 135 | 1011101 | ] | Right square bracket |
| 94 | 5E | 136 | 1011110 | ^ | Circumflex accent |
| 95 | 5F | 137 | 1011111 | _ | Low line |
| 96 | 60 | 140 | 1100000 | ` | Grave accent |
| 97 | 61 | 141 | 1100001 | a | Small a |
| 98 | 62 | 142 | 1100010 | b | Small b |
| 99 | 63 | 143 | 1100011 | c | Small c |
| 100 | 64 | 144 | 1100100 | d | Small d |
| 101 | 65 | 145 | 1100101 | e | Small e |
| 102 | 66 | 146 | 1100110 | f | Small f |
| 103 | 67 | 147 | 1100111 | g | Small g |
| 104 | 68 | 150 | 1101000 | h | Small h |
| 105 | 69 | 151 | 1101001 | i | Small i |
| 106 | 6A | 152 | 1101010 | j | Small j |
| 107 | 6B | 153 | 1101011 | k | Small k |
| 108 | 6C | 154 | 1101100 | l | Small l |
| 109 | 6D | 155 | 1101101 | m | Small m |
| 110 | 6E | 156 | 1101110 | n | Small n |
| 111 | 6F | 157 | 1101111 | o | Small o |
| 112 | 70 | 160 | 1110000 | p | Small p |
| 113 | 71 | 161 | 1110001 | q | Small q |
| 114 | 72 | 162 | 1110010 | r | Small r |
| 115 | 73 | 163 | 1110011 | s | Small s |
| 116 | 74 | 164 | 1110100 | t | Small t |
| 117 | 75 | 165 | 1110101 | u | Small u |
| 118 | 76 | 166 | 1110110 | v | Small v |
| 119 | 77 | 167 | 1110111 | w | Small w |
| 120 | 78 | 170 | 1111000 | x | Small x |
| 121 | 79 | 171 | 1111001 | y | Small y |
| 122 | 7A | 172 | 1111010 | z | Small z |
| 123 | 7B | 173 | 1111011 | { | Left curly bracket |
| 124 | 7C | 174 | 1111100 | | | Vertical line |
| 125 | 7D | 175 | 1111101 | } | Right curly bracket |
| 126 | 7E | 176 | 1111110 | ~ | Tilde |
| 127 | 7F | 177 | 1111111 | DEL | Delete |
The ASCII tablestringmash.com/ascii-table
Reading the table
Each row is one code. Dec is the number most programming languages print, Hex is how it appears in a hex dump or a URL escape like %41, and Oct is what older Unix tools and C escapes like \101 use. Binary is the seven bits themselves.
The first 32 codes and the last one are control characters. They move a printer or a cursor, or mark the edges of a message, and they print nothing. The names come from the 1968 standard, USAS X3.4-1968, which RFC 20 copied out for the ARPANET in 1969. 32 is the space, and 33 to 126 are the characters you can type.
To look up your own text, type it in the converter above. Base switches between decimal, hex and octal, and swap reads codes back into text.
Why DEL is 127
Most control characters sit at the start of the table, but DEL is alone at the end, and it's there because of paper tape. 127 is 1111111 in binary, all seven bits set. A set bit was a punched hole, and a hole can't be un-punched.
So a mistake was fixed by punching out every hole over it. Whatever character had been there, it was now 127, and the machine reading the tape knew to skip it. RFC 20 describes DEL as used to "erase" or "obliterate" unwanted characters in perforated tape, and adds that in the strict sense it isn't a control character at all.
The document that brought ASCII to the internet
RFC 20, "ASCII format for Network Interchange", is dated 16 October 1969 and signed Vint Cerf, then at UCLA. It proposed standard 7-bit ASCII inside an 8-bit byte whose top bit was always 0, and the table it attached was copied from the 1968 American standard.
It's two pages long, and it shows why a standard was needed. SRI, it notes, used a full stop as its end-of-line character, while UCLA used carriage return, code 13. The line-ending argument between systems is still going.
Related conversions
ASCII to text converts whole messages both ways with the same codes. The binary translator shows the bits for any text, and the Unicode converter covers everything beyond 127, where ASCII stops.
Questions
What is the ASCII code for A?
65 in decimal, 41 in hex, 101 in octal and 1000001 in binary. Lowercase a is 97, exactly 32 higher, and every lowercase letter is 32 above its capital.
How many characters are in ASCII?
128, numbered 0 to 127, because it uses seven bits. 33 are control codes and 95 are printable, counting the space.
What is the difference between ASCII and Unicode?
ASCII covers 128 characters, enough for English. Unicode covers over 150,000, and its first 128 are ASCII, code for code, so every ASCII file is also valid UTF-8.
What are ASCII codes 128 to 255?
Not ASCII. Codes above 127 belong to 8-bit extensions like ISO-8859-1 and Windows-1252, which disagree with each other, so text read with the wrong one comes out garbled.






