Bitwise Calculator
Compute AND, OR, XOR, NOT and shifts with decimal, hex and binary output.
Inspect bitwise operations across four number bases
Calculate AND, OR, XOR, NOT and unsigned shifts with explicit JavaScript-compatible 32-bit semantics.
AND
operation
10
input base
8
decimal result
Operands and operation
Unsigned 32-bit80x80b10000o10Values are treated as unsigned 32-bit integers, matching how JavaScript bitwise operators work.
About the Bitwise Calculator
Bitwise operations work on the individual bits of integers and are common in low-level code, flags, permissions and graphics.
This calculator computes AND, OR, XOR, NOT and left or right shifts, accepting input in decimal, hex or binary, and shows the result in all four bases.
Values are treated as unsigned 32-bit integers, matching JavaScript's bitwise operators.
Key features
- AND, OR, XOR, NOT and shift operations
- Decimal, hex or binary input
- Results in decimal, hex, binary and octal
- Unsigned 32-bit behaviour
How to use
- 1Pick the input base and enter value A (and B where needed).
- 2Choose the operation.
- 3Read and copy the result in any base.
Examples
12 & 108In binary 1100 & 1010 = 1000, which is 8 in decimal.
Frequently asked questions
- Are the values signed or unsigned?
- Results are shown as unsigned 32-bit integers, which matches how JavaScript's bitwise operators behave after the >>> 0 conversion.
- What does the NOT operation use?
- NOT only uses value A and inverts every bit; value B is ignored for that operation.
- Can I enter hex or binary?
- Yes. Choose the input base, and you can also prefix values with 0x or 0b.
Continue your workflow
Open a related tool to prepare your files or refine the finished result.
- Featured toolDeveloper ToolsNumber Base Converter
Convert numbers between binary, octal, decimal and hexadecimal.
Open tool - ConvertersHex to Text Converter
Convert text to hex bytes and hex back to text.
Open tool - Featured toolDeveloper ToolsWCAG Color Contrast Checker
Check colour contrast ratio against WCAG AA and AAA accessibility levels.
Open tool
