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.