WebCalculus

Binary to Decimal Converter

Convert between binary, decimal, hexadecimal and octal in real time โ€” type in any field.


Quick Reference

DecimalBinaryHexOctal
0000000
1000111
81000810
101010A12
151111F17
16100001020
25511111111FF377

How Number Base Conversion Works

Binary (base 2) uses only 0s and 1s โ€” each digit represents a power of 2. To convert 1010 to decimal: (1ร—8)+(0ร—4)+(1ร—2)+(0ร—1) = 10. Hexadecimal (base 16) uses digits 0โ€“9 and Aโ€“F, where A=10 and F=15. One hex digit represents exactly 4 binary bits, making it a compact notation used throughout computing for colour codes (#2563EB), memory addresses and machine code. Octal (base 8) uses digits 0โ€“7; each octal digit maps to 3 binary bits. Type any value above to see all four representations update instantly.

Frequently Asked Questions

How do I convert binary to decimal?
Sum the positional values (powers of 2) for every position containing a 1, reading from right to left. Binary 1010 = 8+2 = 10 decimal.
How do I convert decimal to hexadecimal?
Repeatedly divide by 16, writing remainders from bottom to top. Remainders 10โ€“15 become Aโ€“F. Or type your decimal value above for instant conversion.
What is hexadecimal used for in computing?
Hex represents binary values compactly โ€” one hex digit = 4 binary bits. It's used in web colour codes, memory addresses, machine code and low-level debugging.
How do you convert binary to octal?
Group binary digits into sets of 3 from the right (pad with leading zeros if needed). Each group maps directly to one octal digit. Binary 101010 โ†’ groups 101 010 โ†’ octal 52.