How to Use the Binary to Gray Code Converter Online
- 1Paste one non-negative integer written in binary.
- 2Check the ordinary binary magnitude if you are comparing against a hand-worked example.
- 3Read the resulting reflected Gray bits. Confirm the expected width before copying them.
- 4Use the matching reverse converter to compare the restored value with the original input.
Input & Output Examples
The magnitude is 42 in decimal, so the displayed result is its gray code representation.
101010111111The leading zero is preserved as part of the four-bit field while the adjacent-bit comparisons give the remaining bits.
0b0_1100101Practical Developer Workflows
- Generate a small Gray sequence at a fixed bit width.
- Compare the Gray code of neighboring binary integers to inspect which position changes.
- Check a binary-to-Gray example by decoding its output to the original width.
Zero Server Uploads & Complete Privacy
Runs 100% in your browser; no data is uploaded to any server.
Let us know directly so our engineering team can fix it.