Bitwise Calculator

Perform AND, OR, or XOR on two numbers and see the result in binary, decimal, and octal.

Bitwise Calculator

Our Bitwise Calculator applies AND, OR, or XOR to two numbers, bit by bit. Enter each number as decimal, binary, or octal, choose a bit width, and get the result in every format at once.

Bitwise Operations Explained

AND: a result bit is 1 only when both numbers have a 1 in that position; otherwise it's 0.
OR: a result bit is 1 when at least one number has a 1 in that position; otherwise it's 0.
XOR: a result bit is 1 when exactly one of the two numbers has a 1 in that position — if both or neither do, it's 0.

Truth Table

A  B  |  AND  OR  XOR
0  0  |   0    0   0
0  1  |   0    1   1
1  0  |   0    1   1
1  1  |   1    1   0

Example Calculation (8-bit)

A = 12 (00001100), B = 10 (00001010)

AND: 00001100 & 00001010 = 00001000 = 8

OR: 00001100 | 00001010 = 00001110 = 14

XOR: 00001100 ^ 00001010 = 00000110 = 6

Features of Our Bitwise Calculator

✅ Accepts decimal, binary, or octal input
✅ Choose 4, 8, 12, 16-bit, or a custom bit width
✅ Supports AND, OR, and XOR
✅ Shows signed and unsigned decimal, binary, and octal results

Who Can Use This Calculator?

Programmers – For debugging flags, masks, and bitwise logic
Students – For digital logic and computer science coursework
Network & Systems Engineers – For subnet masks and permission flags
Puzzle Solvers – For quick binary logic checks

👉 Try our Bitwise Calculator to perform AND, OR, or XOR on any two numbers instantly.