Binary to Decimal Converter
Convert binary (base-2) to decimal (base-10) instantly with our free online calculator. Enter any binary sequence to view the exact decimal value, hexadecimal representation, and step-by-step positional expansion formula. Supports arbitrarily long integers via BigInt with 100% client-side privacy.
How to Convert Binary (Base-2) to Decimal (Base-10)
Binary is a base-2 numeral system used by digital computer hardware to process and store information using two discrete electrical states: 0 (off / low voltage) and 1 (on / high voltage). In everyday mathematics and human commerce, we use the decimal (base-10) system, which relies on digits 0 through 9.
Converting binary numbers to decimal uses the positional weighting method. Each digit in a binary string represents an increasing power of 2, starting with 2⁰ (1) at the rightmost position (least significant bit) and doubling with every step to the left (2¹ = 2, 2² = 4, 2³ = 8, 2⁴ = 16, 2⁵ = 32, 2⁶ = 64, 2⁷ = 128, etc.).
The Positional Weighting Formula
To calculate the decimal value of any binary number manually, multiply each bit by 2 raised to its positional index and sum all the products:
Decimal Value = (d_n × 2^n) + ... + (d_2 × 2^2) + (d_1 × 2^1) + (d_0 × 2^0)
Worked Example: Convert 10110101₂ (binary) to Decimal
Position Index: 7 6 5 4 3 2 1 0
Binary Digit: 1 0 1 1 0 1 0 1
Power of 2: 2^7 2^6 2^5 2^4 2^3 2^2 2^1 2^0
Decimal Value: 128 64 32 16 8 4 2 1
Multiplication:
(1 × 128) + (0 × 64) + (1 × 32) + (1 × 16) + (0 × 8) + (1 × 4) + (0 × 2) + (1 × 1)
= 128 + 0 + 32 + 16 + 0 + 4 + 0 + 1
= 181 (Decimal)8-Bit Binary to Decimal Conversion Table (Quick Reference)
Use this reference table for fundamental 8-bit binary byte values, decimal totals, and hexadecimal formats:
| Binary Byte (8-Bit) | Decimal Value | Hexadecimal | Positional Powers Active |
|---|---|---|---|
| 00000000 | 0 | 0x00 | No bits active (0) |
| 00000001 | 1 | 0x01 | 2⁰ = 1 |
| 00000010 | 2 | 0x02 | 2¹ = 2 |
| 00000100 | 4 | 0x04 | 2² = 4 |
| 00001000 | 8 | 0x08 | 2³ = 8 |
| 00010000 | 16 | 0x10 | 2⁴ = 16 |
| 00100000 | 32 | 0x20 | 2⁵ = 32 |
| 01000000 | 64 | 0x40 | 2⁶ = 64 |
| 10000000 | 128 | 0x80 | 2⁷ = 128 |
| 11111111 | 255 | 0xFF | All bits active (128+64+32+16+8+4+2+1) |
Practical Applications in Computer Science
Understanding binary to decimal conversion is essential across computer science and engineering disciplines:
- IPv4 Subnetting & Network Addresses: An IPv4 address such as
192.168.1.1is comprised of four 8-bit octets (11000000.10101000.00000001.00000001). - Memory Addressing & Pointers: Computer processors reference physical RAM addresses via binary offsets, commonly presented in decimal or hexadecimal notation.
- Character Encodings (ASCII & Unicode): Every keyboard character is mapped to a decimal integer that computers read as an 8-bit byte. Explore text conversions with our Text to Binary Converter and ASCII to Binary Converter.
Frequently Asked Questions
Common questions and answers about the Binary to Decimal Converter.
What is the fastest way to convert binary to decimal?
The fastest method is positional multiplication. Start with the rightmost bit (2⁰ = 1) and double the value for each step moving left (2, 4, 8, 16, 32, 64, 128...). Sum all numbers where the bit is 1. Our online converter calculates this instantly in real time as you type.
How does the binary to decimal formula work?
Each bit position n in a binary string represents 2^n. The formula is: Decimal = (d_n × 2^n) + ... + (d_1 × 2^1) + (d_0 × 2^0). For example, 1011 = (1×8) + (0×4) + (1×2) + (1×1) = 11 in decimal.
What is 11111111 in decimal?
11111111 in binary equals 255 in decimal. It represents an 8-bit byte with all bits active (128 + 64 + 32 + 16 + 8 + 4 + 2 + 1 = 255).
Can this tool handle large binary numbers?
Yes! This converter uses JavaScript BigInt, allowing you to convert arbitrarily long binary sequences without precision loss or integer overflow.
What is the difference between signed and unsigned binary?
Unsigned binary treats all bits as positive magnitude (e.g., 8-bit range is 0 to 255). Signed binary (Two's Complement) uses the most significant bit (MSB) as the sign indicator, where 1 indicates a negative number (e.g., 8-bit range is -128 to +127).
Is this binary converter free and private?
Yes, it is 100% free with zero sign-up required. All calculations execute locally inside your browser, meaning your numbers and data are never sent to external servers.