# Binary to Decimal Converter

URL: https://hifreetools.com/developer/binary-decimal-converter

> Convert any binary number to its decimal equivalent instantly, with a full positional breakdown showing the value of every bit. Works in both directions — decimal back to binary too.

## Quick answer

A binary number is converted to decimal by multiplying each bit by 2 raised to its positional power (starting at 0 on the right) and summing the results. For example, binary 1010 equals 1×8 + 0×4 + 1×2 + 0×1 = 10 in decimal. Binary uses only the digits 0 and 1 (base-2), while decimal uses digits 0–9 (base-10). This positional notation is the foundation of all digital computing.

## Formula

- D = b_{n-1}×2^{n-1} + b_{n-2}×2^{n-2} + … + b_1×2^1 + b_0×2^0
- Binary = repeated division of D by 2, remainders read in reverse

## Examples

- 1010 binary to decimal: 1010 → 10
- 11111111 binary to decimal: 11111111 → 255
- 101101 binary to decimal: 101101 → 45
- 1000000 binary to decimal: 1000000 → 64

## FAQ

**What is binary (base-2)?**
Binary is a number system that uses only two digits, 0 and 1. Every position represents a power of 2, doubling in value from right to left. Computers use binary because electronic circuits naturally represent two states: off (0) and on (1).

**How do you convert binary to decimal by hand?**
Write out the binary number, then assign each bit a positional power of 2 starting at 0 from the right. Multiply each bit (0 or 1) by its corresponding power of 2, then add all the products together. The sum is the decimal value.

**How do you convert decimal to binary by hand?**
Repeatedly divide the decimal number by 2 and record the remainder (0 or 1) each time. When the quotient reaches 0, read the remainders from bottom to top — that sequence is the binary representation.

**What is the largest decimal number a byte (8 bits) can hold?**
An 8-bit unsigned byte can hold values from 0 to 255. This is because the maximum binary value with 8 bits is 11111111, which equals 2^8 − 1 = 255.

**What is the difference between binary and hexadecimal?**
Binary (base-2) uses digits 0–1; hexadecimal (base-16) uses digits 0–9 and A–F. Hex is often used as a shorthand for binary because each hex digit represents exactly 4 bits (a nibble), making long binary strings much more readable.

**Why do computers use binary instead of decimal?**
Binary maps perfectly onto the two physical states of a transistor — conducting (1) or not conducting (0). Using more states would require distinguishing between multiple voltage levels, which is error-prone and harder to build reliably at scale.


## Sources

- [Electronics Tutorials — Binary to Decimal and How to Convert Binary to Decimal](https://www.electronics-tutorials.ws/binary/bin_2.html)
- [Math is Fun — Binary Number System](https://www.mathsisfun.com/binary-number-system.html)
- [Wikipedia — Binary number](https://en.wikipedia.org/wiki/Binary_number)

Runs in the browser; nothing is uploaded. Cite as: HIFreeTools, "Binary to Decimal Converter", https://hifreetools.com/developer/binary-decimal-converter
