Complete ASCII Table and Text ↔ Code Converter
Calculator
ASCII table and text ↔ code converter
The 128 ASCII codes, from 0 to 127, in decimal, hexadecimal, octal and binary, with the abbreviations of the control characters. Convert a text into codes or a series of codes into text.
Converter
Complete ASCII table (0-127)
All 128 ASCII codes, from 0 to 127.
| Dec | Hex | Oct | Binary | Char. | Abbr. | Description |
|---|---|---|---|---|---|---|
| 0 | 00 | 000 | 00000000 | — | NUL | Null character, with all bits set to zero: used as padding Null |
| 1 | 01 | 001 | 00000001 | — | SOH | Start of the heading of a message Start of Heading |
| 2 | 02 | 002 | 00000010 | — | STX | Start of the text Start of Text |
| 3 | 03 | 003 | 00000011 | — | ETX | End of the text End of Text |
| 4 | 04 | 004 | 00000100 | — | EOT | End of the transmission End of Transmission |
| 5 | 05 | 005 | 00000101 | — | ENQ | Request for a response from the remote station Enquiry |
| 6 | 06 | 006 | 00000110 | — | ACK | Positive confirmation from the receiver Acknowledge |
| 7 | 07 | 007 | 00000111 | — | BEL | Bell: draws attention with a signal Bell |
| 8 | 08 | 010 | 00001000 | — | BS | Moves back one position Backspace |
| 9 | 09 | 011 | 00001001 | — | HT | Horizontal tab (Tab key) Horizontal Tabulation |
| 10 | 0A | 012 | 00001010 | — | LF | Advances to the next line, also used as “new line” Line Feed |
| 11 | 0B | 013 | 00001011 | — | VT | Vertical tab Vertical Tabulation |
| 12 | 0C | 014 | 00001100 | — | FF | Advances to the next page Form Feed |
| 13 | 0D | 015 | 00001101 | — | CR | Carriage return: goes back to the start of the line Carriage Return |
| 14 | 0E | 016 | 00001110 | — | SO | Switches to a character set other than the standard one Shift Out |
| 15 | 0F | 017 | 00001111 | — | SI | Returns to the standard character set Shift In |
| 16 | 10 | 020 | 00010000 | — | DLE | Changes the meaning of the following characters (network controls) Data Link Escape |
| 17 | 11 | 021 | 00010001 | — | DC1 | Device control 1 Device Control 1 |
| 18 | 12 | 022 | 00010010 | — | DC2 | Device control 2 Device Control 2 |
| 19 | 13 | 023 | 00010011 | — | DC3 | Device control 3 Device Control 3 |
| 20 | 14 | 024 | 00010100 | — | DC4 | Device control 4, the one designated for stopping Device Control 4 |
| 21 | 15 | 025 | 00010101 | — | NAK | Negative response from the receiver Negative Acknowledge |
| 22 | 16 | 026 | 00010110 | — | SYN | Synchronous idle: keeps the line synchronized Synchronous Idle |
| 23 | 17 | 027 | 00010111 | — | ETB | End of a transmitted block of data End of Transmission Block |
| 24 | 18 | 030 | 00011000 | — | CAN | Cancel: the data sent are wrong or to be ignored Cancel |
| 25 | 19 | 031 | 00011001 | — | EM | End of the medium or of its usable part End of Medium |
| 26 | 1A | 032 | 00011010 | — | SUB | Takes the place of an invalid or wrong character Substitute |
| 27 | 1B | 033 | 00011011 | — | ESC | Escape: changes the meaning of the following characters Escape |
| 28 | 1C | 034 | 00011100 | — | FS | File separator File Separator |
| 29 | 1D | 035 | 00011101 | — | GS | Group separator Group Separator |
| 30 | 1E | 036 | 00011110 | — | RS | Record separator Record Separator |
| 31 | 1F | 037 | 00011111 | — | US | Unit separator Unit Separator |
| 32 | 20 | 040 | 00100000 | space | SP | Space |
| 33 | 21 | 041 | 00100001 | ! | Exclamation mark | |
| 34 | 22 | 042 | 00100010 | " | Double quotation mark (straight) | |
| 35 | 23 | 043 | 00100011 | # | Hash sign | |
| 36 | 24 | 044 | 00100100 | $ | Dollar sign | |
| 37 | 25 | 045 | 00100101 | % | Percent sign | |
| 38 | 26 | 046 | 00100110 | & | Ampersand | |
| 39 | 27 | 047 | 00100111 | ' | Apostrophe (straight single quotation mark) | |
| 40 | 28 | 050 | 00101000 | ( | Opening parenthesis | |
| 41 | 29 | 051 | 00101001 | ) | Closing parenthesis | |
| 42 | 2A | 052 | 00101010 | * | Asterisk | |
| 43 | 2B | 053 | 00101011 | + | Plus sign | |
| 44 | 2C | 054 | 00101100 | , | Comma | |
| 45 | 2D | 055 | 00101101 | - | Hyphen, minus sign | |
| 46 | 2E | 056 | 00101110 | . | Period (full stop) | |
| 47 | 2F | 057 | 00101111 | / | Slash | |
| 48 | 30 | 060 | 00110000 | 0 | Digit zero | |
| 49 | 31 | 061 | 00110001 | 1 | Digit one | |
| 50 | 32 | 062 | 00110010 | 2 | Digit two | |
| 51 | 33 | 063 | 00110011 | 3 | Digit three | |
| 52 | 34 | 064 | 00110100 | 4 | Digit four | |
| 53 | 35 | 065 | 00110101 | 5 | Digit five | |
| 54 | 36 | 066 | 00110110 | 6 | Digit six | |
| 55 | 37 | 067 | 00110111 | 7 | Digit seven | |
| 56 | 38 | 070 | 00111000 | 8 | Digit eight | |
| 57 | 39 | 071 | 00111001 | 9 | Digit nine | |
| 58 | 3A | 072 | 00111010 | : | Colon | |
| 59 | 3B | 073 | 00111011 | ; | Semicolon | |
| 60 | 3C | 074 | 00111100 | < | Less than | |
| 61 | 3D | 075 | 00111101 | = | Equals | |
| 62 | 3E | 076 | 00111110 | > | Greater than | |
| 63 | 3F | 077 | 00111111 | ? | Question mark | |
| 64 | 40 | 100 | 01000000 | @ | At sign | |
| 65 | 41 | 101 | 01000001 | A | Uppercase letter A | |
| 66 | 42 | 102 | 01000010 | B | Uppercase letter B | |
| 67 | 43 | 103 | 01000011 | C | Uppercase letter C | |
| 68 | 44 | 104 | 01000100 | D | Uppercase letter D | |
| 69 | 45 | 105 | 01000101 | E | Uppercase letter E | |
| 70 | 46 | 106 | 01000110 | F | Uppercase letter F | |
| 71 | 47 | 107 | 01000111 | G | Uppercase letter G | |
| 72 | 48 | 110 | 01001000 | H | Uppercase letter H | |
| 73 | 49 | 111 | 01001001 | I | Uppercase letter I | |
| 74 | 4A | 112 | 01001010 | J | Uppercase letter J | |
| 75 | 4B | 113 | 01001011 | K | Uppercase letter K | |
| 76 | 4C | 114 | 01001100 | L | Uppercase letter L | |
| 77 | 4D | 115 | 01001101 | M | Uppercase letter M | |
| 78 | 4E | 116 | 01001110 | N | Uppercase letter N | |
| 79 | 4F | 117 | 01001111 | O | Uppercase letter O | |
| 80 | 50 | 120 | 01010000 | P | Uppercase letter P | |
| 81 | 51 | 121 | 01010001 | Q | Uppercase letter Q | |
| 82 | 52 | 122 | 01010010 | R | Uppercase letter R | |
| 83 | 53 | 123 | 01010011 | S | Uppercase letter S | |
| 84 | 54 | 124 | 01010100 | T | Uppercase letter T | |
| 85 | 55 | 125 | 01010101 | U | Uppercase letter U | |
| 86 | 56 | 126 | 01010110 | V | Uppercase letter V | |
| 87 | 57 | 127 | 01010111 | W | Uppercase letter W | |
| 88 | 58 | 130 | 01011000 | X | Uppercase letter X | |
| 89 | 59 | 131 | 01011001 | Y | Uppercase letter Y | |
| 90 | 5A | 132 | 01011010 | Z | Uppercase letter Z | |
| 91 | 5B | 133 | 01011011 | [ | Opening square bracket | |
| 92 | 5C | 134 | 01011100 | \ | Backslash | |
| 93 | 5D | 135 | 01011101 | ] | Closing square bracket | |
| 94 | 5E | 136 | 01011110 | ^ | Circumflex accent | |
| 95 | 5F | 137 | 01011111 | _ | Underscore | |
| 96 | 60 | 140 | 01100000 | ` | Grave accent (backtick) | |
| 97 | 61 | 141 | 01100001 | a | Lowercase letter a | |
| 98 | 62 | 142 | 01100010 | b | Lowercase letter b | |
| 99 | 63 | 143 | 01100011 | c | Lowercase letter c | |
| 100 | 64 | 144 | 01100100 | d | Lowercase letter d | |
| 101 | 65 | 145 | 01100101 | e | Lowercase letter e | |
| 102 | 66 | 146 | 01100110 | f | Lowercase letter f | |
| 103 | 67 | 147 | 01100111 | g | Lowercase letter g | |
| 104 | 68 | 150 | 01101000 | h | Lowercase letter h | |
| 105 | 69 | 151 | 01101001 | i | Lowercase letter i | |
| 106 | 6A | 152 | 01101010 | j | Lowercase letter j | |
| 107 | 6B | 153 | 01101011 | k | Lowercase letter k | |
| 108 | 6C | 154 | 01101100 | l | Lowercase letter l | |
| 109 | 6D | 155 | 01101101 | m | Lowercase letter m | |
| 110 | 6E | 156 | 01101110 | n | Lowercase letter n | |
| 111 | 6F | 157 | 01101111 | o | Lowercase letter o | |
| 112 | 70 | 160 | 01110000 | p | Lowercase letter p | |
| 113 | 71 | 161 | 01110001 | q | Lowercase letter q | |
| 114 | 72 | 162 | 01110010 | r | Lowercase letter r | |
| 115 | 73 | 163 | 01110011 | s | Lowercase letter s | |
| 116 | 74 | 164 | 01110100 | t | Lowercase letter t | |
| 117 | 75 | 165 | 01110101 | u | Lowercase letter u | |
| 118 | 76 | 166 | 01110110 | v | Lowercase letter v | |
| 119 | 77 | 167 | 01110111 | w | Lowercase letter w | |
| 120 | 78 | 170 | 01111000 | x | Lowercase letter x | |
| 121 | 79 | 171 | 01111001 | y | Lowercase letter y | |
| 122 | 7A | 172 | 01111010 | z | Lowercase letter z | |
| 123 | 7B | 173 | 01111011 | { | Opening curly brace | |
| 124 | 7C | 174 | 01111100 | | | Vertical bar (pipe) | |
| 125 | 7D | 175 | 01111101 | } | Closing curly brace | |
| 126 | 7E | 176 | 01111110 | ~ | Tilde | |
| 127 | 7F | 177 | 01111111 | — | DEL | Delete: created to erase characters on punched tape Delete |
The table shows the 7-bit ASCII of the American standard USAS X3.4-1968, adopted in RFC 20: codes 0 to 31 and 127 are control characters, with no graphic symbol; from 32 to 126 there are the space, digits, letters and symbols. Values from 128 to 255 are not ASCII: the character they represent depends on the code page (for example Windows-1252 or 850). The conversion takes place in your browser and the text is not sent to anyone. This is an informational tool: for the encoding of a file or a system, the documentation of the software you use is authoritative.
Smart home: risparmio + sicurezza
Con Imou monitori consumi e sicurezza della casa da un'unica app. Ottimizza bollette e dispositivi.
More Details
How the ASCII table and converter work
Here you will find the complete ASCII table, with the 128 codes from 0 to 127: for each one, the value in decimal, hexadecimal, octal and 8-bit binary, the character, the abbreviation of control characters and a description. The search above the table accepts a character, a number such as 65, 0x41 or 01000001, an abbreviation such as CR or a word such as “brace”; the buttons filter by character type.
The converter works in both directions. “Text → codes” turns a sentence into the sequence of its codes, with a character-by-character breakdown. “Codes → text” accepts numbers separated by spaces or commas, recognizes the prefixes 0x (hexadecimal) and 0b (binary) and flags values outside the 0-127 range. Everything happens in the browser: the text is not sent to any server.
What ASCII code is
ASCII (American Standard Code for Information Interchange) is a 7-bit code that assigns a number from 0 to 127 to 128 characters. RFC 20 of 1969, now an Internet Standard, adopted it for network data interchange, taking over the table of the American standard USAS X3.4-1968, with the 7 bits placed in an 8-bit byte whose highest bit is always 0. That is why every code in the “Binary” column starts with a zero.
Codes 0 to 31 and 127 are control characters: they have no graphic symbol and were used to control printing, display and data transmission. Among them are the HT tab (9), the LF line feed (10) and the CR carriage return (13). DEL was used to erase characters on punched tape. From 32 (the space) to 126 (the tilde) there are the 95 printable characters: digits, unaccented letters, punctuation and symbols. The first 128 Unicode code points, from U+0000 to U+007F, contain the same characters in the same order.
How to read the table
RFC 20 arranges the codes in 8 columns and 16 rows: the column corresponds to the three highest bits, the row to the four lowest. “K” is in column 4 and row 11, that is 4 × 16 + 11 = 75, in binary 1001011. This produces useful patterns: uppercase letters run from 65 to 90 and lowercase from 97 to 122, so the same letter always differs by 32; the digits 0 to 9 occupy codes 48 to 57, so the value of a digit is its code minus 48.
Calculation example
Let’s convert “Ciao!” with the “Text → codes” tab. The calculator returns decimal, hexadecimal and binary; the octal value comes from the 0-127 table:
| Character | Decimal | Hexadecimal | Octal | Binary (8 bit) |
|---|---|---|---|---|
| C | 67 | 43 | 103 | 01000011 |
| i | 105 | 69 | 151 | 01101001 |
| a | 97 | 61 | 141 | 01100001 |
| o | 111 | 6F | 157 | 01101111 |
| ! | 33 | 21 | 041 | 00100001 |
In sequence the word becomes 67 105 97 111 33 in decimal and 43 69 61 6F 21 in hexadecimal; pasting either line into “Codes → text” gives back “Ciao!”. With “Caffè” the last letter is not ASCII: the converter writes 67 97 102 102 U+00E8 and warns that U+00E8 is the Unicode code point of “è”, not an ASCII code.
Characters missing from the Italian keyboard
On the standard Windows Italian layout the tilde and the grave accent have no key, while the at sign, hash sign and square and curly brackets are typed with AltGr. Key combinations and Alt codes:
| Character | Windows Italian layout | Alt + code |
|---|---|---|
| ~ tilde | no key | Alt+126 |
| ` grave accent | no key | Alt+96 |
| { opening curly brace | AltGr + Shift + è | Alt+123 |
| } closing curly brace | AltGr + Shift + + | Alt+125 |
| [ opening square bracket | AltGr + è | Alt+91 |
| ] closing square bracket | AltGr + + | Alt+93 |
| @ at sign | AltGr + ò | Alt+64 |
| # hash sign | AltGr + à | Alt+35 |
Hold down Alt, type the number on the numeric keypad and release Alt. According to Microsoft, the row of numbers above the letters does not work, and Num Lock must be turned on if the keyboard requires it. On a laptop without a numeric keypad there is still the Windows “Italian (142)” layout, where the tilde is AltGr + + and the grave accent AltGr + ù.
The leading zero changes the table. Without the zero, for MS-DOS compatibility, Windows looks up the number in the OEM code page; with the zero, in the ANSI code page. For Italian, Windows uses OEM 850 and ANSI 1252, which match ASCII between 32 and 126: Alt+126 and Alt+0126 give the same tilde. Above 127 they do not: “è” is Alt+138 in 850 and Alt+0232 in 1252, and the euro sign is Alt+0128.
Extended ASCII: why there is no single table from 128 to 255
A byte has 256 values and ASCII uses 128 of them. Each code page has filled values 128 to 255 in its own way, so so-called “extended ASCII” is not a single standard:
| Byte | Code page 437 | Code page 850 | Windows-1252 |
|---|---|---|---|
| 128 | Ç | Ç | € |
| 138 | è | è | Š |
| 232 | Φ | Þ | è |
Microsoft itself warns that ANSI code pages can differ from one computer to another and recommends Unicode. That is why the converter rejects values above 127 and, for non-ASCII characters, shows the Unicode code point, stating that it is one. It does not calculate the bytes of encodings such as UTF-8: it is an informational tool, and for the encoding of a file or a system the documentation of the software you use is authoritative.
Frequently asked questions
What is the ASCII code of the letter A?
Uppercase A has code 65 in decimal, 41 in hexadecimal, 101 in octal and 01000001 in 8-bit binary. Lowercase a has code 97: between the uppercase and lowercase forms of the same letter the difference is always 32, a single bit.
How do you type the tilde on an Italian keyboard?
On the standard Windows Italian layout the tilde has no key. Hold down Alt, type 126 on the numeric keypad with Num Lock on and release Alt: ~ appears. Alt+0126 also works. In the same way, the grave accent is Alt+96.
What is the difference between Alt+nnn and Alt+0nnn?
Without the leading zero Windows looks up the number in the OEM code page (850 for Italian), with the zero in the ANSI code page (Windows-1252 for Italian). From 32 to 126 both tables match ASCII; above 127 they do not: è is Alt+138 or Alt+0232.
Do accented letters like è have an ASCII code?
No. ASCII has 128 characters, from 0 to 127, and no accented letters. è is the Unicode character U+00E8: in the Windows-1252 code page it is byte 232, in 850 byte 138. The value depends on the code page used.
Related tools: the IP calculator for addresses and subnet masks in binary, the password generator and the Roman numeral converter.