FertiJourney Dev Tools 🏠← All tools

Bitwise Calculator — AND / OR / XOR / NOT / Shift

Enter two integers and pick an operation to get the result in decimal, binary and hex, with a per-bit visualization highlighting set and differing bits.

Decimal, 0x hex or 0b binary
Decimal, 0x hex or 0b binary
 
Examples 12 & 10 12 | 10 12 ^ 10 ~0 1 << 4 256 >> 2 ~(-1)

Result

Decimal
Hexadecimal
Binary

Binary visualization

set bit (1) bits that differ
Enter integer operands A and (for binary/shift ops) B, choose an operation (AND, OR, XOR, NOT, left shift, right shift) and a bit width (8/16/32). The result is shown in decimal, binary and hexadecimal, plus a per-bit grid where filled cells are set bits and the green tick marks positions where the two operands differ. Inputs accept plain decimal, 0x-prefixed hex or 0b-prefixed binary. Everything runs locally in your browser — nothing is uploaded.