- Free
- No sign-up
- Works on any device
No tool matches your search.
- Free
- No sign-up
- Works on any device
Create a QR code for a link, Wi-Fi, WhatsApp, contact and more, or read one from a photo.
- Free
- No sign-up
- Works on any device
Fill in the details to see your QR code.
PNG for phones, chats and websites. SVG and PDF stay sharp at any size, which is best for printing. Tip: point your phone camera at the preview to test it.
3. Style (optional): colors, dots, logo
Choose a photo or screenshot or drag it here
Works with photos of printed codes, screenshots and image files.
Looking for QR codes…
Gray Code to Binary Converter
Convert binary numbers to Gray code and Gray code back to binary, with the XOR working shown bit by bit and an n-bit sequence table.
- Free
- No sign-up
- Works on any device
About Gray Code to Binary Converter
Gray code, also called reflected binary code, is a way of counting in which only one bit changes between each number and the next. That property makes it useful in rotary encoders, Karnaugh maps and error-free state changes. To go from binary to Gray you XOR each bit with the bit before it; to go back you XOR each Gray bit with the binary bit you just found. This page shows every XOR step for the number you enter, lets you pick 1 to 8 bits for the full sequence, and prints the decimal value of both forms.
How to use Gray Code to Binary Converter
- Choose binary to Gray or Gray to binary and type the bits, for example 1011.
- Read the converted number and the XOR working for each bit position below it.
- Pick a bit width from 1 to 8 to see the whole Gray code sequence beside the binary counting.
Why use this tool?
- Private: everything happens in your browser. Nothing you enter is uploaded.
- Free, with no sign-up, no watermark and no limit on how often you use it.
- Works on phones, tablets and computers: Android, iPhone, Windows, Mac and Linux. Nothing to install.
- Free to embed on your own website, with a ready-made code to copy.
- Available in 10 languages.
Also known as
Frequently asked questions
What is the Gray code for binary 1011?
It is 1110. The first bit is copied, then 1 XOR 0 = 1, 0 XOR 1 = 1 and 1 XOR 1 = 0. The page shows the same working for any number you type.
Why do rotary encoders use Gray code?
If a sensor reads between two positions, a normal binary count could change several bits at once and give a wildly wrong reading. In Gray code only one bit changes, so the error is at most one step.
Is the last Gray code number next to the first one?
Yes. The sequence is cyclic: the last value and the first value also differ by one bit, which is why it is called reflected.
Is Gray Code to Binary Converter free?
Yes. Gray Code to Binary Converter on Toolipedia is free to use, with no sign-up and no watermark.
Is it safe to use?
Yes. Everything is worked out in your browser, and nothing you enter is sent to our server.
Does it work on my phone?
Yes. It works in any modern browser on Android and iPhone, as well as on tablets and computers. There's nothing to install.
Do I need an account?
No. Just open the page and use the tool. There's no sign-up and no email needed.
Can I put Gray Code to Binary Converter on my own website?
Yes. Use the Embed on your site button under the tool to copy a short piece of code and paste it into your page. It is free, needs no account, and the tool keeps working inside your page.