Base 10 to Base 2

Decimal to Binary Converter

To convert decimal to binary, divide the number repeatedly by 2 and note the integer remainders (0 or 1). Reading the remainders from bottom to top yields the binary representation.

Allowed: 0–9
base 10
Examples:
Binary Result (Primary Target)base 2
1010
Octal (base 8)
12
Hexadecimal (base 16)
A

Step-by-Step Calculation Steps

Successive Division Algorithm
Divide the decimal number repeatedly by 2 and record the remainders in reverse order (bottom to top):
Division Steps
10 ÷ 2 = 5 with remainder 0
5 ÷ 2 = 2 with remainder 1
2 ÷ 2 = 1 with remainder 0
1 ÷ 2 = 0 with remainder 1
Result
Reading remainders from last to first gives 1010 in Binary.

How to Convert Decimal to Binary

To convert decimal to binary, divide the number repeatedly by 2 and note the integer remainders (0 or 1). Reading the remainders from bottom to top yields the binary representation.

Conversion Formula / Rule
Repeatedly divide by 2: n = 2q + r, where r ∈ {0, 1}

Worked Example: 29 (Decimal) to Binary

Problem Convert 29 (base 10) into base 2
Step-by-Step Solution
  1. 29 ÷ 2 = 14 remainder 1 (least significant bit)
  2. 14 ÷ 2 = 7 remainder 0
  3. 7 ÷ 2 = 3 remainder 1
  4. 3 ÷ 2 = 1 remainder 1
  5. 1 ÷ 2 = 0 remainder 1 (most significant bit)
  6. Read remainders from bottom to top: 11101₂
Final Result 11101 (Binary)

Quick Conversion Reference Table (0–15)

Standard values across Binary (base 2), Octal (base 8), Decimal (base 10), and Hexadecimal (base 16):

Decimal (10) Binary (2) Octal (8) Hexadecimal (16)
0 0000 0 0
1 0001 1 1
2 0010 2 2
3 0011 3 3
4 0100 4 4
5 0101 5 5
6 0110 6 6
7 0111 7 7
8 1000 10 8
9 1001 11 9
10 1010 12 A
11 1011 13 B
12 1100 14 C
13 1101 15 D
14 1110 16 E
15 1111 17 F

Image preview

Fit