A GUI tool for visualising and editing a 32-bit unsigned integer as individual bits, a hexadecimal field, and a decimal field.
- Python 3.8+
- Standard library only (tkinter, sys) — no third-party dependencies
python hex2bin.py-
Bit-level editing — 32 individual checkboxes (bits 31..0) arranged in four rows of eight
-
HEX input — enter a value with or without the
0xprefix and press Enter -
DEC input — enter a decimal value and press Enter
-
Arithmetic / logic buttons:
Button Operation +Increment by 1 (wraps at 2³²) -Decrement by 1 (wraps at 0) <<Logical shift left by 1 bit (MSB discarded) >>Logical shift right by 1 bit ~Bitwise inversion of all 32 bits -
All controls stay synchronised on every change
| Version | Date | Changes |
|---|---|---|
| 1.0.0 | April 2026 | Initial release |
Document version: 1.0
