Bitwise Calculator
Calculate AND, OR and XOR for two whole numbers.
Result
How to use
- Enter your values in the fields above.
- Press Calculate to see your result instantly.
- Use the Share button to copy a link to your result.
About this calculator
This calculator computes the bitwise AND, OR and XOR of two integers by comparing them bit by bit in binary: AND returns a 1 only where both numbers have a 1 in that position, OR returns a 1 where either number does, and XOR (exclusive or) returns a 1 only where exactly one of the two does. These operations work on the raw binary representation of a number, not its decimal value, which is what makes them behave so differently from ordinary arithmetic.
Programmers use bitwise operations constantly for tasks like setting or checking individual flags packed into a single integer, working with permission bits, manipulating pixel colors in graphics code, and low-level performance tricks in embedded and systems programming. This calculator lets you verify the result of a bitwise expression by hand before or instead of running it in code.
Was this helpful?
Popular calculators
Loan Calculator
Monthly payment, total interest and full amortization schedule.
Percentage Calculator
Percent change, percent of, and ratio calculations.
Discount Calculator
Calculate final price, savings, and discount amount.
BMI Calculator
Body mass index from height and weight (metric or imperial).
Age Calculator
Compute your exact age in years, months and days from a birth date.
Compound Interest Calculator
Calculate the final amount and interest earned with compounding.
All Calculators
No calculators found
Comments (0)