Binary to Decimal Calculator – Base 2 to Base 10 Converter Tool

Binary to Decimal Calculator

Convert any binary number (base 2) to decimal (base 10) by summing each bit multiplied by 2 raised to the power of its position. See the full positional expansion bit by bit, plus the value in hexadecimal and octal, the bit length, and the number of set bits, with optional two's complement signed reading.

🎯Real Binary Value Presets

🔢Binary Input and Options

Enter up to 52 bits. Spaces are ignored, so 1010 1100 is read as 10101100.

Unsigned is the standard reading; signed treats the top bit as negative.

Only used when interpret is set to signed two's complement.

Spacing the displayed bits makes long strings easier to read.

Lists each 1-bit as its positional power of two before summing.

Adds leading zeros so a byte reads as two hex digits.

Decimal value (base 10) 0 unsigned positional sum
Hexadecimal (base 16) 0x0 each digit is 4 bits
Octal (base 8) 0o0 each digit is 3 bits
Bit length and set bits 0 total bits and popcount

🧮Place Value Snapshot

2^0value 1
2^3value 8
2^7value 128
2^10value 1024

📏Powers of Two Place Values

Position nPower 2^nDecimal ValueBit Weight Meaning
02^01Ones place, rightmost bit
12^12Twos place
22^24Fours place
32^38Eights place, high nibble bit
42^416Sixteens place
52^532Thirty-twos place
62^664Sixty-fours place
72^7128Top bit of a byte
82^8256Ninth bit, low bit of high byte
92^9512Tenth bit

📋Common Binary Values Decoded

BinaryExpansionDecimalMeaning
10118 + 0 + 2 + 111Sample number eleven
11118 + 4 + 2 + 115Full 4-bit nibble
100001616Single high bit
10101032 + 8 + 242Alternating pattern
100000164 + 165ASCII capital A
10101010128+32+8+2170Alternating byte
11000000128 + 64192Common IP octet
11111111128+...+1255Maximum byte value

🗃Base Cross-Reference Comparison Grid

BinaryDecimalHexOctalBitsNote
11111Smallest positive bit
102222Base two itself
101010A124Decimal ten, hex A
111115F174Nibble maxes out
10000000128802008Byte sign bit
11111111255FF3778Full byte, all ones
1000000002561004009One past a byte
111111111110233FF17771010-bit maximum
10000000000000003276880001000001616-bit sign bit
111111111111111165535FFFF1777771616-bit maximum

📈Bit Width Ranges and Limits

WidthNameUnsigned MaxSigned Range
4 bitsNibble15-8 to 7
8 bitsByte255-128 to 127
16 bitsShort65535-32768 to 32767
32 bitsInt4294967295-2.15B to 2.15B
10 bitsWord1023-512 to 511
12 bitsADC4095-2048 to 2047

Formula Breakdown

Positional expansiondecimal = sum over every bit of (bit value) × 2^(position), where position is counted from the right starting at 0.
Worked example 10111×2^3 + 0×2^2 + 1×2^1 + 1×2^0 = 8 + 0 + 2 + 1 = 11 in decimal.
Only 1-bits countA 0 bit contributes nothing, so you only add the place values that sit above a 1.
Doubling shortcutLeft to right, start at 0, then for each bit double the running total and add the bit: ((0×2+1)×2+0)×2+1 for 101.
Hex from binaryGroup bits into 4 from the right; each nibble becomes one hex digit, so 1111 is F and 1010 is A.
Octal from binaryGroup bits into 3 from the right; each triple becomes one octal digit from 0 to 7.
Set bits (popcount)The number of 1s equals how many place values were added; 1011 has three set bits.
Two's complementFor a signed reading, the top bit is negative: in 8 bits, 10000000 is -128, and 11111111 is -1.

💡Binary Conversion Tips

