Binary to Decimal Converter

Convert binary numbers into decimal values instantly with place value breakdowns, conversion steps, and number system explanations.

Binary Input

Spaces and underscores are allowed for readability.
Quick examples:

Binary to Decimal Conversion

How Binary-to-Decimal Conversion Works

Every binary number is a positional sum of powers of 2. The position of each digit determines its place value: 1, 2, 4, 8, 16, 32, 64, 128, 256, and so on, doubling at each position from right to left. To find the decimal equivalent of any binary number, multiply each digit by its place value and add the products.

The Place Value Method

Start at the rightmost bit and label each position with its power of 2. Write the bit multiplied by the place value below each column, then add. For 10101010: 128 + 32 + 8 + 2 = 170. This calculator's breakdown table renders this entire process automatically and highlights every contributing 1 bit.

Powers of Two to Memorize

2⁰=1, 2¹=2, 2²=4, 2³=8, 2⁴=16, 2⁵=32, 2⁶=64, 2⁷=128, 2⁸=256, 2⁹=512, 2¹⁰=1,024, 2¹¹=2,048, 2¹²=4,096, 2¹³=8,192, 2¹⁴=16,384, 2¹⁵=32,768, 2¹⁶=65,536. Most 8-bit conversions take seconds once these are in muscle memory.

Six Real-World Uses for Binary-to-Decimal Conversion

1

IPv4 Networking

Each octet of a 32-bit IPv4 address is a binary value 0–255. Network engineers convert binary subnets to decimal dotted form constantly.

2

Microcontroller Registers

ARM, AVR, and ESP datasheets show register layouts in binary. Decoding which bits to set or clear is a daily firmware task.

3

Bitmask Decoding

System-call flags, file permissions, and game-state bitmasks combine multiple boolean values into a single integer. Decoding requires bit-by-bit conversion.

4

Hex Color Codes

The hex color #FFA500 is 11111111 10100101 00000000 in binary — three bytes that decode to 255, 165, 0 in decimal RGB.

5

Hardware Debugging

Logic analyzers and oscilloscope traces capture raw binary. Converting to decimal makes the captured values comparable to source-code literals.

6

CS Education

Every introductory computer science course teaches binary-to-decimal conversion as the foundation for understanding all higher number systems.

Step-by-Step: Converting 11001100 to Decimal

  1. Step 1. Write each bit and its position: 1·2⁷ 1·2⁶ 0·2⁵ 0·2⁴ 1·2³ 1·2² 0·2¹ 0·2⁰
  2. Step 2. Multiply: 128 + 64 + 0 + 0 + 8 + 4 + 0 + 0
  3. Step 3. Sum: 128 + 64 = 192, then 192 + 8 = 200, then 200 + 4 = 204
  4. Result. 11001100₂ = 204₁₀ — the same value as the second operand in our reference calculator screenshot.

Decimal, Hexadecimal, and Octal — Why Three Bases?

Decimal is what humans read. Hex is what programmers prefer because every hex digit is exactly four bits, so reading a hex dump tells you the bit pattern at a glance. Octal grouped three bits per digit and was popular in early Unix file permissions (e.g. chmod 755) but has largely been replaced by hex. The conversion calculator shows all three at once so you can pivot between them as your task requires.

Frequently Asked Questions

Common Questions

How do you convert binary to decimal?

Multiply each binary digit by 2 raised to the power of its position (counting from the right starting at 0), then add the products. For example, 10101010 = 1·2⁷ + 0·2⁶ + 1·2⁵ + 0·2⁴ + 1·2³ + 0·2² + 1·2¹ + 0·2⁰ = 128 + 32 + 8 + 2 = 170. The calculator shows this expansion in an interactive place-value table.

What is the place-value method?

The place-value method assigns each binary digit a power of 2 based on its position. The rightmost bit has weight 2⁰ = 1, the next 2¹ = 2, then 4, 8, 16, 32, 64, 128, and so on. The decimal value of a binary number is the sum of the weights at every position where there is a 1 bit.

What does the binary number 1010 mean in decimal?

1010 in binary equals 10 in decimal: 1·2³ + 0·2² + 1·2¹ + 0·2⁰ = 8 + 0 + 2 + 0 = 10. The two 1 bits at positions 3 and 1 contribute 8 + 2 = 10. The calculator highlights exactly which bits contributed to the final value.

How do you convert a long binary number to decimal?

The same place-value method scales to any length — just keep going. For 16-bit and longer values, the calculator uses BigInt internally, so 32-bit and 64-bit binary strings still convert exactly without precision loss. You can paste a binary string with any number of digits.

Can I convert negative binary numbers to decimal?

Yes. Prefix the binary string with a minus sign (e.g. -1010) and the calculator treats it as a signed decimal value (−10 in this example). For true two's-complement decoding (where the leading bit is the sign), interpret the binary in the appropriate fixed width — the calculator notes the storage width in the analysis panel.

How is binary related to hexadecimal?

Hexadecimal is base-16 and packs exactly 4 binary bits per hex digit. The byte 10101010 splits into nibbles 1010 (A) and 1010 (A), giving the hex value AA. The calculator shows the hex equivalent of every binary input automatically, so you can switch between bases at a glance.

What is the largest binary number you can convert?

There is no fixed upper limit. The calculator parses binary strings into JavaScript BigInt, which supports arbitrary precision, so even thousand-bit binary numbers convert exactly. Useful for cryptography, hashing, and large-integer computer science problems.

Why does the decimal value start changing rapidly as the binary gets longer?

Each additional bit doubles the maximum value you can represent. Adding one digit to an 8-bit number (max 255) jumps the ceiling to 511 (9 bits) and then 1,023 (10 bits). This exponential growth is why doubling memory width quadruples or more the range of representable values.

Is there a shortcut for converting binary to decimal in your head?

Memorize the powers of 2 up to 1,024 (1, 2, 4, 8, 16, 32, 64, 128, 256, 512, 1,024). Then walk the binary number right-to-left and add up the powers where you see a 1. With practice you can convert 8-bit values in seconds.

Where is binary-to-decimal conversion used in real life?

Network engineers convert IP-address octets, firmware developers translate register values from datasheets, students convert encoded data in CS coursework, and game programmers decode bitmask flags. Anywhere a computer talks to humans, somebody is converting binary to decimal.