Bitwise Calculator: Exact 8 to 128-bit Integers
Calculate AND, OR, XOR, NOT, shifts and rotations with exact BigInt operands, explicit signed ranges, width masks and aligned binary rows.
Enabling local controls…
Integers and width
Complete decimal or 0x/0b/0o integers; at most 140 characters. Values outside the chosen input range are rejected, never silently truncated. Arithmetic right shift always treats the top bit as sign, regardless of input mode.
Aligned bits and values
Load a sample or enter integers, then calculate.
BigInt preserves 128-bit integers. Results use the selected width mask. Full-width shifts yield zero or sign fill. Rotations reduce the count modulo width, so a full-width rotation preserves the value.
How to use this tool
Set width and input signedness, enter decimal or prefixed integers and choose an operation. Inspect both signed and unsigned results and export the full report.
When not to use it
Inputs outside the selected range are rejected, not silently masked. Arithmetic right shift interprets the top bit as sign. Shift counts are 0 to width; rotations use modulo width.
Read the guide →