Bitwise Calculator
Perform bitwise AND, OR, XOR, NOT, left shift, and right shift operations.
bin: 1100 | hex: C
bin: 1010 | hex: A
Results
How to Use
Enter your numbers
Type two numbers in decimal, hex (0x prefix), or binary (0b prefix). Both values are shown in all three representations for verification.
Choose bitwise operation
Select AND (&), OR (|), XOR (^), NOT (~), left shift (<<), or right shift (>>). Results update instantly in decimal, hex, and binary.
Copy results
Click any output format to copy it. Essential for low-level programming, embedded systems, flag manipulation, and performance optimization.
What is Bitwise Calculator?
The bitwise calculator applies AND, OR, XOR, NOT, left shift, and right shift operations to integer inputs and displays both the binary representation of the operands and the final result. It operates at the bit level, making it indispensable for systems programming, embedded development, and understanding how CPUs manipulate data. You can see exactly which bits are set, cleared, or flipped after each operation.
Why use Bitwise Calculator?
Bitwise operations underpin low-level programming tasks like flag manipulation, bitmask creation, and efficient data packing — having a visual calculator that shows the binary layout of each operand makes these tasks far easier to reason about. It removes the mental overhead of tracking individual bits across large integers. Programmers working in C, C++, Rust, or assembly benefit most, but any developer dealing with hardware registers or network protocols will find it useful.
- lockComplete privacy — Your files never leave your device or browser.
- boltInstant processing — No wait times, no server queues, no upload delays.
- money_off100% free — No subscriptions, no credits, no hidden fees.
- person_offNo registration — Start using immediately, no account needed.
- devicesWorks everywhere — Any modern browser on desktop, tablet, or mobile.
How it works
Embedded developers use this tool to build and verify bitmasks for GPIO register configuration on microcontrollers. Game developers use it to pack multiple boolean flags into a single integer for compact state representation. Network programmers use bitwise AND with subnet masks to verify IP address filtering logic.
Pro Tip
Left-shifting an integer by n bits is equivalent to multiplying by 2^n, and right-shifting is equivalent to dividing by 2^n — use this fact to verify shift operations quickly and to understand why bit shifts appear in performance-optimized code.
Frequently Asked Questions
Related Article
Tutorial
How to Use Bitwise Calculator – Step-by-Step Guide
Related Tools
Binary Calculator
Perform arithmetic on binary numbers: addition, subtraction, multiplication, division.
Boolean Logic Calculator
Evaluate boolean logic expressions: AND, OR, XOR, NOT, NAND, NOR, XNOR.
Number Base Converter
Convert numbers between decimal, binary, octal, and hexadecimal instantly.