Hex / Bitfield Decoder

Decode any hex register value into its constituent bit fields with a visual bit map. Define custom fields or use presets.

Live

Input

Bit Map (16-bit)

15
14
13
12
11
10
9
8
7
6
5
4
3
2
1
0
1
0
0
0
1
0
1
0
0
1
0
0
0
0
0
0
Hex: 0x8A40
Decimal: 35392
Binary: 1000101001000000

Decoded Fields

FieldBitsDecimalHexBinaryDescription
ENABLE[15]10x11Enable feature
MODE[14:12]00x0000Operating mode
STATUS[11:8]100xA1010Status code
COUNT[7:0]640x4001000000Counter

Example input:

0x8A40 (16-bit) → ENABLE[15]=1, MODE[14:12]=0xA, STATUS[11:8]=0x4, COUNT[7:0]=0x40

Results

Engineering Notes

Bit Numbering Convention

This tool uses the standard convention where bit 0 is the least significant bit (rightmost). For a 32-bit register, bits are numbered 31 (MSB) down to 0 (LSB). This matches most hardware datasheets including JEDEC, PCI-SIG, and NVM Express specifications.

Hex Value Format

Enter hex values with or without the 0x prefix. For example, 0x8A40 and 8A40 are both valid. The tool automatically validates that all characters are valid hexadecimal digits (0-9, A-F, a-f).

Common Mistakes

Frequently Asked Questions