Technology

Decimal to Binary Converter

Convert whole decimal integers (base 10) into Binary (base 2), byte-padded binary nibbles, Hexadecimal, and Octal.

Interactive Decimal to Binary Converter

Enter a non-negative whole integer.

Calculation Results

Binary (Base 2)

11111111

Byte-Padded Binary

1111 1111

Hexadecimal (Base 16)

0xFF

Octal (Base 8)

0o377

Formula Explanation

Repeated Division by 2

Divide by 2 repeatedly; read remainders from bottom to top

Dividing a base-10 integer by 2 yields a quotient and a remainder (0 or 1). Repeating until the quotient reaches 0 produces the binary bits from least significant to most significant.

Worked Example

Example: Converting 255₁₀ to Binary

255 = 128 + 64 + 32 + 16 + 8 + 4 + 2 + 1, so all 8 bits are set: 11111111₂ (0xFF in hex).

Frequently Asked Questions

What is byte-padded binary?
Byte-padded binary adds leading zeros so the output aligns to an 8-bit byte boundary (grouped into 4-bit nibbles for readability).
How large of a number can this converter handle?
It uses JavaScript BigInt to support exact unsigned integers up to 64 bits without floating-point rounding.

Related Calculators