ASCII table
All 128 ASCII codes in decimal, hex, octal and binary, so it works as an ASCII table in binary and a hex to ASCII table. Search for a character, a code or a name.
ASCII table with binary and hex: codes 0 to 127
| Decimal | Hex | Octal | Binary | Character | Name |
|---|---|---|---|---|---|
| 0 | 00 | 000 | 00000000 | NUL | Null |
| 1 | 01 | 001 | 00000001 | SOH | Start of Heading |
| 2 | 02 | 002 | 00000010 | STX | Start of Text |
| 3 | 03 | 003 | 00000011 | ETX | End of Text |
| 4 | 04 | 004 | 00000100 | EOT | End of Transmission |
| 5 | 05 | 005 | 00000101 | ENQ | Enquiry |
| 6 | 06 | 006 | 00000110 | ACK | Acknowledge |
| 7 | 07 | 007 | 00000111 | BEL | Bell |
| 8 | 08 | 010 | 00001000 | BS | Backspace |
| 9 | 09 | 011 | 00001001 | HT | Horizontal Tabulation |
| 10 | 0A | 012 | 00001010 | LF | Line Feed |
| 11 | 0B | 013 | 00001011 | VT | Vertical Tabulation |
| 12 | 0C | 014 | 00001100 | FF | Form Feed |
| 13 | 0D | 015 | 00001101 | CR | Carriage Return |
| 14 | 0E | 016 | 00001110 | SO | Shift Out |
| 15 | 0F | 017 | 00001111 | SI | Shift In |
| 16 | 10 | 020 | 00010000 | DLE | Data Link Escape |
| 17 | 11 | 021 | 00010001 | DC1 | Device Control 1 |
| 18 | 12 | 022 | 00010010 | DC2 | Device Control 2 |
| 19 | 13 | 023 | 00010011 | DC3 | Device Control 3 |
| 20 | 14 | 024 | 00010100 | DC4 | Device Control 4 (Stop) |
| 21 | 15 | 025 | 00010101 | NAK | Negative Acknowledge |
| 22 | 16 | 026 | 00010110 | SYN | Synchronous Idle |
| 23 | 17 | 027 | 00010111 | ETB | End of Transmission Block |
| 24 | 18 | 030 | 00011000 | CAN | Cancel |
| 25 | 19 | 031 | 00011001 | EM | End of Medium |
| 26 | 1A | 032 | 00011010 | SUB | Substitute |
| 27 | 1B | 033 | 00011011 | ESC | Escape |
| 28 | 1C | 034 | 00011100 | FS | File Separator |
| 29 | 1D | 035 | 00011101 | GS | Group Separator |
| 30 | 1E | 036 | 00011110 | RS | Record Separator |
| 31 | 1F | 037 | 00011111 | US | Unit Separator |
| 32 | 20 | 040 | 00100000 | SP | Space |
| 33 | 21 | 041 | 00100001 | ! | |
| 34 | 22 | 042 | 00100010 | " | |
| 35 | 23 | 043 | 00100011 | # | |
| 36 | 24 | 044 | 00100100 | $ | |
| 37 | 25 | 045 | 00100101 | % | |
| 38 | 26 | 046 | 00100110 | & | |
| 39 | 27 | 047 | 00100111 | ' | |
| 40 | 28 | 050 | 00101000 | ( | |
| 41 | 29 | 051 | 00101001 | ) | |
| 42 | 2A | 052 | 00101010 | * | |
| 43 | 2B | 053 | 00101011 | + | |
| 44 | 2C | 054 | 00101100 | , | |
| 45 | 2D | 055 | 00101101 | - | |
| 46 | 2E | 056 | 00101110 | . | |
| 47 | 2F | 057 | 00101111 | / | |
| 48 | 30 | 060 | 00110000 | 0 | Digit 0 |
| 49 | 31 | 061 | 00110001 | 1 | Digit 1 |
| 50 | 32 | 062 | 00110010 | 2 | Digit 2 |
| 51 | 33 | 063 | 00110011 | 3 | Digit 3 |
| 52 | 34 | 064 | 00110100 | 4 | Digit 4 |
| 53 | 35 | 065 | 00110101 | 5 | Digit 5 |
| 54 | 36 | 066 | 00110110 | 6 | Digit 6 |
| 55 | 37 | 067 | 00110111 | 7 | Digit 7 |
| 56 | 38 | 070 | 00111000 | 8 | Digit 8 |
| 57 | 39 | 071 | 00111001 | 9 | Digit 9 |
| 58 | 3A | 072 | 00111010 | : | |
| 59 | 3B | 073 | 00111011 | ; | |
| 60 | 3C | 074 | 00111100 | < | |
| 61 | 3D | 075 | 00111101 | = | |
| 62 | 3E | 076 | 00111110 | > | |
| 63 | 3F | 077 | 00111111 | ? | |
| 64 | 40 | 100 | 01000000 | @ | |
| 65 | 41 | 101 | 01000001 | A | Capital A |
| 66 | 42 | 102 | 01000010 | B | Capital B |
| 67 | 43 | 103 | 01000011 | C | Capital C |
| 68 | 44 | 104 | 01000100 | D | Capital D |
| 69 | 45 | 105 | 01000101 | E | Capital E |
| 70 | 46 | 106 | 01000110 | F | Capital F |
| 71 | 47 | 107 | 01000111 | G | Capital G |
| 72 | 48 | 110 | 01001000 | H | Capital H |
| 73 | 49 | 111 | 01001001 | I | Capital I |
| 74 | 4A | 112 | 01001010 | J | Capital J |
| 75 | 4B | 113 | 01001011 | K | Capital K |
| 76 | 4C | 114 | 01001100 | L | Capital L |
| 77 | 4D | 115 | 01001101 | M | Capital M |
| 78 | 4E | 116 | 01001110 | N | Capital N |
| 79 | 4F | 117 | 01001111 | O | Capital O |
| 80 | 50 | 120 | 01010000 | P | Capital P |
| 81 | 51 | 121 | 01010001 | Q | Capital Q |
| 82 | 52 | 122 | 01010010 | R | Capital R |
| 83 | 53 | 123 | 01010011 | S | Capital S |
| 84 | 54 | 124 | 01010100 | T | Capital T |
| 85 | 55 | 125 | 01010101 | U | Capital U |
| 86 | 56 | 126 | 01010110 | V | Capital V |
| 87 | 57 | 127 | 01010111 | W | Capital W |
| 88 | 58 | 130 | 01011000 | X | Capital X |
| 89 | 59 | 131 | 01011001 | Y | Capital Y |
| 90 | 5A | 132 | 01011010 | Z | Capital Z |
| 91 | 5B | 133 | 01011011 | [ | |
| 92 | 5C | 134 | 01011100 | \ | |
| 93 | 5D | 135 | 01011101 | ] | |
| 94 | 5E | 136 | 01011110 | ^ | |
| 95 | 5F | 137 | 01011111 | _ | |
| 96 | 60 | 140 | 01100000 | ` | |
| 97 | 61 | 141 | 01100001 | a | Small a |
| 98 | 62 | 142 | 01100010 | b | Small b |
| 99 | 63 | 143 | 01100011 | c | Small c |
| 100 | 64 | 144 | 01100100 | d | Small d |
| 101 | 65 | 145 | 01100101 | e | Small e |
| 102 | 66 | 146 | 01100110 | f | Small f |
| 103 | 67 | 147 | 01100111 | g | Small g |
| 104 | 68 | 150 | 01101000 | h | Small h |
| 105 | 69 | 151 | 01101001 | i | Small i |
| 106 | 6A | 152 | 01101010 | j | Small j |
| 107 | 6B | 153 | 01101011 | k | Small k |
| 108 | 6C | 154 | 01101100 | l | Small l |
| 109 | 6D | 155 | 01101101 | m | Small m |
| 110 | 6E | 156 | 01101110 | n | Small n |
| 111 | 6F | 157 | 01101111 | o | Small o |
| 112 | 70 | 160 | 01110000 | p | Small p |
| 113 | 71 | 161 | 01110001 | q | Small q |
| 114 | 72 | 162 | 01110010 | r | Small r |
| 115 | 73 | 163 | 01110011 | s | Small s |
| 116 | 74 | 164 | 01110100 | t | Small t |
| 117 | 75 | 165 | 01110101 | u | Small u |
| 118 | 76 | 166 | 01110110 | v | Small v |
| 119 | 77 | 167 | 01110111 | w | Small w |
| 120 | 78 | 170 | 01111000 | x | Small x |
| 121 | 79 | 171 | 01111001 | y | Small y |
| 122 | 7A | 172 | 01111010 | z | Small z |
| 123 | 7B | 173 | 01111011 | { | |
| 124 | 7C | 174 | 01111100 | | | |
| 125 | 7D | 175 | 01111101 | } | |
| 126 | 7E | 176 | 01111110 | ~ | |
| 127 | 7F | 177 | 01111111 | DEL | Delete |
What is ASCII?
ASCII is a 7-bit character code: it gives each of 128 characters a number from 0 to 127.
RFC 20 (1969) adopted it for network interchange, copying the table from the USA Standard Code for Information Interchange, USAS X3.4-1968, and storing each code in an 8-bit byte whose top bit is 0. The first 32 codes and code 127 are control codes; the rest are the space, digits, English letters and punctuation.
ASCII is the base of almost all text encodings in use today. UTF-8 keeps every ASCII character as the same single byte, which is why an ASCII file is also a valid UTF-8 file. The UTF-8 guide explains how the other characters are added.
Reading the table
Codes 0 to 31 and 127 are control characters: instructions for printers and terminals rather than visible symbols. Line feed (10) and carriage return (13) still mark the ends of lines in text files today. Codes 32 to 126 are the printable characters, starting with the space.
Capital and small letters differ by exactly 32, a single bit: A is 01000001 and a is 01100001. Digits 0 to 9 are codes 48 to 57, so the last four bits of a digit’s code are its value.
Sources and method
- RFC 20 (STD 80), ASCII format for network interchange, section 4: the 128 ASCII codes and control-character names. Checked 2026-11-25.
- RFC 20 notes that in the strict sense DEL is not a control character. UTF-8 uses the same values for codes 0 to 127.
Questions
Is ASCII the same as UTF-8?
For codes 0 to 127, yes: UTF-8 was designed so that every ASCII character keeps its single-byte value. UTF-8 then adds multi-byte sequences for every other character.
Why is ASCII 7 bits and not 8?
The standard defines 128 characters, which fit in 7 bits. Stored in an 8-bit byte, the top bit is 0. RFC 20 describes exactly this: 7-bit ASCII in an 8-bit byte whose high-order bit is always 0.
What is extended ASCII?
Codes 128 to 255 aren’t part of ASCII. Different systems used them for different characters, such as Windows-1252 or ISO 8859-1, which is why the same byte can show up as different symbols.