Introduction
Computers count with just two digits: 0 and 1. That is called binary, or base 2. People count with ten digits, 0 through 9. That is decimal, or base 10. This binary to decimal calculator changes a binary number into the decimal number it stands for.
Type in bits like 101011 and press Convert. You get the answer right away, plus the math that leads to it. You can use spaces or commas to group bits, add a radix point for binary fractions like 1010.11, or put a minus sign in front.
The tool also shows:
- The place value of every bit, so you can see which powers of 2 you are adding.
- A step-by-step solution you can copy for homework or notes.
- The signed (two's complement) value for 4, 8, 16, 32, or 64 bits.
- The same number written in hexadecimal (base 16), which you can explore further with the Hex Calculator.
- A chart of how much each bit adds to the total.
It is a fast way to check your work and to learn how number systems really work. If you also need to add, subtract, or multiply bit strings, try the Binary Calculator, and for bitwise logic use the XOR Calculator.
How to use our Binary to Decimal Calculator
Type a binary number (base 2), pick a bit width, and the calculator shows the decimal value, the signed value, the hex value, a place value diagram, and step-by-step math.
Binary number (base 2): Enter your bits in the box. You can use 0 and 1, one dot (.) for a fraction, and one minus sign (-) at the front. Spaces or commas help you group bits, like 1010 1100. You can enter up to 63 binary digits. If you need to work with values beyond that range, the Big Number Calculator and the Arbitrary Precision Calculator can help.
Signed interpretation width: Choose how many bits to use for the two's complement (signed) answer. Pick "Auto" to use the bits you typed, or pick 4, 8, 16, 32, or 64-bit. If the first bit is 1, the answer is negative.
Display options: Turn on the switch to add commas to the decimal answer, like 1,024. This only changes how it looks. The Copy button still gives you the plain number.
Convert: Click this to run the conversion. You can also press Enter in the input box.
Clear: Click this to erase the input and all results so you can start over.
Random: Click this to fill the box with a random binary number and convert it right away. This is a fast way to practice.
Binary to Decimal Conversion Explained
Binary is a number system that uses only two digits: 0 and 1. It is called base 2. Decimal is the number system we use every day. It uses ten digits, 0 through 9, so it is called base 10. Converting binary to decimal means finding the everyday number that a string of 0s and 1s stands for.
How Place Value Works in Binary
In decimal, each place is worth ten times more than the place to its right (1, 10, 100, 1000). In binary, each place is worth two times more (1, 2, 4, 8, 16, 32, and so on). The place values are powers of 2. The rightmost digit of a whole number sits in the 20 place, which equals 1. If you want to practice raising numbers to a power on their own, the Exponent Calculator is a good companion.
The Conversion Steps
- Write the binary number and give each digit its power of 2, starting at 20 on the right.
- Multiply each digit by its place value.
- Ignore every place with a 0, since 0 times anything is 0.
- Add up the place values where the digit is 1. That sum is the decimal answer.
Example: 101011 in binary. The place values are 32, 16, 8, 4, 2, and 1. The digits 1 sit in the 32, 8, 2, and 1 places. So 32 + 8 + 2 + 1 = 43 in decimal. You can double-check a long list of place values with the Sum Calculator.
Binary Numbers With a Point
A binary number can have a radix point, like 101.11. Digits to the right of the point use negative powers of 2: 2-1 = 0.5, 2-2 = 0.25, 2-3 = 0.125. So 101.11 equals 4 + 1 + 0.5 + 0.25 = 5.75. To turn that decimal part back into an exact fraction, use the Decimal to Fraction Calculator, and to trim a long result to a set number of digits, use the Rounding Calculator or the Sig Fig Calculator.
Unsigned vs. Two's Complement (Signed)
An unsigned binary number is always zero or positive. Every bit just adds value. Computers also need negative numbers, so they use two's complement. In that method, the leftmost bit is the sign bit. If it is 0, the number is positive and reads the same as unsigned. If it is 1, the number is negative, and you find its value by subtracting 2n, where n is the total number of bits. For example, 8-bit 11111111 is 255 unsigned, but 255 − 256 = −1 as a signed value. This is why the bit width (4, 8, 16, 32, or 64 bits) matters. Wrap-around behavior like this is closely related to remainder math, which you can explore with the Modulo Calculator.
Binary and Hexadecimal
Hexadecimal is base 16 and uses the digits 0–9 plus the letters A–F. Each hex digit stands for exactly 4 binary digits, so long bit strings become short and easy to read. For example, 1010 1100 in binary is AC in hex. Programmers often use hex as a shortcut for binary, and the Hex Calculator handles arithmetic directly in base 16. For very large or very small decimal results, the Scientific Notation Calculator writes them in a compact form.
Why Binary Matters
Computers store everything with switches that are either off (0) or on (1). Text, pictures, music, and video are all saved as binary. Knowing how to convert binary to decimal helps with computer science classes, digital electronics, network work like IP addresses and subnet masks, and reading memory or color codes. Network students often pair this tool with the Subnet Calculator, the CIDR Calculator, the IP Address Calculator, and the IPv4 Calculator, since subnet masks are just binary patterns written in decimal. Error checking on stored and transmitted bits is covered by the CRC Calculator, while file permission bits are read three at a time by the Chmod Calculator. On the hardware side, the Resistor Color Code Calculator and the Ohms Law Calculator are useful when you are building the digital circuits that store these bits.
Handy Powers of 2
20 = 1, 21 = 2, 22 = 4, 23 = 8, 24 = 16, 25 = 32, 26 = 64, 27 = 128, 28 = 256, 29 = 512, 210 = 1024. Learning these makes short binary numbers quick to read in your head. Powers of 2 also show up in data sizes, so they pair naturally with the Data Transfer Calculator, the Bandwidth Calculator, and the Download Time Calculator. If you would like to see how any base-2 exponent behaves as a curve, try the Exponential Growth Calculator or the Log Calculator, which reverses the process by telling you which power of 2 gives a number.