๐Ÿ’พ Binary to Decimal Converter

Last updated: February 7, 2026

Binary to Decimal Converter

Enter a binary number โ€” see its decimal value and a full place-value breakdown.

Decimal (Base 10)
Place-Value Expansion

Supports up to 53 bits (safe integer range in JavaScript)

Binary to Decimal: What Those 0s and 1s Actually Mean

If you have ever peeked inside a computer science textbook or watched a hacker movie, you have probably seen long strings of 0s and 1s crawling across a screen. That is binary โ€” the language computers speak at their lowest level. But staring at something like 1101011 and trying to figure out what number it represents can feel like reading ancient hieroglyphics. The good news is that the system is surprisingly simple once someone walks you through it, and after this article you will be able to decode binary numbers in your head.

Why Computers Use Binary in the First Place

Computers are, at their core, enormous collections of tiny switches. Each switch is either on or off. There is no in-between. Engineers discovered that representing "on" as 1 and "off" as 0 gave them a perfect, reliable way to store and process information. Two states. Two symbols. That is binary, short for base-2.

Humans, on the other hand, grew up counting with ten fingers, so we naturally invented a base-10 (decimal) system using digits 0 through 9. Neither system is smarter than the other โ€” they are just tuned to different hardware. Binary is perfect for transistors; decimal is perfect for hands.

Understanding Place Value โ€” The Key to Everything

To understand binary, you first need to understand why decimal works the way it does. Think about the number 345. That is not just three digits sitting next to each other randomly. Each position has a weight:

  • The 5 is in the ones place โ†’ 5 ร— 1 = 5
  • The 4 is in the tens place โ†’ 4 ร— 10 = 40
  • The 3 is in the hundreds place โ†’ 3 ร— 100 = 300
  • Add them: 300 + 40 + 5 = 345

Notice the pattern โ€” each position is a power of 10: 10โฐ = 1, 10ยน = 10, 10ยฒ = 100, and so on. The base is 10.

Binary follows the exact same logic, just with a base of 2. Each position represents a power of 2 instead of a power of 10. So the positions, reading right to left, are worth: 1, 2, 4, 8, 16, 32, 64, 128... doubling every time.

Walking Through a Real Example: 1011

Let us convert the binary number 1011 to decimal step by step. Write out the positions from right to left:

  • Rightmost digit (position 0): 1 โ†’ 1 ร— 2โฐ = 1 ร— 1 = 1
  • Position 1: 1 โ†’ 1 ร— 2ยน = 1 ร— 2 = 2
  • Position 2: 0 โ†’ 0 ร— 2ยฒ = 0 ร— 4 = 0
  • Position 3: 1 โ†’ 1 ร— 2ยณ = 1 ร— 8 = 8

Now add all the contributions: 1 + 2 + 0 + 8 = 11.

The binary number 1011 equals decimal 11. If you have ever seen the joke "There are 10 types of people in the world โ€” those who understand binary and those who don't," now you get it: 10 in binary is 2 in decimal.

The Shortcut: Zeros Do Not Contribute

Here is a mental trick that speeds things up enormously. Whenever you see a 0 in any position, its contribution is zero โ€” you can completely ignore it. You only need to add up the place values where a 1 appears. So converting binary is really just a matter of:

  1. Numbering the positions from right to left starting at zero.
  2. Writing down 2 raised to the power of each position that contains a 1.
  3. Adding those numbers together.

Try 100000. Only the leftmost bit is 1, and it is in position 5. So the answer is 2โต = 32. Simple.

Powers of 2 โ€” The Binary Cheat Sheet Worth Memorising

Memorising the first dozen powers of 2 turns binary-to-decimal conversion from arithmetic into a nearly instant recognition task. Here they are:

2โฐ = 1 | 2ยน = 2 | 2ยฒ = 4 | 2ยณ = 8 | 2โด = 16 | 2โต = 32 | 2โถ = 64 | 2โท = 128 | 2โธ = 256 | 2โน = 512 | 2ยนโฐ = 1024

That last one โ€” 1024 โ€” is why computer storage uses units like kilobytes (1024 bytes, not 1000). Binary leaks into everyday life more than most people realise.

A Trickier Example: 11010110

