Binary to Gray Code Converter
Enter a binary number.
(
SOLUTION STEPS
So, (
OTHER INFORMATION
👉 Click here to see how we find the binary representation of the Gray code
👉 Click here to see how we find the decimal equivalent of (
In binary to Gray code conversion, we write the most significant bit (the leftmost one) of the binary number to the Gray code directly. To find the remaining bits of the Gray code, we compare the neighboring bits (starting from the leftmost two bits) in the binary number. If the leftmost (n-1)th and nth bits of the binary number are the same, we write 0 to the leftmost nth bit of the Gray code. If they are different, we write 1 to the same location of the Gray code.
Binary to Gray code converter,
You can use the binary to Gray code converter in two ways.
You can enter a base 2 number to the input box and click on the "CONVERT" button. The result and explanations appaer below the calculator.
You can click on the DIE ICON next to the input box. If you use this property, a random binary number is generated and entered to the calculator, automatically. You can see the result and explanations below the calculator. You can create your own examples and practice using this property.
To find the Gray codes corresponding to some other binary numbers you can clear the input box by clicking on the CLEAR button under the input box.
You can copy the generated solution by clicking on the "Copy Text" link, appaers under the solution panel.
Even you can download the solution as an image file with .jpg extension if you click on the "Download Solution" link at the bottom of the solution panel. You can share the downloaded image file.
Binary to Gray Code Converter