๐งBitwise Calculator
Apply AND, OR, XOR, NOT, NAND, NOR, and bit shifts to your numbers with aligned bit-column visualization.
| Format | Result |
|---|---|
| Binary | โ |
| Decimal | โ |
| Hexadecimal | โ |
Free Bitwise Calculator
Working with flags, masks, or low-level code and need to check a bitwise operation? Our free Bitwise Calculator applies AND, OR, XOR, NOT, NAND, NOR, and bit shifts to your numbers instantly โ entered in decimal, hex, or binary.
The result isn't just a number: it's shown as aligned bit columns, so you can see exactly which bits changed and why. Choose an 8, 16, or 32-bit width to see how sign extension and shifting behave at that width, with negative numbers handled correctly via two's complement.
Every result is shown in binary, decimal, and hex together, so you never need to switch tools mid-task. No sign-up, no downloads, no limits. See the About page or the FAQ for more.
About the Bitwise Calculator
Features
Seven operations
AND, OR, XOR, NOT, NAND, NOR, and left/right bit shifts (logical and arithmetic).
Multi-base input
Enter values in decimal, hex (0x), or binary (0b) โ parsed automatically.
Aligned bit-column visualization
Operands and result are shown side by side, bit by bit, grouped in nibbles.
Configurable bit width
Switch between 8, 16, and 32-bit widths to see sign extension and wraparound behavior.
Two's complement handling
Negative numbers are represented correctly at the chosen bit width.
Shift validation
Shift amounts at or beyond the bit width are flagged instead of silently computed.
Frequently Asked Questions
What operations does this support?
AND, OR, XOR, NOT, NAND, NOR, and left/right bit shifts.
Can I enter numbers in hex or binary?
Yes, decimal, hex (0x), and binary (0b) input are all supported.
Is it free?
Completely free, no sign-up or limits.
What does the bit-width setting do?
It sets how many bits NOT and shift operations operate on (8/16/32-bit), affecting sign extension and wraparound.
How are negative numbers handled?
Via two's complement at the selected bit width, explained inline.
Does it show the binary working?
Yes, both operands and the result are shown as aligned bit columns.
What happens if I shift by more than the bit width?
It's flagged with a clear message rather than giving a silently wrong result.
Is the result also shown in decimal and hex?
Yes, all three formats are shown together.
Is my data stored?
No; everything runs in your browser.
Does it work on mobile?
Yes, fully responsive with no overflow.