Decimal to Binary Converter
Convert standard base-10 decimal numbers into 8-bit, 16-bit, and 32-bit binary representations with step-by-step math.
Binary Output (Base-2)
6 BitsHow Decimal to Binary Conversion Works
The binary number system (base-2) forms the fundamental language of digital computation and computer architectures. While human mathematics relies on the base-10 decimal system (digits 0 through 9), modern electronic processors utilize electronic logic gates that exist in two discrete states: ON (represented as 1) and OFF (represented as 0).
To convert any integer from base-10 to base-2:
- Divide the decimal number by 2.
- Record the integer quotient and the remainder (either 0 or 1).
- Repeat the division with the quotient until the quotient reaches 0.
- Read the remainders in reverse order (from bottom to top) to construct the binary string.