The digit 3 in binary code

AnswerThe digit 3 3 is 00110011 in binary — ASCII code 51.

012806413211608041211

How the digit 3 becomes 00110011

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

Binary (8-bit)00110011
Decimal (ASCII code)51
Hexadecimal33 (0x33)
Octal063
UnicodeU+0033
HTML entity3

Frequently asked questions

What is the digit 3 in binary?

The digit 3 is 00110011 in 8-bit binary. That is ASCII and UTF-8 code 51, which is 32 + 16 + 2 + 1 = 51.

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

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