BroHelp.me

Hexadecimal To Gray Code

Encode an unsigned hexadecimal integer as reflected binary Gray code. Spaces and underscores are ignored; redundant leading zero bits are omitted.



NAN

How This Converter Works

Converts an unsigned hexadecimal integer to reflected binary Gray code; spaces and underscores are ignored and redundant leading zero bits are omitted.

Formula or rule

Expand each hex digit to four bits, strip leading zeroes (or retain 0), then form Gray bits as the leading binary bit followed by adjacent-bit XORs.

Example

Input
2D
Calculation
2D₁₆=101101ā‚‚; leading bit and adjacent XORs give 1,1,1,0,1,1.
Result
111011
Ā© BroHelp.me 2026 - 2026 is provided without warranty of any kind.