Bitwise Calculator

Enter two integers and instantly see every JavaScript bitwise operation with full 32-bit binary breakdown.

Inputs

Quick examples

Operation
Decimal
32-bit Binary
A (operand)
B (operand)
Enter operands on the left to see results
Copied!

Summary

Enter two integers and instantly see every JavaScript bitwise operation with full 32-bit binary breakdown.

How it works

  1. Enter a value for operand A (required) — any integer from −2 147 483 648 to 2 147 483 647.
  2. Enter a value for operand B (required for binary operators, ignored for NOT).
  3. The calculator instantly runs all seven JavaScript bitwise operations.
  4. Each result row shows the operation symbol, result in decimal, and the full 32-bit binary representation.
  5. Operands A and B are also shown in binary for easy visual comparison.

Use cases

  • Debug bitwise flag logic in JavaScript applications.
  • Learn how two's complement representation works for negative integers.
  • Quickly verify shift amounts and mask values during low-level coding.
  • Understand the difference between signed (>>) and unsigned (>>>) right shifts.
  • Generate bitmask results without opening a browser console.
  • Teach binary arithmetic in computer science courses.

Frequently Asked Questions

Last updated: 2026-06-09 · Reviewed by Nham Vu