Skip to main content
>_devtools

Bitmask Calculator

Combine, test, set, clear, and toggle named flags or bit positions in an integer mask.

What it does

Combine or modify named flags and bit positions with bitwise operations. Enter flags and a current mask, then choose combine, test, set, clear, or toggle.

Example

Flags: READ=0, WRITE=1
Action: combine
Mask: 0x3

Limits

  • Input values must be nonnegative integers.
  • Named flags must use unique names.