Tools

Bit playground

Toggle seven bits and watch the character change: flip case, apply Ctrl, find the digit hiding in 0x30–0x39.

Toggling bits needs JavaScript. This shows A, 0x41.

Capital letter A

0x41 · 65

Open in the table

Presets

C / JS
c ^ 0x20
Python
chr(ord(ch) ^ 0x20)

0x41 ^ 0x20 = 0x61

C / JS
c & ~0x40
Python
chr(ord(ch) & ~0x40)

0x41 & ~0x40 = 0x01

C / JS
c & 0x0F
Python
ord(ch) & 0x0F

0x41 & 0x0F = 0x01

Digit value works on 0–9 (0x30–0x39): the low four bits are the digit.