Binary to Decimal Converter

Convert binary to decimal, hexadecimal, and octal — or enter any base and convert to the others. Includes step-by-step working.

⚠ Invalid input for selected base

Binary / Decimal / Hex / Octal reference table

DecimalBinaryHexOctal

How to Convert Binary to Decimal

Each binary digit (bit) represents a power of 2, starting from 2⁰ = 1 on the right. To convert binary to decimal, multiply each bit by its corresponding power of 2 and sum the results. Example: 1101₂ = (1×2³) + (1×2²) + (0×2¹) + (1×2⁰) = 8 + 4 + 0 + 1 = 13₁₀.

How to Convert Decimal to Binary

Divide the decimal number repeatedly by 2 and record the remainder at each step. Read the remainders from bottom to top. Example: 13 ÷ 2 = 6 remainder 1 → 6 ÷ 2 = 3 remainder 0 → 3 ÷ 2 = 1 remainder 1 → 1 ÷ 2 = 0 remainder 1. Reading remainders bottom-up: 1101.

Binary, Decimal, Hexadecimal, and Octal

These are all number bases (positional notation systems). Binary (base-2) uses digits 0-1. Octal (base-8) uses 0-7. Decimal (base-10) uses 0-9. Hexadecimal (base-16) uses 0-9 and A-F (A=10, B=11, C=12, D=13, E=14, F=15). Computers internally use binary; hex is a compact human-readable representation of binary (each hex digit = 4 bits); octal is common in Unix file permissions.

Multiply each bit by 2 raised to its position (right=0), sum all results. 1101 = 8+4+0+1 = 13. The converter above shows the step-by-step working.
1010 binary = 10 decimal. (1×8) + (0×4) + (1×2) + (0×1) = 8+0+2+0 = 10.
A base-2 system using only 0 and 1. It is the foundation of all computer data because electronic circuits represent two states: on (1) and off (0).
Repeatedly divide by 2 and record remainders. Read them bottom-up. 13 → remainders: 1,0,1,1 → read up: 1101.