2026-05-18 · 1 min read
Binary and hex for low-level debugging
When logs show integers in hex, convert bases before guessing bit masks.
binaryhexdebugging
Key takeaways
- Pick the input base explicitly—assuming decimal on hex strings gives wrong results.
- Use decimal for human math; use hex for bitmask alignment.
Reading flag fields
Convert the logged value to binary and align known bit positions from your protocol doc.
When multiple fields pack into one word, work from hex to avoid off-by-one nibble mistakes.
FAQ
Large numbers?
Big integers are supported; double-check sign when pasting from logs.
Float support?
This tool is for integers; use dedicated float tools for IEEE754 inspection.