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.
Frequently Asked Questions
What does bitwise AND do?
Bitwise AND compares each bit position of two operands. The result bit is 1 only when both corresponding input bits are 1. All other bit positions produce 0.
Why does the result use unsigned 32-bit?
Bitwise operators in JavaScript convert operands to signed 32-bit integers before operating, then >>> 0 converts the result to unsigned 32-bit for display. This matches the behavior in C/C++ unsigned int operations.
Is my data uploaded anywhere?
No. All calculation runs in your browser.
Related Tools
Bitwise Calculator
Calculate all bitwise operations — AND, OR, XOR, NAND, NOR, XNOR — with decimal, binary, hex, and octal input and output.
Number Base Converter
Convert numbers between binary, decimal, hexadecimal, octal, and any custom base — with bit grouping, signed integers, and step-by-step explanation.
JavaScript Tester
Run and test JavaScript code directly in your browser — see console.log output, errors, and execution time instantly.
Hash Generator
Generate MD5, SHA-1, SHA-256, and SHA-512 hashes from text.
JavaScript Validator
Check JavaScript code for syntax errors instantly — get the error type, message, and line number without running the code.
Checksum Calculator
Calculate CRC-32, Adler-32, MD5, SHA-1, SHA-256, SHA-384, and SHA-512 checksums from text, hex, or Base64 input.

