Boneyard Tools

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

  1. Type or paste your binary number into the Binary input box. Only 0s and 1s count; spaces are ignored.
  2. Or click Load sample to drop in 11111111 and see how it works.
  3. Read the base-10 value in the Decimal output box, which updates on every keystroke.
  4. If you type a character other than 0 or 1, an Invalid binary number message appears until you fix it.
  5. 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

Related tools