Number 4 in binary code

Decimal to Binary Converter
Decimal Number to convert

What is number 4 in binary?

Answer

Decimal number 4 in binary is
100

3 bits: 1 one, 2 zeros · as a byte: 0000 0100

Base 2, unsigned: each place is worth a power of 2 — from 2² = 4 on the left to 2⁰ = 1 on the right.

Divide by 2, keep the remainder
divisionquotientremainder
4 ÷ 220
2 ÷ 210
1 ÷ 201

↑ Read the remainders from bottom to top: 100

See Also

FAQ

What is number 4 in binary?

Decimal number 4 in binary is 100

How many ones and zeros are in 4 in binary?

100 has 3 bits: 1 one and 2 zeros. As a byte it is written 0000 0100.

What is 4 in hexadecimal?

4 in hexadecimal is 4 (0x4): each hex digit stands for 4 bits — 0100 = 4.