Read from the right: Always number positions starting at 0 on the rightmost bit, where the weight is 2^0 = 1. Each step left doubles the weight to 2, 4, 8, 16 and so on. Writing the weights above the bits before you add turns any conversion into simple addition of the columns that hold a 1.
Use byte landmarks: Memorize that 8 ones make 255 and a single 1 in the top byte position is 128. Half of 256 is 128, half again is 64, then 32, 16, 8, 4, 2, 1. Knowing these eight values lets you convert most single-byte binary numbers in your head without ever writing out powers.

Binary (a.k.a. “base-2“) uses nothing but ones and zeroes, and computers speak this language. At least it makes sense once you get used to it. Digital devices of all kinds counts in base two, but we’re so used to decimal that it’s weird for us to see our numbers expressed another way.

There’s no magic here; converting from one to the other is simple arithmetic. And it works both ways: the calculator above does math immediately while displaying entire bit-by-bit breakdown. See? That’s how those switches add up to something you recognize.

How Binary Numbers Work

(It will cross-reference the output as an octal and a hex number, too. This is handy if you’re learning network protocols or debugging code. Binary operates with same positional principles of decimal except using different values. Decimal has powers of ten while binary have powers of two. The columns read right to left. Each one is: 1, 2, 4, 8, 16 respectively. When there’s a one in a column, you include that number. If there’s a zero, you don’t include anything. It’s like flipping a switch. Only what’s flipped on matters towards the overall brightness. The calculator shows this with list of all the powers of two corresponding to any bits that is turned on. It’s helpful because it makes an otherwise abstract string of numbers into basic addition problem.

Binary is hard for many folks to grasp because there’s an attempt to memorize lots of things rather than identify patterns. A nibble consist of four bits. It is a perfect match to a single hexadecimal digit. A byte (the basic element of computer memory) consists of eight bit. And if you know that eight ones = 255, then you can get a quick idea about what something might be worth without having to compute all those powers. So you can group your bits accordingly so that long sequences becomes human-readable. That’s also why hex is often used in programming. It reduces the number of bits being represented by a factor of four while still making it easy to translate back to the underlying bits.

One twist that confuses newcomers is signed numbers. How are negative numbers represented? Turns out, computers do it using something called “two’s complement“, which shifts the meaning of highest bit. For example, if you have an eight-bit number, the high bit now mean minus 128, not plus 128. So 11111111 isn’t 255, it’s minus one. Yep. This is what the calculator does. It has a switch for that kind of reading. Notice how the same series of bits get interpreted differently as a positive number (unsigned) or a negative number (signed)? This is key to understanding why people talk about things being “signed” and “unsigned” integers when they’re dealing with fixed-width data types in Rust or C.

This conversion has all sorts of practical applications. Network engineers decode IP addresses where each octet are a byte. RGB colors used by web designers is frequently specified in hex. Even basic ASCII codes use this base-two system. To give you some instant context for these numbers, the tool loads several popular examples such as typical network address or even the letter A. From there, you can choose to pad the output to fill out the entire byte width and also switch the display to include signed values. It’s a great way to close the gap between the theoretical math and something you actualy use day-to-day, much like how data looks when dumped from memory.

Hand conversion can still be useful to get used to. You can also just double the running total for each bit from left to right. Begin with 0, double it, then add the current bit. Do that for all digits. There’s no need to calculate big exponents. All you’re doing is multiplying and adding small numbers. That lets you see more clearly how binary numbers blow up exponentially. If you look at the powers in those tables of references, they makes it clear. Those are a cheat-sheet until you internalize their patterns.

The bottom line: Binary is simply one way to represent numbers. When you break down how each digit represents a weight based off position. Along with byte and nibble groups, the system makes sense instead of seeming like some strange voodoo. The calculator doesn’t replace the need to understand these concepts; it reinforces them by making the invisible structure visible. If you’re a dev trying to figure out which register stores a piece of data, or if you’re a student studying computer science, breaking it down helps clarify why it’s done this way. You should of seen how easy it is once you practice. It explains a confusing string of zeroes and ones and makes it easy to understand. This demonstrates that even the most advanced digital technologies are built upon basic math principles.

Binary to Decimal Calculator – Base 2 to Base 10 Converter Tool