Dev Tools

Binary

Bitwise Calculator

Perform low-level bitwise operations and convert between binary and decimal.

Data & Analysis

Binary: 101

Binary: 11

About Bitwise Calculator

This Bitwise Calculator performs low-level logic operations on integers. It visualizes binary math including AND, OR, XOR, and bit shifts, helping developers understand how data is manipulated at the machine level.

Master the fundamentals of computer science and debugging. Whether you are working on embedded systems, permission masks, or network protocols, visualizing the binary representation of your data is crucial for accuracy. It bridges the gap between decimal values and bit patterns.

Enter your operands in decimal or hex. Select the operator (e.g., & or |). The tool displays the result along with the full 32-bit binary breakdown of inputs and outputs.

Under the Hood

Bitwise operations are performed using JavaScript's native 32-bit signed integer operators (`&`, `|`, `^`, `<<`, `>>`). Since JS numbers are IEEE 754 doubles, operands are implicitly coerced to 32-bit integers during these operations. We format the output as standard decimal and binary strings (using `radix` 2), showing the raw bit pattern for debugging flags and masks.