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
| Decimal | Binary |
|---|---|
| 1 | 1 |
| 2 | 10 |
| 5 | 101 |
| 10 | 1010 |
| 16 | 10000 |
| 42 | 101010 |
| 100 | 1100100 |
| 255 | 11111111 |
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.