The digit 0 in binary code
AnswerThe digit 0 0 is 00110000 in binary — ASCII code 48.
012806413211608040201
How the digit 0 becomes 00110000
The character’s code is 48. Writing 48 as a sum of powers of two gives 32 + 16 = 48. Put a 1 under each place value used and a 0 everywhere else, and you get 00110000.
| Binary (8-bit) | 00110000 |
|---|---|
| Decimal (ASCII code) | 48 |
| Hexadecimal | 30 (0x30) |
| Octal | 060 |
| Unicode | U+0030 |
| HTML entity | 0 |
Frequently asked questions
What is the digit 0 in binary?
The digit 0 is 00110000 in 8-bit binary. That is ASCII and UTF-8 code 48, which is 32 + 16 = 48.
Is the character 0 the same as the number 0 in binary?
No. The number 0 is 0 in binary, but the text character “0” is ASCII code 48, stored as 00110000. Subtract 48 (00110000) from a digit character to get its numeric value.