ASCII table
All 128 ASCII characters with their decimal, hexadecimal, binary and octal codes. Codes 0–31 and 127 are invisible control characters; 32–126 are the printable letters, digits and symbols you type every day.
Most-searched codesA = 65 · Z = 90 · a = 97 · z = 122 · 0 = 48 · 9 = 57 · space = 32 · @ = 64 · new line (LF) = 10 · carriage return (CR) = 13
| Dec | Hex | Binary | Octal | Char | Description |
|---|---|---|---|---|---|
| 0 | 00 | 00000000 | 000 | NUL | Null |
| 1 | 01 | 00000001 | 001 | SOH | Start of heading |
| 2 | 02 | 00000010 | 002 | STX | Start of text |
| 3 | 03 | 00000011 | 003 | ETX | End of text |
| 4 | 04 | 00000100 | 004 | EOT | End of transmission |
| 5 | 05 | 00000101 | 005 | ENQ | Enquiry |
| 6 | 06 | 00000110 | 006 | ACK | Acknowledge |
| 7 | 07 | 00000111 | 007 | BEL | Bell |
| 8 | 08 | 00001000 | 010 | BS | Backspace |
| 9 | 09 | 00001001 | 011 | HT | Horizontal tab |
| 10 | 0A | 00001010 | 012 | LF | Line feed (new line) |
| 11 | 0B | 00001011 | 013 | VT | Vertical tab |
| 12 | 0C | 00001100 | 014 | FF | Form feed |
| 13 | 0D | 00001101 | 015 | CR | Carriage return |
| 14 | 0E | 00001110 | 016 | SO | Shift out |
| 15 | 0F | 00001111 | 017 | SI | Shift in |
| 16 | 10 | 00010000 | 020 | DLE | Data link escape |
| 17 | 11 | 00010001 | 021 | DC1 | Device control 1 (XON) |
| 18 | 12 | 00010010 | 022 | DC2 | Device control 2 |
| 19 | 13 | 00010011 | 023 | DC3 | Device control 3 (XOFF) |
| 20 | 14 | 00010100 | 024 | DC4 | Device control 4 |
| 21 | 15 | 00010101 | 025 | NAK | Negative acknowledge |
| 22 | 16 | 00010110 | 026 | SYN | Synchronous idle |
| 23 | 17 | 00010111 | 027 | ETB | End of transmission block |
| 24 | 18 | 00011000 | 030 | CAN | Cancel |
| 25 | 19 | 00011001 | 031 | EM | End of medium |
| 26 | 1A | 00011010 | 032 | SUB | Substitute |
| 27 | 1B | 00011011 | 033 | ESC | Escape |
| 28 | 1C | 00011100 | 034 | FS | File separator |
| 29 | 1D | 00011101 | 035 | GS | Group separator |
| 30 | 1E | 00011110 | 036 | RS | Record separator |
| 31 | 1F | 00011111 | 037 | US | Unit separator |
| 32 | 20 | 00100000 | 040 | Space | Space |
| 33 | 21 | 00100001 | 041 | ! | Punctuation / symbol |
| 34 | 22 | 00100010 | 042 | " | Punctuation / symbol |
| 35 | 23 | 00100011 | 043 | # | Punctuation / symbol |
| 36 | 24 | 00100100 | 044 | $ | Punctuation / symbol |
| 37 | 25 | 00100101 | 045 | % | Punctuation / symbol |
| 38 | 26 | 00100110 | 046 | & | Punctuation / symbol |
| 39 | 27 | 00100111 | 047 | ' | Punctuation / symbol |
| 40 | 28 | 00101000 | 050 | ( | Punctuation / symbol |
| 41 | 29 | 00101001 | 051 | ) | Punctuation / symbol |
| 42 | 2A | 00101010 | 052 | * | Punctuation / symbol |
| 43 | 2B | 00101011 | 053 | + | Punctuation / symbol |
| 44 | 2C | 00101100 | 054 | , | Punctuation / symbol |
| 45 | 2D | 00101101 | 055 | - | Punctuation / symbol |
| 46 | 2E | 00101110 | 056 | . | Punctuation / symbol |
| 47 | 2F | 00101111 | 057 | / | Punctuation / symbol |
| 48 | 30 | 00110000 | 060 | 0 | Digit |
| 49 | 31 | 00110001 | 061 | 1 | Digit |
| 50 | 32 | 00110010 | 062 | 2 | Digit |
| 51 | 33 | 00110011 | 063 | 3 | Digit |
| 52 | 34 | 00110100 | 064 | 4 | Digit |
| 53 | 35 | 00110101 | 065 | 5 | Digit |
| 54 | 36 | 00110110 | 066 | 6 | Digit |
| 55 | 37 | 00110111 | 067 | 7 | Digit |
| 56 | 38 | 00111000 | 070 | 8 | Digit |
| 57 | 39 | 00111001 | 071 | 9 | Digit |
| 58 | 3A | 00111010 | 072 | : | Punctuation / symbol |
| 59 | 3B | 00111011 | 073 | ; | Punctuation / symbol |
| 60 | 3C | 00111100 | 074 | < | Punctuation / symbol |
| 61 | 3D | 00111101 | 075 | = | Punctuation / symbol |
| 62 | 3E | 00111110 | 076 | > | Punctuation / symbol |
| 63 | 3F | 00111111 | 077 | ? | Punctuation / symbol |
| 64 | 40 | 01000000 | 100 | @ | Punctuation / symbol |
| 65 | 41 | 01000001 | 101 | A | Uppercase letter |
| 66 | 42 | 01000010 | 102 | B | Uppercase letter |
| 67 | 43 | 01000011 | 103 | C | Uppercase letter |
| 68 | 44 | 01000100 | 104 | D | Uppercase letter |
| 69 | 45 | 01000101 | 105 | E | Uppercase letter |
| 70 | 46 | 01000110 | 106 | F | Uppercase letter |
| 71 | 47 | 01000111 | 107 | G | Uppercase letter |
| 72 | 48 | 01001000 | 110 | H | Uppercase letter |
| 73 | 49 | 01001001 | 111 | I | Uppercase letter |
| 74 | 4A | 01001010 | 112 | J | Uppercase letter |
| 75 | 4B | 01001011 | 113 | K | Uppercase letter |
| 76 | 4C | 01001100 | 114 | L | Uppercase letter |
| 77 | 4D | 01001101 | 115 | M | Uppercase letter |
| 78 | 4E | 01001110 | 116 | N | Uppercase letter |
| 79 | 4F | 01001111 | 117 | O | Uppercase letter |
| 80 | 50 | 01010000 | 120 | P | Uppercase letter |
| 81 | 51 | 01010001 | 121 | Q | Uppercase letter |
| 82 | 52 | 01010010 | 122 | R | Uppercase letter |
| 83 | 53 | 01010011 | 123 | S | Uppercase letter |
| 84 | 54 | 01010100 | 124 | T | Uppercase letter |
| 85 | 55 | 01010101 | 125 | U | Uppercase letter |
| 86 | 56 | 01010110 | 126 | V | Uppercase letter |
| 87 | 57 | 01010111 | 127 | W | Uppercase letter |
| 88 | 58 | 01011000 | 130 | X | Uppercase letter |
| 89 | 59 | 01011001 | 131 | Y | Uppercase letter |
| 90 | 5A | 01011010 | 132 | Z | Uppercase letter |
| 91 | 5B | 01011011 | 133 | [ | Punctuation / symbol |
| 92 | 5C | 01011100 | 134 | \ | Punctuation / symbol |
| 93 | 5D | 01011101 | 135 | ] | Punctuation / symbol |
| 94 | 5E | 01011110 | 136 | ^ | Punctuation / symbol |
| 95 | 5F | 01011111 | 137 | _ | Punctuation / symbol |
| 96 | 60 | 01100000 | 140 | ` | Punctuation / symbol |
| 97 | 61 | 01100001 | 141 | a | Lowercase letter |
| 98 | 62 | 01100010 | 142 | b | Lowercase letter |
| 99 | 63 | 01100011 | 143 | c | Lowercase letter |
| 100 | 64 | 01100100 | 144 | d | Lowercase letter |
| 101 | 65 | 01100101 | 145 | e | Lowercase letter |
| 102 | 66 | 01100110 | 146 | f | Lowercase letter |
| 103 | 67 | 01100111 | 147 | g | Lowercase letter |
| 104 | 68 | 01101000 | 150 | h | Lowercase letter |
| 105 | 69 | 01101001 | 151 | i | Lowercase letter |
| 106 | 6A | 01101010 | 152 | j | Lowercase letter |
| 107 | 6B | 01101011 | 153 | k | Lowercase letter |
| 108 | 6C | 01101100 | 154 | l | Lowercase letter |
| 109 | 6D | 01101101 | 155 | m | Lowercase letter |
| 110 | 6E | 01101110 | 156 | n | Lowercase letter |
| 111 | 6F | 01101111 | 157 | o | Lowercase letter |
| 112 | 70 | 01110000 | 160 | p | Lowercase letter |
| 113 | 71 | 01110001 | 161 | q | Lowercase letter |
| 114 | 72 | 01110010 | 162 | r | Lowercase letter |
| 115 | 73 | 01110011 | 163 | s | Lowercase letter |
| 116 | 74 | 01110100 | 164 | t | Lowercase letter |
| 117 | 75 | 01110101 | 165 | u | Lowercase letter |
| 118 | 76 | 01110110 | 166 | v | Lowercase letter |
| 119 | 77 | 01110111 | 167 | w | Lowercase letter |
| 120 | 78 | 01111000 | 170 | x | Lowercase letter |
| 121 | 79 | 01111001 | 171 | y | Lowercase letter |
| 122 | 7A | 01111010 | 172 | z | Lowercase letter |
| 123 | 7B | 01111011 | 173 | { | Punctuation / symbol |
| 124 | 7C | 01111100 | 174 | | | Punctuation / symbol |
| 125 | 7D | 01111101 | 175 | } | Punctuation / symbol |
| 126 | 7E | 01111110 | 176 | ~ | Punctuation / symbol |
| 127 | 7F | 01111111 | 177 | DEL | Delete |
How the ASCII table is organised
- 0–31: control characters. Originally commands for teleprinters. Only a few still matter: tab (9), line feed (10) and carriage return (13). Windows ends lines with CR+LF; macOS and Linux use LF.
- 32–47: space and punctuation.
- 48–57: digits 0–9. In binary they all start
0011, so the last four bits are the digit’s value. - 65–90 and 97–122: letters. Upper and lower case differ by 32 — a single bit.
- 127: DEL. All seven bits set (
1111111); on paper tape, punching every hole “deleted” a character.
ASCII vs Unicode
ASCII only covers English. Unicode extends it to over 150,000 characters across every script, and UTF-8 stores them so that the first 128 are byte-for-byte identical to ASCII. Read more in ASCII vs Unicode vs UTF-8, or convert codes with the hex to ASCII converter.
Frequently asked questions
What is ASCII?
ASCII (American Standard Code for Information Interchange) is a 7-bit character code from 1963 that assigns the numbers 0–127 to English letters, digits, punctuation and 33 control characters. It is the first 128 characters of Unicode.
What is the ASCII code of A to Z?
Uppercase A–Z are 65–90 (hex 41–5A). Lowercase a–z are 97–122 (hex 61–7A). The difference between a letter’s upper and lower case is always 32.
What is the ASCII value of 0?
The character “0” has ASCII code 48 (hex 30, binary 00110000). Digits 0–9 run from 48 to 57.
What is the ASCII value of small a?
97, which is 61 in hex and 01100001 in binary.
Is “extended ASCII” standard?
No. Codes 128–255 were used differently by different code pages (ISO-8859-1, Windows-1252 and others). Today, UTF-8 replaces them for anything beyond basic ASCII.
How do I type ASCII characters on Windows?
Hold Alt and type the decimal code on the numeric keypad, e.g. Alt+64 gives @. On a Mac, use the Character Viewer (Control+Command+Space).