Bitwise Calculator

First number
Operation operator
Second number
Binary result
Octal Result
Decimal result
Hexadecimal result

About the Bitwise Calculator

The bitwise calculator is a practical tool designed for developers, computer science students, and digital electronics engineers. It performs bitwise operations and shows the results in different bases in real time.

Multiple Base Support

  • Input support: binary, octal, decimal, and hexadecimal input.
  • Output display: shows results in binary, octal, decimal, and hexadecimal simultaneously.
  • Automatic conversion: handles conversions between bases automatically, no manual calculation needed.

Bitwise Operations

  • AND: performs a logical AND on each bit of the two numbers.
  • OR: performs a logical OR on each bit of the two numbers.
  • XOR: performs a logical exclusive OR on each bit of the two numbers.

How to Use the Bitwise Calculator?

  1. Enter your number in the text box and select its base from the dropdown on the right (binary/octal/decimal/hexadecimal).
  2. Select the desired bitwise operation from the "Operation" dropdown (AND, OR, XOR).
  3. Click the "Calculate" button. The results appear in the four base-specific text boxes.

Tips and Notes

  • Input format: binary contains only 0s and 1s (e.g., 1010); octal contains only 0-7 (e.g., 775); decimal contains only 0-9 (e.g., 123); hexadecimal contains 0-9 and A-F (case-insensitive, e.g., 1A3f).
  • Negative numbers: the tool currently handles unsigned integers; for negative numbers, use their two\'s complement form.
  • Large numbers: JavaScript uses 64-bit floating point for all numbers, but bitwise operations convert the operands to 32-bit signed integers.