Bitwise OR calculator
Apply OR to two integers and read the result as unsigned decimal, hexadecimal, octal, and 32-bit padded binary. Both operands are masked to 32 bits before the operation runs.
Setting flags
Bitwise OR is the standard way to combine binary flags. If you have a state variable, applying OR with a specific flag value forces that bit to 1 without altering the state of any other bits. A second OR with a different flag adds it to the same word without clearing the first.
Fixed 32-bit word
This page runs OR on a 32-bit unsigned word. Input accepts decimal, hexadecimal (0xFF), binary (0b10110010), and octal (0o377) automatically. For a different word size or signed output, use the full Bitwise Calculator.