Binary⇄Decimal Converter – Bases 2, 8, 10, 16
This calculator converts between binary, octal, decimal and hex: 1101₂=13₁₀=D₁₆.
- Positional expansion 1×8+1×4+0×2+1×1 and division steps shown.
Figures are estimates from this calculator’s standard formula — adjust the inputs in the tool below for your exact number.
How the Base Converter Works
Every positional numeral stores digits times powers of its base. The binary string 1101 breaks into 1×2³ + 1×2² + 0×2¹ + 1×2⁰ = 8+4+0+1 = 13 in decimal. Going the other way, repeated division by 2 collects remainders bottom-up: 13 ÷ 2 = 6 r1, 6 ÷ 2 = 3 r0, 3 ÷ 2 = 1 r1, 1 ÷ 2 = 0 r1, which reads as 1101. The converter performs this for bases 2, 8, 10 and 16 simultaneously, so 13 also shows as 15₈ and D₁₆. Hex digit values beyond 9 map as A=10 through F=15, making 2F₃₁₆ = 2×16+15 = 755. Bit grouping shortcuts appear too: three binary digits per octal digit (11 011 → 33₈... for 27) and four per hex digit (1010 1111 → AF₁₆), which is why programmers read hex as compressed binary.
- 1
Enter a value and base
Type a number in any of the four bases
- 2
Expand by place value
Each digit multiplies its base power, e.g. 1×2³ for the leading bit
- 3
Divide for the reverse trip
Repeated division collects remainders as new digits
- 4
Read all four bases
Binary, octal, decimal and hex update together
Use Cases
Programming & Debugging
Decode color codes like #FF6600 = 255, 102, 0 RGB
Networking
Read subnet masks /24 and addresses in binary
Digital Electronics
Verify truth-table bit patterns like 1011 = decimal 11
Tips
- 1
Hex is binary in groups of 4: F₁₆ = 1111₂
- 2
Octal groups binary in 3s: 777₈ = 111 111 111₂ = 511
- 3
Fractional parts convert by repeated multiplication, not division
Common Mistakes
Reading binary left-to-right as ones-place first; weights grow right-to-left
Treating hex letters casually: F = 15, so 2F = 47 not 2+6
Confusing 1000₂ with one thousand — it equals 8
Forgetting octal digits only run 0–7
FAQs
What is 1101 in binary to decimal?
What is 255 in hex and binary?
How do I convert decimal 13 to binary?
What is 2F in hexadecimal?
Why do programmers prefer hex?
Related tools
Pick another tool to continue your calculation.
Number Base Converter – Any Base 2 to 36
Convert numbers between different base systems.
Number Properties Explorer – Factors & More
Discover properties of any natural number.
Random Number Generator – Range & Dice
Generate random numbers within a specified range.
Catalan Number Calculator – C(n) Counts
Calculate the nth Catalan number.
Mixed Number to Decimal Converter
Convert mixed numbers to decimals and vice versa.
Armstrong Number Checker – Narcissistic Test
Check if a number is an Armstrong number.