Binary Calculator
Use this free binary calculator to convert between decimal and binary in either direction. Choose decimal to binary or binary to decimal, enter the number, and get the converted result right away. It also checks binary input, so a digit other than 0 or 1 is flagged.
How it works
Binary is the base-2 number system computers use, with only the digits 0 and 1. Each place in a binary number is worth twice the place to its right, just as each place in decimal is worth ten times the place to its right. So the binary number 1010 means 8 + 0 + 2 + 0, which is 10 in decimal.
To convert decimal to binary, repeatedly divide by 2 and read the remainders backwards. To convert binary to decimal, add up the place values of every 1 bit. This calculator does both directions: choose decimal to binary and enter an ordinary number, or choose binary to decimal and enter a string of 0s and 1s.
If the binary input contains any digit other than 0 or 1, the calculator says so instead of guessing. That check matters because a single wrong digit, like a 2 in 102, is not a binary number at all and has no decimal value.
Example: Converting the decimal number 42 to binary gives 101010.
Frequently asked questions
How do I convert decimal to binary?
Repeatedly divide by 2 and read the remainders backwards. Choose Decimal to Binary, enter the number, and the calculator does it for you.
What happens if I enter a number that is not binary?
The calculator tells you the input is invalid instead of guessing. Binary numbers use only the digits 0 and 1, so any other digit is rejected.
More Math Calculators
- Scientific Calculator
- Fraction Calculator
- Percentage Calculator
- Random Number Generator
- Triangle Calculator
- Standard Deviation Calculator
- Area Calculator
- Average Calculator
- Circle Calculator
- Common Factor Calculator
- Confidence Interval Calculator
- Exponent Calculator
- Factor Calculator
- GCF Calculator
- Half-Life Calculator
- Hex Calculator
- LCM Calculator
- Log Calculator
- Long Division Calculator
- Matrix Calculator
- Mean, Median, Mode & Range Calculator
- Number Sequence Calculator
- P-Value Calculator
- Percent Error Calculator
- Percent Off Calculator
- Permutation & Combination Calculator
- Prime Factorization Calculator
- Probability Calculator
- Pythagorean Theorem Calculator
- Quadratic Formula Calculator
- Ratio Calculator
- Right Triangle Calculator
- Root Calculator
- Rounding Calculator
- Sample Size Calculator
- Scientific Notation Calculator
- Slope Calculator
- Statistics Calculator
- Surface Area Calculator
- Volume Calculator
- Z-Score Calculator
- Big Number Calculator
