This hex to binary converter lets you type up to 8 bytes of hexadecimal, see every bit laid out visually, and click any bit to flip between 0 and 1 — the hex value updates instantly. It is built for firmware engineers, embedded developers, and anyone debugging protocol fields, register masks, or memory dumps.
这款十六进制 / 二进制转换器支持最多 8 字节输入,以可视化方式展开每一位,点击即可翻转 0/1,hex 值同步更新。适用于固件开发、嵌入式调试、协议字段与寄存器掩码分析。
Hexadecimal & Binary Basics十六进制与二进制基础
Binary (base-2) uses only 0 and 1. Each position is a power of two. Hexadecimal (base-16) uses 0–9 and A–F; each hex digit compresses exactly 4 bits (one nibble). Two hex digits form one byte (8 bits).
二进制只有 0 和 1,每位代表 2 的幂。十六进制使用 0–9 与 A–F,每个 hex 数字对应 4 个二进制位(一个 nibble),两个 hex 数字组成 1 字节(8 bit)。
Example · 示例
| Hex | 7C |
| Binary | 0111 1100 |
| Decimal | 124 |
7 → 0111 · C → 1100 · grouped as two nibbles for readability
Frequently Asked Questions
- Does bit 0 mean the leftmost or rightmost bit?
- In this tool, bit 0 is the LSB (rightmost within a byte). Bit 7 is the MSB (leftmost). Global bit numbers run from bit 0 (B0 LSB) to bit 63 (B7 MSB) in 8-byte mode.
- bit 0 在左边还是右边?
- 本工具中 bit 0 为最低位(字节内靠右),bit 7 为最高位(靠左)。8 字节模式下全局编号从 bit 0 到 bit 63。
- Why does Clear leave the input box empty when all bytes are zero?
- All-zero bytes are shown as an empty hex field for cleaner editing, but the binary grid still displays the full byte count with every bit set to 0.