COMPUTER SCIENCE · BASE-2

Binary
Calculator

Add, subtract, multiply, and divide binary numbers. Convert between binary, decimal, hex, and octal instantly with a built-in reference table.

Base 2

Binary

Base 10

Decimal

Base 16

Hex

Binary Arithmetic

$ 1101 + 1010 = 10111 (binary) = 23 (decimal)

📋 Binary Reference Table (0–31)

DecBinaryHexOctDecBinaryHexOct
0000000010000111
2000102230001133
4001004450010155
6001106670011177
801000810901001911
1001010A121101011B13
1201100C141301101D15
1401110E161501111F17
1610000102017100011121
1810010122219100111323
2010100142421101011525
2210110162623101111727
2411000183025110011931
26110101A3227110111B33
28111001C3429111011D35
30111101E3631111111F37

How Binary Numbers Work

Binary is a base-2 number system that represents every value using only two digits, 0 and 1, called bits. It is the foundation of digital computing because a transistor is simplest to build as a two-state switch — on or off — so every number, letter, image, and instruction a computer handles is ultimately stored as a string of these two symbols.

Place Value Example — Binary 1101

BitPosition (2ⁿ)Place ValueContributes
181 × 8 = 8
141 × 4 = 4
020 × 2 = 0
12⁰11 × 1 = 1

Total: 8 + 4 + 0 + 1 = 13 → so binary 1101 equals decimal 13.

Conversion Method

Binary → Decimal: multiply each bit by its power of 2, then sum the resultsDecimal → Binary: divide by 2 repeatedly, record each remainder, read them bottom-to-topBinary → Hex: group bits into sets of 4 from the right, convert each group to one hex digitBinary → Octal: group bits into sets of 3 from the right, convert each group to one octal digit

— FAQ

Frequently Asked Questions