AND Calculator
Enter two numbers and instantly compute their bitwise AND result in decimal, binary, hex, and octal.
Last updated: May 29, 2026
Find this tool useful? Support the project to keep it free!
Buy me a coffeeWhat is AND Calculator?
AND Calculator computes the bitwise AND operation between two integers. It accepts input in decimal, binary, hexadecimal, or octal and returns the result in all four bases. A visual bit-pattern diagram shows how AND is applied bit by bit. The calculator uses unsigned 32-bit arithmetic (operands are coerced with >>> 0), consistent with how JavaScript and most embedded systems handle bitwise operations.
How to Use AND Calculator
Select the input base.
Enter two numbers.
The AND result appears in all four bases below.
Common Use Cases
- Extracting specific bits from a register value using a bitmask.
- Checking whether specific flags are set in a bitfield.
- Computing subnet masks in networking calculations.
- Verifying bitwise AND behavior for hardware register programming.
Example Input and Output
12 AND 10 in decimal.
A: 12 (1100₂)
B: 10 (1010₂)AND: 8 (1000₂)Privacy
All calculations run locally in the browser.

