Tools

Home
Base64 Encode/DecodeString to HexHash GeneratorUTF-8 Encode/DecodeURL Encode/Decode

Hexadecimal to Gray Code Converter

Convert hexadecimal numbers to Gray code (reflected binary) online.

Your data never leaves your browser
INPUT (HEXADECIMAL)0 values
OUTPUT (GRAY CODE)0 values
Ready·Ready

Paste hex values one per line and get the Gray code equivalent back instantly. Each hex digit is expanded to four binary bits, then adjacent bits are XORed to build the reflected binary sequence — handy for rotary encoders, error-resistant signalling, and digital logic homework. And everything runs in your browser. Nothing gets uploaded.

How to Use

Enter hexadecimal values in the left panel, one per line.

Click Convert or use Live mode.

Copy or Download the Gray code result.

Frequently Asked Questions

What is Gray code?

Gray code is a binary system where consecutive values differ by only one bit, reducing errors in rotary encoders and digital systems.

How is hex converted to Gray code?

Hex is first converted to binary, then binary to Gray code. The MSB stays the same, and each subsequent bit is XORed with the previous binary bit.

Can I convert multiple values?

Yes. Enter one hex value per line.

What characters are valid?

Digits 0-9 and letters A-F (case insensitive).

Is my data safe?

Yes. All conversion happens in your browser.

Share: