Calculator Uni

Binary Calculator

Convert and calculate between binary, decimal, and hex.

Convert a number

Binary

1011

Decimal

11

Hexadecimal

B

Octal

13

Bits needed

4

Positional notation, base 2

Binary uses only 0 and 1, with each position worth a power of two: 1011₂ = 8 + 0 + 2 + 1 = 11. Converting decimal to binary repeatedly divides by 2 and reads the remainders backward.

Why computers count this way

A transistor is on or off — two states — so base 2 is the natural hardware alphabet. Hex exists as compressed binary: one hex digit is exactly four bits, which is why memory addresses and colors (#FF6B35) are written in it.

Related calculators