Convert Decimal to Binary (Base-2) Online
Easily convert base-10 decimal numbers into their equivalent base-2 binary strings. Our free online Decimal to Binary Converter is built to simplify calculations for developers, systems programmers, and computer science students. Translate digits into binary structures instantly with support for arbitrary integer lengths.
The Division-by-Two Method
Converting a decimal integer to binary involves dividing the number recursively by 2 (the base of the target system) and tracking the remainders. Each division produces a remainder of either 0 or 1, which represents a single bit in the binary sequence. Writing these remainders in reverse order gives the final binary number.
How to Convert Decimal to Binary (Step-by-Step)
- Divide: Divide the decimal number by 2 and note the quotient and remainder (0 or 1).
- Repeat: Divide the quotient by 2 again. Keep repeating this step with the new quotients.
- Stop: Cease dividing once the quotient becomes 0.
- Reverse: Write the list of remainders in reverse order (the first remainder represents the rightmost digit, and the last remainder represents the leftmost digit).
Arbitrary Precision
Utilizes modern BigInt variables, allowing you to convert massive decimal integers without arithmetic overflow.
Output Formatting
Format your binary output with custom prefixes (0b) and choose custom bit grouping (none, 4-bit nibbles, or 8-bit bytes).
Guaranteed Security
Conversions are processed client-side. Your inputs never touch the network, keeping your data confidential.
Decimal to Binary Conversion Reference
| Decimal Value | Binary Representation |
|---|---|
| 1 | 00000001 |
| 10 | 00001010 |
| 32 | 00100000 |
| 65 | 01000001 |
| 97 | 01100001 |
| 100 | 01100100 |
| 255 | 11111111 |