← Developer & Data
Developer & Data · runs locally

Fixed-width Bitwise Calculator

Apply AND, OR, XOR, NOT and logical shifts to unsigned 8-, 16-, 32- or 64-bit integers with padded binary and hexadecimal output.

Ready. Your working data stays in this browser.

Why this tool is useful

Use this calculator to verify flags, permissions, register values and protocol fields when JavaScript's signed 32-bit bitwise coercion would otherwise hide the intended fixed-width result.

How it works

Both operands are parsed as bounded BigInt values, the selected operation is applied at the requested width, and every result is masked before decimal, hexadecimal and binary rendering.

Practical example

At 8 bits, 42 AND 15 produces decimal 10, hexadecimal 0x0A and binary 00001010; NOT 42 produces 213 rather than an unbounded negative value.

Validation

The calculation is deterministic and explains validation errors instead of silently changing invalid input.

Privacy boundary

Input and output remain in this tab. Copy and download happen through browser APIs without a server upload.

Result passport

Every run reports its tool mode, timestamp and input/output size so transformed data can be audited.