Binary & Hex Calculator
Science & Tech
Does arithmetic and bitwise operations in binary (BIN), octal (OCT), decimal (DEC) and hexadecimal (HEX), and shows the result in all four bases.
| Operation | Example (decimal) | Result |
|---|---|---|
| AND | 12 AND 10 (1100 & 1010) | 8 (1000) |
| OR | 12 OR 10 | 14 (1110) |
| XOR | 12 XOR 10 | 6 (0110) |
| << | 5 << 2 | 20 |
| >> | 20 >> 2 | 5 |
Shifting left by one bit multiplies by 2; shifting right divides by 2. In HEX, A-F stand for 10-15, so FF = 255.
Calculations use 64-bit integers; overflow or division by zero shows no result.
Results are for information only. For tax, salary, loan or health decisions, check official sources or ask a professional.