FREE · DEVELOPER TOOLS
Bitwise Calculator.
Calculate AND, OR, XOR, NOT and shifts on 8, 16, 32 or 64-bit integers, signed or unsigned, with results in decimal, hex and binary.
Loading the calculator…
How to use Bitwise Calculator
Enter A and B in decimal, 0x hex, 0b binary or 0o octal, choose the width and signedness, and the shift amount.
How it works
Values are truncated to the chosen width like a fixed-size register. Arithmetic right shift keeps the sign bit; logical right shift fills with zeros. Exact BigInt arithmetic, so 64-bit values keep every bit.
Example
0b11001010 AND 0x3C = 0x08 (8); NOT 0 is −1 as a signed 8-bit value and 255 unsigned.
Questions about Bitwise Calculator
Is Bitwise Calculator free, and do I need an account?
Yes. This tool is free to use in your browser without an account. Processing takes place on your device.
What are the limits and what should I check?
Integers only, up to 64 bits. Everything is calculated in your browser; nothing you type is uploaded. Review the result before using it in your work.
Is my input sent to a server?
Your input is processed in your browser and is not uploaded by this tool. Files and pasted text are cleared when the page is refreshed. Normal website requests are still required to load the page and its libraries. Read the privacy explanation.