Binary Calculator

Perform binary arithmetic and convert between binary, decimal, hex, and octal.

Binary (Base 2)1010
Decimal (Base 10)10
Hexadecimal (Base 16)A
Octal (Base 8)12

Binary Calculator Formula & How It Works

Decimal to Binary: divide by 2, collect remainders | Binary to Decimal: Σ(bit × 2ⁿ)
  • Binary (base 2): digits 0 and 1
  • Each bit position = power of 2 (rightmost = 2⁰=1)
  • 1101₂ = 1×8 + 1×4 + 0×2 + 1×1 = 13₁₀
  • Binary addition: 0+0=0, 0+1=1, 1+1=10 (carry 1)

Binary is the language of computers — all data is stored as 0s and 1s (bits). Converting decimal to binary: divide repeatedly by 2 and read remainders bottom-to-top. Binary arithmetic uses the same rules as decimal but only 0 and 1 are valid — any sum ≥ 2 carries to the next position.

Binary Calculator FAQs

Why do computers use binary?

Electronic circuits have two stable states: ON (1) and OFF (0). Binary maps perfectly to these states, making it naturally suited for transistors. Any number, text, image, or program is ultimately represented as sequences of 1s and 0s.

What is a bit and a byte?

A bit is one binary digit (0 or 1). A byte is 8 bits, representing 2⁸ = 256 possible values (0–255). 1 KB = 1,024 bytes. 1 MB = 1,024 KB. Computer storage uses binary powers (1,024 not 1,000) which is why advertised storage slightly differs from reported capacity.

Related Calculators