Bitwise Operation
Perform AND, OR, XOR, and NOT bitwise operations on values.
About Bitwise Operation Calculator
The Bitwise Operation calculator performs AND (&), OR (|), XOR (^), and NOT (~) bitwise operations on integer values, displaying results in decimal, hexadecimal, and binary formats with a full bit-by-bit breakdown. Bitwise operations are the building blocks of systems programming, cryptography, network engineering, and computer graphics — used for subnet masking, permission bitmasks, hash functions, color blending, and encryption primitives. The visual bit breakdown makes individual flag and mask operations easy to understand and verify.
How to Use
Enter one or two numeric values (in decimal or hex), select the bitwise operation (AND, OR, XOR, or NOT for single-operand), and click Calculate. The results panel shows the operation result in all three bases alongside a bit-level table where each bit position is individually compared, making flag extraction and mask operations completely transparent.
Common Use Cases
- Calculating IPv4 subnet network addresses by applying a subnet mask to an IP address using bitwise AND
- Setting, clearing, and toggling individual feature flags in Unix permission bits, Linux capability bitmasks, or embedded register fields
- Implementing and debugging XOR-based simple encryption and obfuscation operations in security research and CTF challenges
- Debugging application permission systems that encode multiple boolean flags as a single integer using OR-combined bitmasks
- Working through binary arithmetic problems for computer architecture courses, hardware description language (HDL) design, or interview preparation