How binary becomes decimal
Each binary digit is a power of 2. The rightmost digit is 2⁰, the next is 2¹, and so on.
The other direction writes a whole number as those powers of 2. This calculator allows up to 32 digits, from 0 through 4,294,967,295.
How to use this calculator
- Choose binary to decimal, or decimal to binary.
- Enter the number. Binary uses only 0 and 1.
- Read the result. The row below shows how many digits it uses.
Place values
Add each bit times its power of 2.
1010 is 1×8 + 0×4 + 1×2 + 0×1 = 10. The same steps run backward to write 10 as 1010.
Source
Binary place values are defined on the Wikipedia page on binary numbers.
Worked examples
Example: 1010
Binary 1010 is decimal 10.
Example: 11111111
Binary 11111111 is decimal 255.
What to keep in mind
Binary 0 is decimal 0. Decimal 10 is binary 1010. Decimal 255 is binary 11111111. A digit other than 0 or 1 has no result, and so does a number above 4,294,967,295. A completed result, including the number, can be stored in this browser’s local history and never leaves your device. Clear it with the history Clear action or by clearing site data.
Common questions about binary and decimal
What is binary 1010 in decimal?
10.
What is binary 11111111 in decimal?
255.
What is decimal 10 in binary?
1010.
What is decimal 255 in binary?
11111111.
What is binary 0?
Decimal 0.
Does this calculator store my number?
A completed result can be saved in this browser’s local history, including the number. It stays on your device and is not sent to our servers or to analytics. Clear it with the history Clear action or by clearing site data.