The digit 1 in binary code

AnswerThe digit 1 1 is 00110001 in binary — ASCII code 49.

012806413211608040211

How the digit 1 becomes 00110001

The character’s code is 49. Writing 49 as a sum of powers of two gives 32 + 16 + 1 = 49. Put a 1 under each place value used and a 0 everywhere else, and you get 00110001.

Binary (8-bit)00110001
Decimal (ASCII code)49
Hexadecimal31 (0x31)
Octal061
UnicodeU+0031
HTML entity1

Frequently asked questions

What is the digit 1 in binary?

The digit 1 is 00110001 in 8-bit binary. That is ASCII and UTF-8 code 49, which is 32 + 16 + 1 = 49.

Is the character 1 the same as the number 1 in binary?

No. The number 1 is 1 in binary, but the text character “1” is ASCII code 49, stored as 00110001. Subtract 48 (00110000) from a digit character to get its numeric value.