Unitrify

Decimal to Binary

42 = 101010 in binary

Result (binary)

101010

42 in decimal is 101010 in binary. Students use this conversion in computer science, and engineers use it for bit masks and network settings. For other values, use the Number Converter.

How it works

Divide by 2 repeatedly and read the remainders from bottom to top

Decimal to binary table

DecimalBinary
11
210
5101
101010
1610000
42101010
1001100100
25511111111

Frequently asked questions

What is 10 in binary?

10 in decimal is 1010 in binary.

What is 255 in binary?

255 is 11111111, eight 1s in a row.

Can I convert negative numbers?

Yes. Add a minus sign: -5 becomes -101. The converter does not use two's complement.

Related converters