ASCII code for the digit 8
56
Digit 8 — 8
| Decimal | 56 |
| Hexadecimal | 0x38 |
| Octal | 0070 |
| Binary | 00111000 |
| HTML entity | 8 |
What it is
Digit 8 is one of the 95 printable ASCII characters, the set every text encoding in common use still agrees on. UTF-8 encodes it as the single byte 56, which is why ASCII text is also valid UTF-8.
The full entry
ASCII 56 in full — the code point page, with what sits either side of it and how the character is encoded elsewhere.
Frequently asked questions
What is the ASCII code for the digit 8?
The ASCII code for the digit 8 is 56 in decimal, 0x38 in hexadecimal and 0070 in octal.
What is the digit 8 in binary?
00111000 — eight bits, though ASCII only defines seven, so the top bit is always zero.
Is the digit 8 a printable character?
Yes. Digit 8 is in the printable range, codes 32 to 126, which is everything ASCII can put on a screen.
Other characters
- ASCII code for the digit 9 — 57
- ASCII code for colon — 58
- ASCII code for semicolon — 59
- ASCII code for less than sign — 60
- ASCII code for equals sign — 61
- ASCII code for greater than sign — 62
- ASCII code for question mark — 63
- ASCII code for at sign — 64
- ASCII code for uppercase A — 65
- ASCII code for uppercase B — 66
- ASCII code for uppercase C — 67
- ASCII code for uppercase D — 68
Every character by name · The ASCII table · Text to binary converter