PB
Available
calculate
lock Free · Private · In-Browser

Bitwise Calculator

Apply AND, OR, XOR, NOT, or shifts to two integers — result in dec, bin, and hex.

Bit-level math made visible

Bitwise operations power flags, masks, permissions, and low-level optimisation, but doing them in your head is hard. Enter two integers, pick an operation, and this shows the result in decimal, binary, and hex side by side.

12 AND 10 is 8, because only the bit both share (1000) survives; switch to XOR and you get 6, the bits they differ on. You can enter values in decimal, or as 0x hex or 0b binary.

Precise and private

It uses JavaScript’s 32-bit bitwise operators, matching the int width of most languages, and computes everything in your browser.

Frequently Asked Questions

Which operations are supported?

AND, OR, XOR, NOT, left shift, and right shift, on 32-bit integers, with the result shown in decimal, binary, and hexadecimal.

Can I enter hex or binary inputs?

Yes — prefix with 0x for hex or 0b for binary, or just type a decimal number.

Why 32-bit?

JavaScript bitwise operators work on 32-bit signed integers, so the tool matches that, which is also the width most languages use for int.

Take it further
All Free Tools

Browse the full set of free, private, in-browser tools.

Learn More arrow_forward