BinaryConverter
Free Online ToolUpdated September 2026

Decimal to Binary Converter — Base 10 to Base 2 Calculator

Convert decimal numbers to binary code with step-by-step repeated division by 2. Free calculator, bit expansion, and reference tables.

Multi-Base Conversion Dashboard

Type in any input to instantly convert across bases, signed binary, floats, and ASCII text.

Instant Test Pills::

Decimal To Binary Reference & Conversion Matrix

Instant numerical reference comparing Hex, Decimal, Binary, and Octal values.

Hex (Base 16)Decimal (Base 10)Binary (Base 2)Octal (Base 8)
0x000
0x111
0x222
0x333
0x444
0x555
0x666
0x777
0x8810
0x9911
0xA1012
0xB1113
0xC1214
0xD1315
0xE1416
0xF1517

How to Perform This Conversion in Code

Python
# Convert value across number bases
num = 42
print(bin(num))  # Binary: 0b101010
print(hex(num))  # Hex: 0x2a
print(oct(num))  # Octal: 0o52
JavaScript / TypeScript
// Convert value across number bases
const num = 42;
console.log(num.toString(2));  // Binary: "101010"
console.log(num.toString(16)); // Hex: "2a"
console.log(num.toString(8));  // Octal: "52"