Category: Developer tools

Bitwise Calculator

System ideaMissing a tool?

Run AND, OR, XOR, NOT and bit shifts on two numbers

Apply AND, OR, XOR, NOT, left shift and right shift to two 32-bit integers, with the result shown in decimal, hexadecimal, octal and binary. Everything runs locally in your browser.

Decimal8Hexadecimal0x8Octal10Binary00001000

Everything on this page is processed in your browser. Nothing is uploaded.

What this tool does

Bitwise operators work on the individual bits of a number rather than its value as a whole, which is why they show up constantly in flags, permissions, color channels and low-level protocols. This calculator takes two whole numbers, applies the operator you pick, and treats the result as an unsigned 32-bit value so the decimal, hex, octal and binary readouts always line up with what a language like JavaScript, C or Python would print.

How to use it

  1. Enter value A, and value B if the operation needs it.
  2. Pick an operation: AND, OR, XOR, NOT, or a left/right shift.
  3. Read the result in decimal, hex, octal and binary.

Privacy

This tool runs entirely in your browser. Your input is never uploaded, stored or shared — closing the tab removes it.

Frequently asked questions

Why is NOT of a small number a huge one?
NOT flips every bit, and this tool displays the result as an unsigned 32-bit number, so NOT of a small positive value comes out close to 4,294,967,295.
How do the shift operators work?
A left shift moves A's bits toward the high end by B positions (multiplying by 2 per shift); a right shift moves them toward the low end (dividing by 2 per shift, discarding remainders).
Is anything uploaded?
No. The numbers and result are computed in your browser.