Bytelify

Gray Code to Decimal Converter

Convert Gray code (binary) to decimal, live as you type.

100% private, runs in your browser
50

Gray code is a binary numbering system where consecutive values differ by exactly one bit — used in rotary encoders and error correction to avoid glitches from multiple bits flipping at once. Converts live as you type, entirely in your browser.

Need the opposite? Use Decimal to Gray Code Converter

What is Gray Code to Decimal Converter?

Gray code is a binary numbering system where consecutive values differ by exactly one bit — used in rotary encoders, Karnaugh maps, and error correction, since it avoids the ambiguous in-between readings that regular binary can produce when a sensor catches multiple bits changing mid-transition. Paste a Gray code binary string (e.g. 1011, 0101) and get its decimal value instantly. Multiple entries are supported, so you can validate or decode a whole batch of Gray code readings at once rather than one at a time. Input is validated as you go — invalid bit strings are flagged rather than silently misconverted — and everything runs entirely in your browser, with nothing sent to a server.

FAQ

Gray code and regular binary represent the same range of numbers, but adjacent Gray code values always differ by exactly one bit, which regular binary doesn't guarantee.

Yes — enter several Gray code strings and each is converted to its decimal value independently.

Yes — see the paired Decimal to Gray Code Converter for the reverse direction.