Gray Code To Hexadecimal

Convert Gray code values to hexadecimal (base 16) numbers.




NAN

Reverse Conversion

Hexadecimal to Gray Code

How This Converter Works

Decodes a binary Gray word to its integer value and displays that integer in uppercase hexadecimal.

Formula or rule

Cumulatively XOR the Gray word into binary, parse the result in base 2, then format in base 16 and uppercase.

Example

Input
111011
Calculation
Gray 111011 decodes to 101101₂ = 45₁₀ = 2D₁₆.
Result
2D