Bitwise Calculation
Calculate bitwise AND, OR and XOR of two whole numbers.
- Free
- No sign-up
- Runs in your browser
Whole numbers of any size; negatives use two’s complement in the chosen bit width. 0x… and 0b… inputs work too.
Your result will appear here.
What does Bitwise Calculation do?
Bitwise Calculation works out AND, OR, XOR, NOT and left/right shifts of two whole numbers — useful for flags, permissions and masks. Results are shown in decimal, hex and binary, in 8, 16, 32 or 64-bit two’s complement or with unlimited precision, so negative numbers work as they do in code.
What you can use
Two whole numbers, negatives allowed (0x… and 0b… work too).
Example
Input
12 and 10
Output
AND = 8 OR = 14 XOR = 6
How to use Bitwise Calculation
- Step 1
Enter the two numbers and pick a bit width.
- Step 2
Press Calculate.
- Step 3
Copy what you need.
Good to know
- 12 is 1100 and 10 is 1010 in binary — line them up to see why AND gives 1000 (8).
Your privacy
Everything happens in this browser tab: what you paste is converted by JavaScript on your device and never sent to our server. Closing the tab clears it. Even so, don’t paste live passwords, API keys or customer records into any website.
Related tools
All Trending ToolsFrequently asked questions
Is Bitwise Calculation free?
Yes. Bitwise Calculation is completely free, with no sign-up, no watermark and no daily limit.
Is the data I paste sent to a server?
No. Conversion runs in JavaScript inside this browser tab and nothing you paste is sent or stored. Even so, avoid pasting live passwords, API keys or private customer data into any website.
Why do I get an error?
Almost always the input isn’t quite valid: a missing comma or quote in JSON, an unclosed tag in XML, or a tab in YAML. The error message shows where parsing stopped — fix that spot, or press “Load example” to compare with input that works.
Does it work on my phone?
Yes. It works in any modern browser on Android, iPhone, tablets and computers — nothing to install.