Skip to content
Trending Tools

Bitwise Calculation

Calculate bitwise AND, OR and XOR of two whole numbers.

  • Free
  • No sign-up
  • Runs in your browser
Output

Your result will appear here.

What does Bitwise Calculation do?

Bitwise Calculation works out AND, OR and XOR of two whole numbers — useful for flags, permissions and masks.

What you can use

Two whole numbers.

Example

Input

12 and 10

Output

AND = 8
OR  = 14
XOR = 6

How to use Bitwise Calculation

  1. Step 1

    Enter the two numbers.

  2. Step 2

    Read the AND, OR and XOR results.

  3. 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.

All Trending Tools

Frequently 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.