Binary to Decimal Converter
Paste a string of 0s and 1s and read its base-10 value as you type. The converter strips spaces first, so grouped bytes like 1010 1010 work the same as 10101010. It uses arbitrary-precision integers, so a 200-digit binary number still converts exactly with no rounding.
How to convert binary to decimal
- Type or paste your binary number into the Binary input box. Only 0s and 1s count; spaces are ignored.
- Or click Load sample to drop in 11111111 and see how it works.
- Read the base-10 value in the Decimal output box, which updates on every keystroke.
- If you type a character other than 0 or 1, an Invalid binary number message appears until you fix it.
- Click Copy to put the decimal result on your clipboard.
Examples
One byte, all bits set
11111111
255
Grouped binary with a space
1010 1010
170
Two bytes, maximum value
1111111111111111
65535
Frequently asked questions
How does converting binary to decimal work?
Each binary digit is a power of two. Reading right to left, the digits stand for 1, 2, 4, 8 and so on. Add the powers where the digit is 1. For example 1010 is 8 + 0 + 2 + 0, which is 10.
Is there a maximum size or number of digits?
No practical limit. The converter uses arbitrary-precision integers (BigInt), so even hundreds of binary digits convert to the exact decimal value with no rounding or overflow.
Do leading zeros change the result?
No. Leading zeros do not affect the value, so 00001010 and 1010 both convert to 10. They are useful only for padding a number to a fixed bit width.
Can I include spaces in the binary number?
Yes. Spaces, tabs and line breaks are stripped before converting, so grouped input like 1010 1010 gives the same answer as 10101010. Grouping into 4-bit or 8-bit chunks just makes long numbers easier to read.
What decimal range does one byte cover?
Eight bits hold values from 00000000 to 11111111, which is 0 to 255, giving 256 possible values. Two bytes reach 65535 and four bytes reach 4294967295.
What happens if I enter something that is not binary?
Any character other than 0 or 1 (after spaces are removed) is rejected and the tool shows an Invalid binary number message. Decimal digits like 2 to 9, letters and a decimal point are not accepted.
Does it handle negative or fractional binary?
No. It converts whole, unsigned binary numbers only. It does not read a minus sign, a binary point, or twos-complement sign bits, so a leading 1 is treated as value, not as a negative flag.
What is the difference between binary and decimal?
Binary is base 2 and uses only 0 and 1, with each position worth twice the one to its right. Decimal is base 10 and uses digits 0 through 9. Computers store everything in binary because a bit maps cleanly to on or off.
Is my data sent to a server?
No. The conversion happens entirely in your browser with JavaScript, so the numbers you enter never leave your device.
Learn more
- How binary place value converts to decimal
Understand base-2 place value, how each bit doubles the last, and the decimal ranges of a nibble, a byte, and two bytes.
Related tools
Decimal to Binary
Convert decimal numbers to binary online. Type a whole number and get its base-2 value instantly, even for very large numbers. Runs in your browser.
Hex to Decimal
Convert hex to decimal online. Paste a hexadecimal value, with or without a 0x prefix, and get the exact base 10 number. Runs in your browser.
Air Fryer Converter
Convert any conventional oven recipe to air fryer settings. Lower the temperature by 25 F and cut the cook time by about 20 percent automatically.
Baker's Percentage Calculator
Turn a bread formula into grams with baker's percentages. Flour is 100 percent, enter water, salt and yeast percents to get weights and hydration.
Baking Pan Converter
Swap one baking pan for another and scale the batter to fit. Compares pan areas for round, square and rectangular pans and gives a batter scale factor.
Binary to Hex
Convert binary to hexadecimal online. Paste a binary number and get exact hex, with optional uppercase. Handles huge values. Runs in your browser.