Gray Code Converter

Turn a binary number into a Gray code, or a Gray code back into a normal binary number. A Gray code changes only one digit from one number to the next.

1 Fill in the boxes

2 Your answer

Your answer shows here as you type.

How to use the Gray Code Converter

  1. Type a binary number using only 0 and 1.
  2. Choose the direction.
  3. Read the result.

Frequently asked questions

What is a Gray code?

It is a way of writing numbers in binary so that each step to the next number changes only one digit.

Where are Gray codes used?

They are used in some position sensors and digital counters, where a small change should flip only one bit.

Wrote something with AI? Slop Monkey rewrites it so it sounds like you, and keeps your facts.