Binary to decimal converter

Type a binary number made of 0s and 1s and read its decimal value straight away. Spaces between groups of bits and a 0b prefix are accepted.

  • Free
  • No sign-up
  • Runs in your browser

Decimal (10)

10

The same number in common bases
BaseValue
Binary (2)1010
Octal (8)12
Decimal (10)10
Hexadecimal (16)A

Whole numbers of any size are converted exactly (up to 5,000 digits). Prefixes 0x, 0b and 0o, spaces, underscores and a leading minus sign are accepted. Fractions are not supported.

Runs in your browser — your text is never sent to our servers.

How to use Binary to Decimal

  1. Type or paste your binary number, for example 1010 or 1111 0000.
  2. Read the decimal value in the result box.
  3. Check the table for the same number in octal and hexadecimal.
  4. Click Copy to copy the decimal value.

Features

  • Accepts spaces, underscores and a 0b prefix
  • Exact for long binary numbers, even beyond 64 bits
  • Also shows the value in octal and hexadecimal
  • Clear message when a digit is not 0 or 1
  • Runs in your browser, so nothing is uploaded

Supported formats and limits

  • Maximum input: 10,000,000 characters

Examples

InputResult
101010
11111111255
1 0000 0000256 — Spaces are ignored.
102Error: "2" is not a valid digit in base 2.

Limitations

  • Only whole binary numbers are supported, with no binary point.
  • Negative values need a minus sign; two’s complement notation is not interpreted.
  • Input is limited to 5,000 digits.

Learn more

Binary is the base-2 number system, which uses only the digits 0 and 1. Each position is worth a power of two: from the right, 1, 2, 4, 8, 16 and so on. The decimal value of a binary number is the sum of the powers of two where there is a 1.

For example, 1101 has ones in the 8, 4 and 1 positions, so its value is 8 + 4 + 1 = 13. Eight bits make a byte and can represent the values 0 to 255, which is why 11111111 converts to 255.

Computers use binary because electronic circuits can reliably be in one of two states. People more often read values in decimal, or in hexadecimal as a compact form of binary, so converting between them is a routine task in programming, networking and electronics.

Frequently asked questions

How do I convert binary to decimal by hand?

Multiply each bit by 2 raised to its position, counting from 0 on the right, and add the results. For 1010 that is 1×8 + 0×4 + 1×2 + 0×1 = 10.

Can I include spaces?

Yes. Spaces and underscores are ignored, so you can paste 1111 0000 or 1111_0000.

What is the largest binary number it accepts?

Up to 5,000 digits. Values are exact, with no 64-bit limit.

Is my input uploaded?

No. The conversion runs in your browser.

Sources

Last reviewed: September 30, 2026