Bitwise Calculator
Enter two integers and instantly see every JavaScript bitwise operation with full 32-bit binary breakdown.
Use the Bitwise Calculator
Inputs
Quick examples
Operation
Decimal
32-bit Binary
A (operand)
—
—
B (operand)
—
—
Enter operands on the left to see results
Copied!
Summary
This tool evaluates all seven JavaScript bitwise operators on any two 32-bit signed integers you enter. It displays operand A, operand B, and every result in both decimal and 32-bit binary, making it easy to see exactly which bits flip. Unary NOT operates only on operand A.
How it works
- Enter a value for operand A (required) — any integer from −2 147 483 648 to 2 147 483 647.
- Enter a value for operand B (required for binary operators, ignored for NOT).
- The calculator instantly runs all seven JavaScript bitwise operations.
- Each result row shows the operation symbol, result in decimal, and the full 32-bit binary representation.
- 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-05-23 · Reviewed by Nham Vu