Web Tools
Bitwise Calculator
Perform bitwise operations (AND, OR, XOR, NOT, shifts) and visualize binary representations. Toggle individual bits, view in decimal/hex/octal/binary, and choose 8/16/32-bit widths. Runs entirely in your browser — your data never leaves your machine.
bitwise binary calculator hex bit-manipulation
Published May 29, 2026
All interactive tools run entirely in your browser. Your data never leaves your device.
How It Works
Enter numbers in decimal, hexadecimal (0x), octal (0o), or binary (0b) format and perform bitwise operations. Switch to Bit Display mode to visualize the binary representation and toggle individual bits by clicking them. Results are shown in all four number formats.
Features
- 7 bitwise operations: AND, OR, XOR, NOT, left shift, right shift, unsigned right shift
- Multi-format input: decimal, hex (0x), octal (0o), binary (0b)
- Interactive bit grid: click individual bits to toggle them on/off
- Bit width modes: 8-bit, 16-bit, 32-bit with proper masking
- 4-format output: decimal, hexadecimal, octal, binary (zero-padded)
- Bit statistics: set bit count, leading zeros, trailing zeros
- Bit position labels: MSB to LSB labeled under each bit
- 5 example operations: AND mask, OR flags, XOR toggle, shift, NOT invert
- Private: runs entirely in the browser — no data transmitted
Use Cases
- Understanding bitwise operations for low-level programming
- Debugging permission flags and bitmasks
- Converting between number bases (decimal, hex, octal, binary)
- Exploring bit manipulation for interview preparation
- Working with hardware registers and protocol fields