Gray Code Converter
Gray Code Converter is used to perform conversions between Gray Code and other number systems
such as binary, octal, decimal & hex.
All processing happens on the client-side, locally in your browser. No data is uploaded.
Paste input numbers below (1 per line if multiple)
Converted number
Settings
How the input is converted. Each is explained below.
Choose the type of the source number
Choose the type of the target number
History
- 2019-01-05Tool Launched
Background
This is our generic Gray Code Calculator that supports conversion to/from other number bases. You can select between Binary, Decimal, Octal & Hex formats.
Gray Code
Gray Code also known as Reflected Binary Code is an ordering of binary numeral system used for error correction in digital terrestrial television and some cable TV systems.
Binary
Binary is the numeric system of computers. Computers are so dumb they only understand 0s and 1s. Binary numbers have a base of 2.
Gray Code Table
| Decimal | Hex | Binary | Gray Code |
|---|---|---|---|
| 0 | 0 | 0000 | 0000 |
| 1 | 1 | 0001 | 0001 |
| 2 | 2 | 0010 | 0011 |
| 3 | 3 | 0011 | 0010 |
| 4 | 4 | 0100 | 0110 |
| 5 | 5 | 0101 | 0111 |
| 6 | 6 | 0110 | 0101 |
| 7 | 7 | 0111 | 0100 |
| 8 | 8 | 1000 | 1100 |
| 9 | 9 | 1001 | 1101 |
| 10 | a | 1010 | 1111 |
| 11 | b | 1011 | 1110 |
| 12 | c | 1100 | 1010 |
| 13 | d | 1101 | 1011 |
| 14 | e | 1110 | 1001 |
| 15 | f | 1111 | 1000 |