Evaluate integer AND, OR, XOR, NOT, and shifts with binary and hexadecimal views.
The frame below runs the same code as this page, in the reader's own browser. Nothing is sent to us, and nothing is sent to you.
Pick a dark background and the text and panels follow it, so the frame stays readable on a dark page.
Integer operands are converted to binary words and evaluated with bitwise AND, OR, XOR, and left or right shifts. The result is shown in decimal, binary, and hexadecimal so each changed bit can be inspected.
255, 15
255 AND 15 = 15 Decimal: 15 Binary: 1111 Hex: 0xF Octal: 0o17
Feature flags, packed network headers, and systems programming exercises inspect bit masks.