UnQTools
Developer Runs in your browser

Bit Field / Bitmask / Flags Designer & Decoder

Design and decode bit fields / bitmasks visually. Define named single-bit flags and multi-bit fields within a word (8/16/32/64-bit), validate non-overlap, encode field values into a packed integer (bin/hex/dec), decode a packed integer back into named fields, and generate ready-to-compile code for C/C++, Rust bitflags!, Python IntFlag, Go consts and TypeScript. Includes POSIX file-mode, TCP flags, FAT attributes, ARM CPSR and x86 EFLAGS presets. 100% client-side and offline, BigInt-correct at 64-bit.

100% Private Works Offline Instant

Design and decode bit fields / bitmasks visually. Define named single-bit flags and multi-bit fields within a word (8/16/32/64-bit), validate non-overlap, encode field values into a packed integer (bin/hex/dec), decode a packed integer back into named fields, and generate ready-to-compile code for C/C++, Rust bitflags!, Python IntFlag, Go consts and TypeScript. Includes POSIX file-mode, TCP flags, FAT attributes, ARM CPSR and x86 EFLAGS presets. 100% client-side and offline, BigInt-correct at 64-bit. Everything runs locally in your browser — your data never leaves your device.

How to use

  1. Enter your input in the tool above.
  2. Adjust any options to your preference.
  3. Use the Copy or Download buttons to save the result.
  4. Everything happens locally — your data never leaves your browser.