Bitwise Calculator
Enter two integers to compute AND, OR, XOR, NOT, and bit shifts, shown in decimal, binary, and hexadecimal.
How to Use
Choose base and bit width
Select the base of your input (decimal/hex/binary/octal) and the bit width (8-64 bit) used for the operations.
Enter Value A and Value B
Enter two integers. For shift operations, also specify the shift amount.
Review and copy
AND, OR, XOR, NOT and shift results appear automatically in decimal, hex, and as a bit map. Use the copy button to grab any result.
About the Bitwise Calculator
A free online tool that computes bitwise logical operations (AND, OR, XOR, NOT) and bit shifts (left and right) on two integers at once. Input can be given in decimal, hexadecimal, binary, or octal, and results are shown as decimal and hex numbers plus a visual bit map. All math uses BigInt, so large values are calculated exactly without overflow.
Features
- 7 Bitwise OperationsAND, OR, XOR, NOT A, NOT B, left shift and right shift computed and listed together.
- Multi-base InputEnter values in decimal, hex, binary, or octal; results in decimal, hex, and binary.
- Visual Bit MapEach result is shown bit by bit with highlighting so set bits are easy to spot.
- BigInt, No OverflowPick a bit width from 8 to 64 bit; BigInt math keeps large values exact.
Use Cases
- Designing and verifying flags and bit masks
- Building permission (access) bits
- Network subnet mask calculations
- Debugging embedded register operations
- Learning how bitwise operations work
FAQ
Why does the NOT result change with the bit width?
Do I need a prefix when entering hex or binary?
Is the right shift arithmetic or logical?
Can it handle very large numbers correctly?
Are the numbers I enter sent to a server?
Feedback
Missing a feature, or getting a result that looks wrong? Let us know — we improve our tools based on your feedback.