Skip to content
NMSnabbit.

Hexadecimal AND Calculator

Bitwise AND two hexadecimal values and get the hex result.

Developer Tools Runs in your browser

What does a hexadecimal AND calculator do?

Bitwise AND keeps only the bits set in both operands, which is exactly what masking is: 0xFF AND 0x0F = 0x0F, isolating the low nibble. Enter two hex values, with or without 0x, and the calculator parses them, ANDs the bits and prints the hex result. Typical jobs are testing flag bits in a register and applying a subnet mask to an address.

How to use the Hex AND Calculator

  1. 1 Put the first operand in field A.
  2. 2 Put the mask or second operand in field B.
  3. 3 The AND result updates in hex as you type.
  4. 4 Grab it with the copy button.

What you can use it for

  • Isolating flag bits with a mask.
  • Extracting the network part of an address.
  • Finding the bits two values have in common.
  • Working through bitwise homework examples.

Frequently asked questions

What does a bitwise AND return?
A bit survives only where both inputs have it set. 0xCC is 11001100 and 0x55 is 01010101, so the AND is 01000100, printed as 0x44.
Why use AND on hex values?
Masking. AND an address with 0xFFFFFF00 to get its /24 network, or AND a status register with a flag constant to test whether that flag is on.
Do I need to type the 0x prefix?
Optional. FF, 0xFF and ff parse identically. If either field holds something that is not hex, the result area stays empty.

Related tools

More Developer Tools

More tools like this:

All Developer Tools