Utility Tools

Decimal to Binary Converter

Convert a whole number into binary, the base-2 form computers use.

Jump to tool

What Is Decimal to Binary Conversion?

Decimal to binary conversion writes an ordinary number in base 2, the form computers use internally. One way to do it by hand is to divide by two repeatedly and read the remainders from bottom to top: 10 becomes 1010.

Enter a non-negative whole number and the tool returns its binary form.

How to Convert Decimal to Binary

  1. Enter a whole number, such as 45, under Enter decimal number.
  2. Read the result under Binary output: 101101 for this example.
  3. Select Copy binary or Download to keep it.

Worked Example: 45

Divide by two until you reach zero, then read the remainders from bottom to top: 101101.

Divide by 2Remainder
45 ÷ 2 = 221
22 ÷ 2 = 110
11 ÷ 2 = 51
5 ÷ 2 = 21
2 ÷ 2 = 10
1 ÷ 2 = 01

Common Values

DecimalBinary
81000
101010
1001100100
25511111111
102410000000000

Where Binary Shows Up

Binary is used for subnet masks, file permissions, bit flags in programming and digital electronics. Each extra binary digit doubles the largest number you can write.

Decimal to Binary Converter FAQ

Convert binary back to decimal

Check your answer the other way round.

Binary to Decimal Converter