Skip to main content

Binary⇄Decimal Converter – Bases 2, 8, 10, 16

Quick answer

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

Value = Σ dᵢ × bⁱ | 1101₂ = 1×8 + 1×4 + 0×2 + 1×1 = 13₁₀

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. 1

    Enter a value and base

    Type a number in any of the four bases

  2. 2

    Expand by place value

    Each digit multiplies its base power, e.g. 1×2³ for the leading bit

  3. 3

    Divide for the reverse trip

    Repeated division collects remainders as new digits

  4. 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?

1×8 + 1×4 + 0×2 + 1×1 = 13.

What is 255 in hex and binary?

FF₁₆ and 11111111₂ — eight lit bits, one byte.

How do I convert decimal 13 to binary?

Divide by 2 repeatedly: 13→6 r1, 6→3 r0, 3→1 r1, 1→0 r1. Read remainders upward: 1101.

What is 2F in hexadecimal?

2×16 + 15 = 47. (Three-digit 2F3 would be 2×256+15×16+3 = 755.)

Why do programmers prefer hex?

Each hex digit is exactly 4 bits, so FF maps cleanly to 11111111 — compact and unambiguous.