BroHelp.me

Gray Code To Binary

Decode a reflected binary Gray-code bit string using only 0 and 1 into its equivalent binary word. The output preserves the input width.



NAN

How This Converter Works

Decodes reflected binary Gray bits containing only 0 and 1 to a binary word of the same width.

Formula or rule

The first binary bit equals the first Gray bit; each later binary bit is the previous decoded binary bit XOR the current Gray bit.

Example

Input
111011
Calculation
Cumulative XOR gives 1, 1⊕1=0, 0⊕1=1, 1⊕0=1, 1⊕1=0, 0⊕1=1.
Result
101101
© BroHelp.me 2026 - 2026 is provided without warranty of any kind.