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.
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
- Enter your input in the tool above.
- Adjust any options to your preference.
- Use the Copy or Download buttons to save the result.
- Everything happens locally — your data never leaves your browser.