Base Conversion•Live Bidirectional•100% Client-Side
Decimal to Binary Converter
Convert base-10 decimal integers to base-2 binary with 8-bit, 16-bit, and 32-bit padding options.
Bit Length Padding:
Binary Output (Base 2)
00101010
Length: 8 bitsHexadecimal0x2A
Octal52
Step-by-Step Division by 2 Method
| Step | Division | Quotient | Remainder (Bit) |
|---|---|---|---|
| 1 | 42 ÷ 2 | 21 | 0 |
| 2 | 21 ÷ 2 | 10 | 1 |
| 3 | 10 ÷ 2 | 5 | 0 |
| 4 | 5 ÷ 2 | 2 | 1 |
| 5 | 2 ÷ 2 | 1 | 0 |
| 6 | 1 ÷ 2 | 0 | 1 |
* Read the remainders from bottom to top to get the binary representation.
Conversion Formula & Standards
Conversions follow International System of Units (SI) and ISO standard constants.
Repeated integer division by 2 recording remainders (LSB to MSB)
How to Use Decimal to Binary Converter
01
Type any positive or negative decimal integer (e.g., 42 or 255).
02
Select bit padding (None, 8-bit byte, 16-bit word, 32-bit dword).
03
View the binary output and educational step-by-step division table.
Frequently Asked Questions
What is 255 in binary?
255 in binary is 11111111 (an 8-bit byte with all bits set to 1).
Explore Companion Converters
Instant bidirectional unit and number system converters with zero server latency.