Calculator and Converter

Decimal to binary converter

Type a whole decimal number and this tool shows it in binary, along with the number of bits it needs.

Results

Enter your values to see the result.

About this tool

It works with very large whole numbers, up to 300 digits, and is useful for learning, programming and electronics.

How it is calculated
repeatedly divide by 2 and read the remainders backwards; computed exactly for whole numbers up to 300 digits.
Worked example
With Whole number (decimal): 202, the result is: Binary: 11001010; Number of bits: 8.
Good to know
The tool repeatedly divides by two and reads the remainders backwards, and it works exactly for whole numbers up to 300 digits. Negative numbers and numbers with a decimal point are not converted.

Frequently asked questions

How do I convert decimal to binary by hand?

Divide the number by 2 again and again, noting the remainder each time, and read the remainders from the last to the first.

What is binary?

Binary is a number system with only two digits, 0 and 1. Computers use it, because their circuits have two states, on and off.

Related calculators