Bitwise Calculator
AND, OR, XOR, NOT and shifts with bit views.
NOT and shifts are masked to 32 bits. Enter values in the base you picked (digits are validated).
About the Bitwise Calculator
Compute AND, OR, XOR, NOT and left or right shifts on two values entered in hexadecimal, decimal, binary or octal. Every result is displayed in all four bases at once with grouped binary digits, and BigInt math means values beyond the 32-bit range still parse correctly. Digits are validated per base with clear errors.
How to use the Bitwise Calculator
- Enter values A and B in the input base you pick โ hexadecimal by default.
- Choose the Input base: hexadecimal, decimal, binary or octal.
- Set the Shift amount used for the A << n and A >> n rows.
- Read each result row in decimal, hex, binary and octal simultaneously.
Bitwise Calculator FAQ
Why are NOT and shifts shown as 32-bit results?
NOT is infinite-width by definition, so the result is masked to 32 bits to give a stable, conventional answer; A >> n shifts arithmetic-style for negative values.
Can I mix bases between A and B?
No โ both values are read in the single base chosen in the Input base dropdown, so convert one operand first if it uses another base.
What does the error about invalid digits mean?
Each input is validated character by character against the selected base, so a G in hexadecimal input is rejected before any operation runs.