BroHelp.me

Gray Code To Decimal

Decode a reflected binary Gray-code bit string using only 0 and 1 to its non-negative decimal integer. Spaces are not ignored.



NAN

How This Converter Works

Decodes an untrimmed reflected binary Gray-code bit string containing only 0 and 1 to a non-negative decimal integer.

Formula or rule

Cumulatively XOR Gray bits to recover binary, then parse that binary string in base 2 and format in base 10.

Example

Input
1111
Calculation
Gray 1111 decodes cumulatively to binary 1010; 1010₂ = 10₁₀.
Result
10
© BroHelp.me 2026 - 2026 is provided without warranty of any kind.