Converters / utility

Binary to Decimal

Convert binary digits to exact decimal integers, or decimal to binary. Handles up to 256 bits with examples, validation and positional notation guidance.

Calculator

Calculator

Convert the entered value.

Translate unsigned base-2 digits into an exact base-10 integer, or swap to convert decimal digits to binary. Supports integers up to 256 bits.

Value and conversion direction

Unsigned integer digits only; no base prefix or separators.

Your result

Enter details to see the result.

Complete the inputs and calculate to see the main result and its supporting breakdown.

Example

Worked example

Example inputs

Value in binary
1010
Conversion direction
binary → decimal

Calculation breakdown

For bits bᵢ with the rightmost at position zero, decimal = Σ bᵢ × 2ⁱ. For example, 1010₂ = 1×8 + 0×4 + 1×2 + 0×1 = 10₁₀. The shared engine uses native BigInt radix conversion, avoiding floating-point rounding.

Entered quantity
1010 binary

Example result

Converted value (decimal)

10

Exact integer conversion; leading zeros do not change the value.

How to interpret the result

The result is another representation of the same integer; it is exact within the supported 256-bit limit.

Common conversions: binary → decimal
Common conversions: binary → decimal
binarydecimal
00
11
102
1015
101010
11111111255

How to use this calculator

  1. Choose the input base before typing unsigned digits without a 0b prefix.
  2. Convert to read the exact integer in the other base.
  3. Compare the common table and swap for the inverse representation.

How it works

Formula

For bits bᵢ with the rightmost at position zero, decimal = Σ bᵢ × 2ⁱ. For example, 1010₂ = 1×8 + 0×4 + 1×2 + 0×1 = 10₁₀. The shared engine uses native BigInt radix conversion, avoiding floating-point rounding.

Does 1010 mean ten or one thousand ten?

In binary mode 1010 represents decimal ten. Swap to decimal input and the same digits represent one thousand ten.

What this calculator does

Enter an unsigned binary integer such as 1010 to obtain its decimal value. Swap direction to express a decimal integer in base 2; large supported integers stay exact.

Who this is useful for

Learning positional notation or translating unsigned integer representations in computing.

Inputs you will need

Required or selected inputs

  • Value in binary — Unsigned integer digits only; no base prefix or separators.
  • Conversion direction

Assumptions

  • Binary input contains only 0 and 1; decimal input contains digits 0 through 9.
  • Values are unsigned integers below 2²⁵⁶; leading zeros are permitted within the input limit.

Limitations

  • Two’s-complement signed values, floating-point encodings and fractional binary numbers are excluded.
  • The maximum input is 256 binary digits or 78 decimal digits, with an additional value bound.

Useful next steps

To use the converted decimal number in an arithmetic expression, use Scientific Calculator.

If you meant data-size units rather than base-2 digits, use MB to GB.

For physical measurement units rather than number notation, use Unit converter.

References

OpenStax: converting positional number bases — A digit's position determines its power-of-base value. This tool implements unsigned integer conversion with native BigInt, not floating-point encoding or signed two's complement.

See how HandyChest handles units, validation, rounding, and testing, or Report a problem with this calculator.

Good to know

Frequently asked questions

Is binary notation the same as a binary file-size prefix?

No. Binary notation represents a number using base-2 digits. IEC prefixes such as MiB define byte-unit sizes and are handled by the File Size Converter.

Keep going