Skip to content
BR_
Runs in your browser

Register decoder

Decode a 32-bit hardware register into named bit fields, with your own layout or a preset. Runs entirely in the browser.

Type a register value in hexadecimal, describe its fields as name high:low (one per line), and see every field in hex, decimal and binary. Nothing leaves your browser.

Up to 8 hex digits, with or without 0x.

Example: MODE 5:2. A single bit can be written as FLAG 7.

Decoded fields

FieldBitsHexDecimalBinary
EN00x111
TXEN10x111
RXEN20x000
PARITY4:30x3311
STOP50x000
BAUD_DIV15:80x2A4200101010
IRQ_MASK19:160x330011

How it works#

A field name 7:4 is the value (register >> 4) & 0xF. Bit 0 is the least significant bit, and a single bit can be written as name 3 or name 3:3. Overlapping fields are allowed, since some registers alias the same bits in different views.

The decoder is a plain client component, with no server round trip. That is the model for future demos: static page, client-side logic.