Decimal to Binary Converter

Type a decimal number to see it as binary, plus the other bases.

Free · Runs in your browser · Your text is never uploaded

A number shown in decimal converted to binary and hexadecimal

How to convert decimal to binary

Divide by 2 repeatedly and note each remainder. Reading the remainders from last to first gives the binary number.

Worked example

The decimal number 45 is 101101 in binary.

Convert many at once

Put one number per line to convert a whole list, and copy the results.

A worked example

Convert 202 to binary by dividing repeatedly by 2: 202 ÷ 2 = 101 remainder 0; 101 ÷ 2 = 50 remainder 1; 50 ÷ 2 = 25 remainder 0; 25 ÷ 2 = 12 remainder 1; 12 ÷ 2 = 6 remainder 0; 6 ÷ 2 = 3 remainder 0; 3 ÷ 2 = 1 remainder 1; 1 ÷ 2 = 0 remainder 1. Reading the remainders from bottom to top gives 11001010.

Where it is used

Studying for exams, setting individual bits, or building a subnet mask by hand.

Tips

Spaces and underscores inside a number are ignored, so you can paste values like 1010 1111. Add a prefix (0x, 0b or 0o) if you are unsure which base a number is in. For the theory behind all four bases, read binary, decimal and hexadecimal explained.

Need more options? Open the full Number Base Converter.

Related guides

Frequently asked questions

How do I convert decimal to binary?

Enter the decimal number above and the binary result appears instantly.

Does it work for large numbers?

Yes, the arithmetic is exact for numbers up to 4,000 digits.

Can I convert negative numbers?

Yes, the minus sign is kept. Two’s complement is not applied.