AND Calculator - Bitwise AND Operation

Your details

Enter any non-negative integer in decimal (60), binary with a 0b prefix (0b111100), or hex with a 0x prefix (0x3C).
Enter any non-negative integer in decimal, binary (0b...), or hex (0x...). Must be in the range 0 to 4,294,967,295 (32-bit unsigned).
Controls how many bit positions are shown in the binary outputs and the step panel.
Result (decimal)Non-zero result
12

A AND B expressed as a standard base-10 integer

Result (binary)00001100
Result (hex)0xC
Result (octal)0o14
A in binary00111100
B in binary00001101
A in decimal60
B in decimal13
A (decimal)60
B (decimal)13
A AND B12

60 AND 13 = 12

  • Out of 8 bit positions, 4 are set in A and 3 are set in B.
  • The AND result has 2 set bits - only positions where both A and B had a 1.

Next stepUse the step panel below to trace each bit position. For multi-value AND chains, apply AND repeatedly: (A AND B) AND C.

= Powered by OnlyCalculators