Bitwise Calculator

Work out AND, OR, XOR, NOT and shifts at any width, and see every bit of both operands and the answer.

Operation

Width

0b11001100 AND 0b10101010 = -120 in 8 bits

Result

ReadingValueCopy
Decimal, signed-120
Decimal, unsigned136
Hex0x88
Binary10001000

Bits

ValueBitsUnsignedSigned
A1100 1100204-52
B1010 1010170-86
Result1000 1000136-120

Each value is cut to the width first, then the operation runs.

More in the yard