SheepDev

Bitwise calculator

Bitwise calculator lets you calculate AND, OR, XOR, NOT, and shifts with explicit width and signedness in your browser.

Bitwise calculator

⌂ Inputs and results stay in this browser and are not automatically stored or sent.

Settings
Waiting for input

Input

Settings

Check input base, width, sign and overflow policy. NOT does not use operand B.

Output

Waiting for input

Complete text result

How to use

Choose the operation, bit width, and signedness before entering flag or mask values. Set the shift count for shifts.

NOT and right-shift results depend on width and signedness. Inspect the bit pattern and truncation rules as well as the decimal output.

Examples

42
---
15

Principles and limits

Each input is limited to 1,048,576 bytes, output to 33,554,432 bytes, and processing to 5,000 ms. Input is never silently truncated.

Guides

Related tools

Numbers, units, and bits

Radix converter

Radix converter lets you convert signed big integers between bases 2 and 36 without floating-point loss in your browser.

Numbers, units, and bits

Integer range

Integer range lets you calculate signed and unsigned integer ranges and required bit width in your browser.