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
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
Who Can Use This Calculator?
👉 Try our Bitwise Calculator to perform AND, OR, or XOR on any two numbers instantly.