Skip to main content
Data / Number / Computer Science Tools

Binary to Decimal Converter

Convert a binary number to its exact decimal value, with the place-value calculation shown.

Enter a binary number below - this tool converts it to decimal exactly, showing the place-value breakdown.

For the reverse direction, see the Decimal to Binary Converter - or the Number Base Converter for other bases.

How Binary-to-Decimal Conversion Works

Each binary digit represents a power of 2 based on its position (rightmost = 2^0, next = 2^1, and so on) - the decimal value is the sum of the powers of 2 where a binary digit is 1.

How to Use It

  1. Enter a binary number (digits 0 and 1 only).
  2. The decimal equivalent and place-value breakdown appear instantly.

Limitations

This handles arbitrarily large binary integers accurately using BigInt - there's no binary-point/fraction support, since fractional binary values require a different (and less standardized) interpretation.

Worked Example

Convert 101101 to decimal. Write the power of 2 under each digit, starting with 20 on the right:

Binary digit101101
Place value32168421

Add the place values where the digit is 1: 32 + 8 + 4 + 1 = 45.

Handy Values to Remember

  • 1111 = 15 (the largest 4-bit value, one hex digit)
  • 11111111 = 255 (the largest 8-bit value, one byte - the maximum in an IPv4 octet or an RGB channel)
  • 10000000000 = 1024 (210, the "binary kilo")

Where You Meet Binary

  • Subnet masks: 255.255.255.0 is 24 ones followed by 8 zeros.
  • Bit flags and permissions in code and databases.
  • Computer science exercises and exams.

Convert the other way with Decimal to Binary, or between any bases with the Number Base Converter. Combine bits with the Bitwise Calculator.

Frequently Asked Questions

Multiply each bit by its place value (1, 2, 4, 8, 16...) from right to left and add them. 1011 = 8 + 0 + 2 + 1 = 11.

11111111 in binary, which is 255 in decimal (2^8 - 1).

Negative numbers are usually stored as two's complement, which depends on the bit width. This converter treats input as an unsigned binary value.
Share this tool: