Binary to Gray Code
Convert Binary values to reflected Gray code, one value per line, in your browser.
What this binary to gray code does
Gray code changes one bit between consecutive values, which is why encoders and Karnaugh maps use it.
How to use it
Binary to Gray Code: paste the Binary into the box above, and press Run to get the Gray code below.
Worked example
Input:
1010
Output:
1111
Why it runs in your browser
The conversion happens on this page with JavaScript. Your input is not posted to a server, so it works offline after the page loads and nothing is retained anywhere. The page reads Binary and returns Gray code; reloading the page discards both.
Gray code changes one bit between consecutive values, which is why encoders and Karnaugh maps use it.
Convert Binary values to reflected Gray code, one value per line, in your browser.
How to use it
Binary to Gray Code: paste the Binary into the box above, and press Run to get the Gray code below.
Why it runs in your browser
The conversion happens on this page with JavaScript. Your input is not posted to a server, so it works offline after the page loads and nothing is retained anywhere. The page reads Binary and returns Gray code; reloading the page discards both.
What to Expect
Best for
- Converting Binary to Gray code when the data is already on screen.
What this tool keeps
- Your input is not posted to a server, so it works offline after the page loads and nothing is retained anywhere.
Sample input
1010
Sample output
1111
Frequently asked questions
How do I use the binary to gray code?
Binary to Gray Code: paste the Binary into the box above, and press Run to get the Gray code below.
Is my input uploaded?
No. The text is parsed on this page with JavaScript and is never posted to a server.
Is there a size limit?
Yes: 5 MB per run. Larger input is refused with a message rather than freezing the tab.
Build custom tools for your store
Join the SDK program to create useful ecommerce utilities for your store.