Let us tackle an 8-bit binary number, the kind used to represent a single byte. The number is 11010110. Positions run from 7 (leftmost) down to 0 (rightmost):

  • Position 7: bit 1 โ†’ 2โท = 128
  • Position 6: bit 1 โ†’ 2โถ = 64
  • Position 5: bit 0 โ†’ skip
  • Position 4: bit 1 โ†’ 2โด = 16
  • Position 3: bit 0 โ†’ skip
  • Position 2: bit 1 โ†’ 2ยฒ = 4
  • Position 1: bit 1 โ†’ 2ยน = 2
  • Position 0: bit 0 โ†’ skip

Add: 128 + 64 + 16 + 4 + 2 = 214. An 8-bit byte can hold values from 0 (all zeros) to 255 (all ones โ€” 11111111 = 128+64+32+16+8+4+2+1 = 255).

Where Does Binary Actually Show Up?

Beyond computer science class, binary is hiding everywhere in technology. IP addresses, which identify devices on a network, are actually 32-bit binary numbers written in decimal shorthand. The number 192 in an IP address is just the binary 11000000. Colour values in design tools (like #FF5733) are hexadecimal, which is itself just a compact way of writing groups of four binary digits. File permissions on Linux servers use octal (base 8), which maps cleanly to binary triplets. Understanding binary gives you a window into all of these systems.

Encryption, data compression, image storage, audio encoding โ€” every one of these technologies operates at a binary level. When you understand how bits combine using place values to form numbers, you have cracked the foundational layer of how digital information works.

Common Mistakes and How to Avoid Them

The most common error people make is reading binary from left to right and assuming the leftmost digit is position 0. It is actually the highest-numbered position. Always count your positions starting from the right, from zero. The right side is the low-value end; the left side is the high-value end โ€” just like in decimal where the ones place is on the right and the millions place is far to the left.

Another frequent mistake is confusing the number of bits with the maximum value. A 4-bit number has positions 3, 2, 1, 0 โ€” giving a maximum value of 8+4+2+1 = 15, not 16. An n-bit number can represent 2โฟ different values (from 0 to 2โฟโˆ’1).

Use the Tool โ€” Then Trust Your Intuition

The converter on this page does the work instantly, and it shows you the place-value table so you can see exactly how each bit is contributing to the final answer. Use it to check your own mental calculations. After running through a dozen conversions and following the expansion table, you will start to see patterns. Single-bit changes on the left side produce dramatic jumps in the decimal value; changes on the right side produce small ones. That intuition is exactly what programmers use when they are debugging bit-level code or interpreting memory addresses.

Binary might look mysterious at first glance, but it is just counting โ€” counting in a system built for machines that only know two states. Once that clicks, a whole layer of computing becomes readable to you in a way it never was before.

FAQ

What is binary and why do computers use it?
Binary is a base-2 number system that uses only two digits: 0 and 1. Computers use it because their fundamental components โ€” transistors โ€” are physical switches that are either on (1) or off (0). There is no reliable in-between state, so binary maps perfectly onto the physical reality of computer hardware.
How do I manually convert a binary number to decimal?
Write down the binary number, then number each digit from right to left starting at zero. For every position that contains a 1, calculate 2 raised to that position number. Add all those values together. For example, 1010 = (1ร—8) + (0ร—4) + (1ร—2) + (0ร—1) = 8 + 2 = 10.
What is the largest binary number this converter can handle?
The converter supports up to 53 bits. This limit exists because JavaScript uses 64-bit floating point numbers internally, and integers are represented exactly only up to 2^53 โˆ’ 1 (which equals 9,007,199,254,740,991). Beyond that, floating point rounding would give inaccurate results.
What does the place-value expansion table show?
The table breaks down every bit in your binary input. For each bit, it shows the position number (starting from 0 on the right), the bit value (0 or 1), the power of 2 for that position, and the contribution of that bit to the final decimal total. Bits with a value of 0 contribute nothing; bits with a value of 1 contribute their full power of 2.
Why does an 8-bit byte have a maximum value of 255?
An 8-bit number has positions 7 through 0. When all eight bits are 1, the value is 2^7 + 2^6 + 2^5 + 2^4 + 2^3 + 2^2 + 2^1 + 2^0 = 128+64+32+16+8+4+2+1 = 255. Generally, an n-bit number can hold values from 0 to (2^n โˆ’ 1).
Are leading zeros in binary significant?
No. Leading zeros do not change the value of a binary number, just as writing 007 in decimal still means seven. They are sometimes added deliberately to pad a binary number to a fixed bit-width (like 8 bits for a byte), but mathematically they contribute nothing.