What does the AND Calculator do?
Bitwise AND compares two numbers bit by bit and returns 1 only where both bits are 1. For example 12 AND 10 = 8. Enter two integers in decimal, hex or binary and the calculator lines up every bit and shows the result in all common bases. It is commonly used for masking bits and checking flags.
How to use the AND Calculator
- 1
Enter your values
Fill in number a and number b at the top of the AND Calculator.
- 2
Choose the options
Pick bit width, input format.
- 3
Read the result
The result updates instantly as you type. Copy it or download it as a text file.
When to use it
- •Masking bits and checking flags
- •Verifying hand-calculated truth tables
- •Debugging low-level code that manipulates bits
Why use this and calculator
- 100% free, no signup or login
- Runs locally: your data never leaves the browser
- Instant results with clear error messages
- Works on desktop, tablet and mobile
- Copy to clipboard or download in one click
- No watermarks and no usage limits
Frequently asked questions
What is the truth table for AND?+
0 AND 0 = 0, 0 AND 1 = 0, 1 AND 0 = 0, 1 AND 1 = 1.
Is the AND Calculator free?+
Yes. The AND Calculator is 100% free with no signup, no login, no usage limits and no watermark. It works on desktop and mobile browsers.
Is my data uploaded when I use the AND Calculator?+
No. The AND Calculator runs entirely in your browser with JavaScript. Nothing you paste or upload is sent to our servers, logged or stored.
Last updated by the Imaginex AI team.