TXT · Text & Data tools

Bitwise AND Calculator

Operand A
Operand B
expression

0x000000F0 AND 0x0000000F = 0x00000000

32-bit result

0000 0000 0000 0000 0000 0000 0000 0000

Unsigned decimal
0
Hexadecimal
0x00000000
Octal
0o00000000000
Go to the full Bitwise Calculator

Shareable link

Settings are written to the URL as you change them. Nothing differs from the defaults yet.

Bitwise AND calculator

Apply AND to two integers and read the result as unsigned decimal, hexadecimal, octal, and 32-bit padded binary. Both operands are masked to 32 bits before the operation runs.

Masking bits

Bitwise AND is the standard way to isolate a group of bits. Applying AND with 0xFF forces the upper 24 bits to zero and keeps only the lowest byte. Use that pattern to extract a red, green, or blue channel from a packed colour integer, or to test whether a specific flag bit is set in a register value.

Fixed 32-bit word

This page runs AND on a 32-bit unsigned word. Input accepts decimal, hexadecimal (0xFF), binary (0b10110010), and octal (0o377) automatically. For a different word size or signed output, use the full Bitwise Calculator.

Frequently Asked Questions

Bitwise AND compares two integers bit by bit. It returns 1 only if both bits are 1, and 0 otherwise. It is commonly used to mask bits or check if a specific flag is set.

Yes. A bitwise AND with 1 (e.g. `number & 1`) returns 1 if the number is odd and 0 if it is even, because the lowest bit is always 1 for odd numbers.

The result is always zero. Every bit in the output is forced to 0 regardless of the original value.

Specific bitwise operations

Full Bitwise Calculator tool

Explore Our Tools

Browse all tools