Gray Code Converter
Convert between binary and Gray code (reflected binary code)
In Gray code consecutive values differ in exactly one bit, which is why it is used e.g. in absolute rotary encoders. Gray = B XOR (B >> 1).
Only 0 and 1 are accepted; other characters are ignored.
Decimal
Binary
Gray code
Hexadecimal