Bitwise Calculator (AND, OR, XOR, NOT, Shift)
Compute AND, OR, XOR, NOT and bit shifts on two 32-bit integers and see the result in decimal, hex and binary — runs 100% in your browser, no upload.
80x000000080000 0000 0000 0000 0000 0000 0000 1000
Hex and binary are shown as unsigned 32-bit values.
🔒 All bitwise math runs in your browser — nothing is uploaded.
What this bitwise calculator does
Enter two integers as decimal (like 255) or hexadecimal (like 0xFF), pick an operation, and instantly see the result in decimal, hexadecimal and 32-bit binary. It supports AND, OR, XOR, NOT (unary on A), left shift (A << B), arithmetic right shift (A >> B), and logical right shift (A >>> B). Every value is treated as a 32-bit integer using the same semantics as JavaScript, C and most systems languages.
Signed, unsigned and two's complement
The decimal output follows signed 32-bit rules, so operations like NOT 0 return -1. The hex and binary outputs are shown as unsigned 32-bit patterns (via a zero-fill shift), which is why -1 appears as 0xFFFFFFFF and all-ones binary. Arithmetic right shift copies the sign bit, while logical right shift fills with zeros — a common source of bugs, and easy to compare side by side here.
Frequently asked questions
What is the difference between >> and >>> ?
A >> B is an arithmetic right shift that preserves the sign bit, so negative numbers stay negative. A >>> B is a logical right shift that fills the vacated high bits with zeros, always producing an unsigned result.
Can I enter hexadecimal values?
Yes. Type values in decimal (for example 42) or with a 0x prefix for hex (for example 0x2A). You can also use a leading minus sign, such as -5 or -0x10.
Is anything uploaded to a server?
No. All parsing and bitwise math happens locally in your browser with JavaScript. Nothing you type is sent, stored or uploaded anywhere.