The Gray Code Converter converts between Gray code (reflected binary) and binary, octal, decimal, and hexadecimal. Gray code changes by only one bit between consecutive values, which is useful in encoders and error detection.
Gray code is a binary encoding where successive values differ by exactly one bit. The tool converts between Gray and binary, and between Gray and octal, decimal, or hex (via binary).
Gray code is a binary encoding where successive values differ by only one bit. It is used in encoders and error correction.
Enter a number in binary (0 and 1), octal, decimal, or hexadecimal. Gray input must be a binary string (0 and 1).
Conversion from decimal/octal/hex supports non-negative integers only. Negative Gray is not standard.
No. All conversion runs in your browser.
Common in rotary encoders, Karnaugh maps, and anywhere single-bit changes between consecutive values are desired.
Ensure input uses only 0 and 1 for Gray. For other bases, use valid digits (e.g. 0-7 for octal).
Use the Gray Code Converter for Gray ↔ binary, decimal, octal, and hex. See also Number Base Converter and Binary Calculator.