Developer

Bitwise Operations Calculator — AND, OR, XOR, NOT & Shifts

Perform bitwise logic operations (AND, OR, XOR, NOT, Shifts) on binary, octal, decimal, and hexadecimal numbers.

How to use this calculator

👉 Fill in the boxes below and your answer appears instantly — no maths needed, we do it all for you! 🎉

👶

In plain English — what does this do?

🤖 Computers only understand a secret language of 0s and 1s. This tool helps you turn normal words and numbers into that computer language — or turn it back into normal language!

📌 Direct Answer & Summary

A Bitwise Operations Calculator performs logical operations on individual bits of numbers. Unlike arithmetic operations (like addition), bitwise operators work directly on the binary representation of integers, executing operations like AND (&), OR (|), XOR (^), NOT (~), and binary shifts (<<, >>).

Bitwise Output

Decimal (Signed 32-bit)
Binary (32-bit)
Hexadecimal

What is Bitwise Operations Calculator — AND, OR, XOR, NOT & Shifts?

A Bitwise Operations Calculator performs logical operations on individual bits of numbers. Unlike arithmetic operations (like addition), bitwise operators work directly on the binary representation of integers, executing operations like AND (&), OR (|), XOR (^), NOT (~), and binary shifts (<<, >>).

How to use it

  1. 1️⃣ Select your input base (Decimal, Binary, or Hex).
  2. 2️⃣ Enter your first operand (A) and optionally the second operand (B).
  3. 3️⃣ Select the operation (AND, OR, XOR, NOT, Left Shift, Right Shift).
  4. 4️⃣ The result and its binary/hex/decimal representations appear instantly.

Formula

AND (&): 1 if both bits are 1. OR (|): 1 if either bit is 1. XOR (^): 1 if bits differ. NOT (~): Inverts all bits. Left Shift (<<): Shifts bits left, filling with 0. Right Shift (>>): Shifts bits right.

💡 See it in action — a real example

If A = 5 (binary 0101) and B = 3 (binary 0011): A AND B = 1 (binary 0001). A OR B = 7 (binary 0111). A XOR B = 6 (binary 0110).

❓ Common questions

What is bitwise shifting?
Shifting moves bits to the left or right. A left shift by 1 effectively multiplies a number by 2, while a right shift by 1 divides it by 2 (dropping remainders).
🧩

Embed Bitwise Operations Calculator — AND, OR, XOR, NOT & Shifts

Copy & paste this snippet into your website HTML, blog post, or WordPress site to display this interactive calculator widget:

Widget Attribution Link: allcalcihub.com