Complete ASCII table: decimal, hexadecimal and binary
ASCII assigns 128 values, from 0 to 127, to characters and control codes. Values 32–126 include space and printable characters; 127 is DEL. Search the table locally below.
All 128 codes
128 codes
| Dec | Hex | Bin | Character / name | Type |
|---|---|---|---|---|
| 0 | 00 | 0000000 | NUL | Control |
| 1 | 01 | 0000001 | SOH | Control |
| 2 | 02 | 0000010 | STX | Control |
| 3 | 03 | 0000011 | ETX | Control |
| 4 | 04 | 0000100 | EOT | Control |
| 5 | 05 | 0000101 | ENQ | Control |
| 6 | 06 | 0000110 | ACK | Control |
| 7 | 07 | 0000111 | BEL | Control |
| 8 | 08 | 0001000 | BS | Control |
| 9 | 09 | 0001001 | HT | Control |
| 10 | 0A | 0001010 | LF | Control |
| 11 | 0B | 0001011 | VT | Control |
| 12 | 0C | 0001100 | FF | Control |
| 13 | 0D | 0001101 | CR | Control |
| 14 | 0E | 0001110 | SO | Control |
| 15 | 0F | 0001111 | SI | Control |
| 16 | 10 | 0010000 | DLE | Control |
| 17 | 11 | 0010001 | DC1 | Control |
| 18 | 12 | 0010010 | DC2 | Control |
| 19 | 13 | 0010011 | DC3 | Control |
| 20 | 14 | 0010100 | DC4 | Control |
| 21 | 15 | 0010101 | NAK | Control |
| 22 | 16 | 0010110 | SYN | Control |
| 23 | 17 | 0010111 | ETB | Control |
| 24 | 18 | 0011000 | CAN | Control |
| 25 | 19 | 0011001 | EM | Control |
| 26 | 1A | 0011010 | SUB | Control |
| 27 | 1B | 0011011 | ESC | Control |
| 28 | 1C | 0011100 | FS | Control |
| 29 | 1D | 0011101 | GS | Control |
| 30 | 1E | 0011110 | RS | Control |
| 31 | 1F | 0011111 | US | Control |
| 32 | 20 | 0100000 | SPACE | Space |
| 33 | 21 | 0100001 | ! | Printable |
| 34 | 22 | 0100010 | " | Printable |
| 35 | 23 | 0100011 | # | Printable |
| 36 | 24 | 0100100 | $ | Printable |
| 37 | 25 | 0100101 | % | Printable |
| 38 | 26 | 0100110 | & | Printable |
| 39 | 27 | 0100111 | ' | Printable |
| 40 | 28 | 0101000 | ( | Printable |
| 41 | 29 | 0101001 | ) | Printable |
| 42 | 2A | 0101010 | * | Printable |
| 43 | 2B | 0101011 | + | Printable |
| 44 | 2C | 0101100 | , | Printable |
| 45 | 2D | 0101101 | - | Printable |
| 46 | 2E | 0101110 | . | Printable |
| 47 | 2F | 0101111 | / | Printable |
| 48 | 30 | 0110000 | 0 | Printable |
| 49 | 31 | 0110001 | 1 | Printable |
| 50 | 32 | 0110010 | 2 | Printable |
| 51 | 33 | 0110011 | 3 | Printable |
| 52 | 34 | 0110100 | 4 | Printable |
| 53 | 35 | 0110101 | 5 | Printable |
| 54 | 36 | 0110110 | 6 | Printable |
| 55 | 37 | 0110111 | 7 | Printable |
| 56 | 38 | 0111000 | 8 | Printable |
| 57 | 39 | 0111001 | 9 | Printable |
| 58 | 3A | 0111010 | : | Printable |
| 59 | 3B | 0111011 | ; | Printable |
| 60 | 3C | 0111100 | < | Printable |
| 61 | 3D | 0111101 | = | Printable |
| 62 | 3E | 0111110 | > | Printable |
| 63 | 3F | 0111111 | ? | Printable |
| 64 | 40 | 1000000 | @ | Printable |
| 65 | 41 | 1000001 | A | Printable |
| 66 | 42 | 1000010 | B | Printable |
| 67 | 43 | 1000011 | C | Printable |
| 68 | 44 | 1000100 | D | Printable |
| 69 | 45 | 1000101 | E | Printable |
| 70 | 46 | 1000110 | F | Printable |
| 71 | 47 | 1000111 | G | Printable |
| 72 | 48 | 1001000 | H | Printable |
| 73 | 49 | 1001001 | I | Printable |
| 74 | 4A | 1001010 | J | Printable |
| 75 | 4B | 1001011 | K | Printable |
| 76 | 4C | 1001100 | L | Printable |
| 77 | 4D | 1001101 | M | Printable |
| 78 | 4E | 1001110 | N | Printable |
| 79 | 4F | 1001111 | O | Printable |
| 80 | 50 | 1010000 | P | Printable |
| 81 | 51 | 1010001 | Q | Printable |
| 82 | 52 | 1010010 | R | Printable |
| 83 | 53 | 1010011 | S | Printable |
| 84 | 54 | 1010100 | T | Printable |
| 85 | 55 | 1010101 | U | Printable |
| 86 | 56 | 1010110 | V | Printable |
| 87 | 57 | 1010111 | W | Printable |
| 88 | 58 | 1011000 | X | Printable |
| 89 | 59 | 1011001 | Y | Printable |
| 90 | 5A | 1011010 | Z | Printable |
| 91 | 5B | 1011011 | [ | Printable |
| 92 | 5C | 1011100 | \ | Printable |
| 93 | 5D | 1011101 | ] | Printable |
| 94 | 5E | 1011110 | ^ | Printable |
| 95 | 5F | 1011111 | _ | Printable |
| 96 | 60 | 1100000 | ` | Printable |
| 97 | 61 | 1100001 | a | Printable |
| 98 | 62 | 1100010 | b | Printable |
| 99 | 63 | 1100011 | c | Printable |
| 100 | 64 | 1100100 | d | Printable |
| 101 | 65 | 1100101 | e | Printable |
| 102 | 66 | 1100110 | f | Printable |
| 103 | 67 | 1100111 | g | Printable |
| 104 | 68 | 1101000 | h | Printable |
| 105 | 69 | 1101001 | i | Printable |
| 106 | 6A | 1101010 | j | Printable |
| 107 | 6B | 1101011 | k | Printable |
| 108 | 6C | 1101100 | l | Printable |
| 109 | 6D | 1101101 | m | Printable |
| 110 | 6E | 1101110 | n | Printable |
| 111 | 6F | 1101111 | o | Printable |
| 112 | 70 | 1110000 | p | Printable |
| 113 | 71 | 1110001 | q | Printable |
| 114 | 72 | 1110010 | r | Printable |
| 115 | 73 | 1110011 | s | Printable |
| 116 | 74 | 1110100 | t | Printable |
| 117 | 75 | 1110101 | u | Printable |
| 118 | 76 | 1110110 | v | Printable |
| 119 | 77 | 1110111 | w | Printable |
| 120 | 78 | 1111000 | x | Printable |
| 121 | 79 | 1111001 | y | Printable |
| 122 | 7A | 1111010 | z | Printable |
| 123 | 7B | 1111011 | { | Printable |
| 124 | 7C | 1111100 | | | Printable |
| 125 | 7D | 1111101 | } | Printable |
| 126 | 7E | 1111110 | ~ | Printable |
| 127 | 7F | 1111111 | DEL | Control |
Read a table row
Decimal, hexadecimal and binary are three ways to write the same number. The A row gives 65, 41 and 1000001; these are not three different characters. Control names appear instead of invisible controls: copying the letters LF therefore does not insert a line break. The 7-bit repertoire and assignments are documented in RFC 20.
Two conversions to check
| Text | Dec | Hex |
|---|---|---|
| A | 65 | 41 |
| @ | 64 | 40 |
| <3 | 60 51 | 3C 33 |
Example 1: @ has decimal value 64, which is 4 × 16 + 0 in hexadecimal. Example 2: <3 contains two characters; it is not a heart character. ♥ is outside this table. To find a literal digit, search U+0035 for “5”: entering 5 alone searches decimal value 5.
To check the basics before continuing with conversions, the computing quiz on Connaissances.com includes explained questions about bits and bytes. Then return to the table: an ASCII code identifies a character, whereas a byte describes a quantity of data. Resource in French.
Spaces and line endings
SPACE is 32; HT, 9, is a tab. LF is 10 and CR is 13. For a drawing, use spaces instead of tabs if you cannot control the destination’s tab stops. A file may use LF or CRLF for line endings: do not automatically count each byte as an extra line.
Why not 256 characters?
“Extended ASCII” is not one universal table. Accented letters require an identified encoding. In UTF-8, ASCII characters keep their one-byte values; other characters use multiple bytes, as specified in RFC 3629, section 3. This is neither a Windows Alt-code list nor a complete Unicode table.