ASCII Table: Decimal, Hex, Octal, Binary and HTML Codes
ASCII table with codes 0 to 127 and extended codes 128 to 255 in decimal, hex, octal and binary, with HTML codes and names. Click any cell to copy.
What is ASCII?

ASCII is a code that gives each letter, digit and sign a number from 0 to 127. For example, A is 65 and a is 97. Computers store these numbers, not the letters. ASCII was first published in 1963. Unicode, the modern standard, uses the same numbers for its first 128 characters.
The 128 ASCII codes form two groups:
- 33 control characters: codes 0 to 31 and 127
- 95 printable characters: codes 32 to 126, from the space to the tilde (~)
How to use this ASCII table 🔍
Each row is one code. Click any cell to copy it. A click on a character also adds it to the bar at the bottom of the screen, so you can collect a few and copy them together.
| Column | Example | What it is |
|---|---|---|
| Dec | 65 | The code as a normal number |
| Hex | 41 | The same number in base 16 (hexadecimal) |
| Oct | 101 | The same number in base 8 (octal) |
| Bin | 01000001 | The 8 bits of the byte (binary) |
| Char | A | The character itself |
| HTML | A | The code for a web page. Some characters also have a name, like & for &. |
| Unicode | U+0041 | The code in Unicode, the system that phones and computers use today |
| Name | Latin capital letter A | The official name, with a common name for some signs |
To find a code, type in the filter box above the tables. A character like é, a number like 233 or a word like "euro" all work. A plain number is checked in every column, so 41 finds ")", "A" and "!": that is 41 in decimal, hex and octal. Start with 0x for hex only (0x41), 0b for binary (0b1000001) or U+ for Unicode (U+20AC).
What is extended ASCII?
ASCII uses 7 bits, so it stops at 127. A computer byte has 8 bits and can hold numbers up to 255. Many companies used the extra codes 128 to 255 for their own characters. That is why "extended ASCII" is not one standard. The same code can mean different things:
| Code | Code page 437 (old DOS computers) | Windows-1252 | ISO 8859-1 (Latin-1) |
|---|---|---|---|
| 128 | Ç | € | a control code |
| 153 | Ö | ™ | a control code |
| 176 | ░ | ° | ° |
| 233 | Θ | é | é |
The table on this page uses Windows-1252, because web browsers do too. Codes 160 to 255 are the same in Windows-1252, ISO 8859-1 and Unicode. Codes 128 to 159 are not: Windows-1252 has 27 symbols there, like € and ™, and ISO 8859-1 has control codes.
Today most text is saved as UTF-8. It keeps the codes 0 to 127 the same as ASCII and uses two to four bytes for every other character. So a file with only ASCII characters is also a correct UTF-8 file.
Typing extended characters on Windows ⌨️
On a Windows computer, hold Alt and type a code on the number pad. A zero at the start picks the set. With English settings, Alt+0233 types é from Windows-1252, and Alt+130 types é from code page 437.
More character tools
Need symbols that are not in ASCII? Search all Unicode characters by name, or browse the symbols page. For pictures made of characters, try the ASCII art tools. To write in bold or cursive letters, use the fancy text generator.
Frequently asked questions
How many ASCII characters are there?
ASCII has 128 characters, with the codes 0 to 127. Of these, 95 are printable and 33 are control characters.
What is the ASCII code for A?
Capital A is 65, and small a is 97. Each small letter is always 32 higher than its capital letter.
What is the ASCII code for a space?
A space is 32, or 20 in hex. The no-break space ( in HTML) is not in ASCII. It is 160 in Windows-1252 and U+00A0 in Unicode.
What is the ASCII code for Enter?
A new line is the line feed, code 10, written \n in code. Windows ends each line with two codes, the carriage return (13) and the line feed (10). Linux and macOS use only the line feed.
What is the difference between ASCII and Unicode?
ASCII has 128 characters. Unicode has about 155,000 and covers almost every writing system, plus emojis. The first 128 Unicode characters are the same as ASCII.
Is extended ASCII a standard?
No. Extended ASCII is a name for many 8-bit sets, such as code page 437, Windows-1252 and ISO 8859-1. They share codes 0 to 127 but differ above that.
Is the euro sign in ASCII?
No. ASCII stops at 127. The € sign is 128 in Windows-1252 and U+20AC in Unicode, so in HTML you write € or €.
How do I find a character by its code?
Type the code into the filter box above the tables, like 169 or 0xA9. To search all Unicode characters by name or code, use the box at the top of the page.