Bitwise Calculator
AND, OR, XOR, NOT and bit shifts on two integers, shown in binary, hex and decimal.
Result
Bit-level operations
Bitwise operators work on the individual bits of integers — the building blocks of flags, permissions, network masks, colour channels and low-level protocols. AND keeps bits set in both values (used to test or mask bits), OR sets bits from either (to combine flags), XOR flips where they differ (toggles and simple checksums), and NOT inverts every bit. Shifts (<<, >>) move bits left or right — a fast multiply or divide by powers of two.
Width matters
Results are shown in binary, decimal and hexadecimal, masked to the chosen width (8/16/32/64-bit), so NOT and shifts behave like they would in a real register of that size rather than producing endless leading ones. Pick the width that matches your data type. Calculations use arbitrary-precision integers, so large 64-bit values stay exact.
These calculators run entirely in your browser — nothing you type is sent anywhere. Results are estimates for planning; validate against your vendor's documentation before you buy or deploy.