Bitwise Calculator

Perform bitwise operations (AND, OR, XOR, NOT, shifts) on numbers with visual bit representation.

Bit Width:
Input Format:
Bit Visualization
Click a bit to flip it
A
B
&
Result
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
31
30
29
28
27
26
25
24
23
22
21
20
19
18
17
16
15
14
13
12
11
10
9
8
7
6
5
4
3
2
1
0