Work in the computer's own number system: add, subtract, multiply and divide binary values, apply bitwise AND, OR and XOR, flip bits with NOT, and convert between binary, decimal, hexadecimal and octal, with every step shown.
Binary is the base-2 number system: it uses only the digits 0 and 1, and each digit is called a bit. Apart from the smaller alphabet, it behaves exactly like the decimal system you grew up with, so all four arithmetic operations follow the familiar rules, with carries and borrows happening at two instead of ten.
Computers speak binary because hardware can cheaply tell two states apart: current flowing or not, a magnetic domain one way or the other, a transistor open or closed. Building circuits that reliably distinguish ten voltage levels, one per decimal digit, would be far harder and far more fragile. Two states are enough to build every app, photo and song you have ever opened.
Each binary place is a power of 2, just as each decimal place is a power of 10. Reading the example value 1010 from the right, the places are 1, 2, 4 and 8:
1010 = (1 × 8) + (0 × 4) + (1 × 2) + (0 × 1) = 10
only the positions holding a 1 contribute to the value
A larger example: 18 in binary is 10010, because 18 = 16 + 2 = 24 + 21. Going the other way is even quicker: list the powers of 2 (1, 2, 4, 8, 16, 32...), subtract the largest one that fits, and mark a 1 in each position you used. That greedy procedure is exactly how decimal-to-binary conversion works.
Addition works column by column as it does in decimal, except a column overflows at 2 rather than 10:
1010 + 0011 = 1101
10 + 3 = 13 · the 2s column sums 1 + 1, writes 0 and carries 1, and that carry lands in the 4s column, whose 0 + 0 + 1 writes 1
The classic slip is forgetting that a carried 1 joins the next column, turning a 1 + 1 into 1 + 1 + 1. The calculator's breakdown shows the carry row above the sum so you can audit every column.
Bitwise operations compare two numbers position by position rather than treating them as quantities. They are the tools programmers use to pack flags, test permissions and clear fields:
Four bases cover most practical work. Binary is the machine's view. Decimal is the human one. Hexadecimal (base 16, digits 0-9 then A-F) packs four bits into one symbol, which is why memory addresses and color codes like #FF7300 are written in hex: 255 is FF. Octal (base 8) packs three bits per symbol and survives in Unix file permissions such as 755. Because 16 and 8 are powers of 2, converting binary to hex or octal is pure regrouping: split the bits into groups of four (hex) or three (octal) from the right and translate each group.
It means ten. Reading from the right, the places are 1, 2, 4 and 8, and the two 1 bits sit in the 2 and the 8, so 1010 = 8 + 2 = 10. The same digits read as "one thousand and ten" only in decimal; the base is what gives the digits their meaning.
Because binary has no digit for two. When a column sums to two, you write 0 and carry 1 into the next column, exactly as decimal writes 0 and carries 1 when a column sums to ten. The result 10 is the binary numeral for two, not for ten.
OR sets a bit when at least one input has it, including when both do. XOR sets a bit only when exactly one input has it, so the case "both" produces 0 in XOR and 1 in OR. For 1100 and 1010: OR is 1110, XOR is 0110. XOR's self-cancelling property, XORing twice restores the original, makes it the basis of toggles and many checksum schemes.
Either subtract the largest power of 2 that fits, repeatedly, marking a 1 for each power you use, or divide by 2 repeatedly and read the remainders backwards. Both give the same answer: 18 = 16 + 2, so 10010. The calculator's conversion card shows the value in every base so you can check your work instantly.
For readability. One hex digit encodes exactly four bits, so a byte becomes two symbols instead of eight: 11111111 is FF. Nothing is lost, since each hex digit maps back to four bits uniquely, which is why memory dumps, color codes and hardware documentation are all written in hex.
It flips every bit within a fixed width, turning each 0 into 1 and each 1 into 0. In 8 bits, NOT 00001111 is 11110000. The width is essential: within a fixed 8-bit world, NOT x equals 255 minus x, so NOT is a subtraction in disguise, which is why the calculator asks for the width before inverting.
This calculator works with unsigned binary, the plain bit pattern, and has no sign bit. Real hardware handles negatives with a trick called two's complement, which wraps the result of such a subtraction to a huge-looking positive value. Rather than show a misleading number, the calculator reports the situation and lets you swap the operands.
No. Every calculation runs in your browser. Nothing is stored or transmitted.