Skip to content
ToolsOnDuty - free online tools
Developer Tools

Bitwise Calculator

Compute AND, OR, XOR, NOT and shifts with decimal, hex and binary output.

Free foreverRuns in your browserNo sign-up
Decimal
8
Hex
0x8
Binary
0b1000
Octal
0o10

Values are treated as unsigned 32-bit integers, matching how JavaScript bitwise operators work.

About the Bitwise Calculator

Bitwise operations work on the individual bits of integers and are common in low-level code, flags, permissions and graphics.

This calculator computes AND, OR, XOR, NOT and left or right shifts, accepting input in decimal, hex or binary, and shows the result in all four bases.

Values are treated as unsigned 32-bit integers, matching JavaScript's bitwise operators.

Key features

  • AND, OR, XOR, NOT and shift operations
  • Decimal, hex or binary input
  • Results in decimal, hex, binary and octal
  • Unsigned 32-bit behaviour

How to use

  1. 1Pick the input base and enter value A (and B where needed).
  2. 2Choose the operation.
  3. 3Read and copy the result in any base.

Examples

12 AND 10
Input: 12 & 10
Output: 8

In binary 1100 & 1010 = 1000, which is 8 in decimal.

Frequently asked questions

Are the values signed or unsigned?
Results are shown as unsigned 32-bit integers, which matches how JavaScript's bitwise operators behave after the >>> 0 conversion.
What does the NOT operation use?
NOT only uses value A and inverts every bit; value B is ignored for that operation.
Can I enter hex or binary?
Yes. Choose the input base, and you can also prefix values with 0x or 0b.