DIGITAL SYSTEMS CALCULATORS


TOOL: BINARY TO GRAY CODE CONVERTER


BINARY TO GRAY CODE CONVERTER

Enter a binary number.


(1101110)2 = (1011001)GRAY

SOLUTION STEPS

01110111011001

So, (1101110)2 is 1011001 in Gray code.

OTHER INFORMATION

👉 Click here to see how we find the binary representation of the Gray code 1011001.

👉 Click here to see how we find the decimal equivalent of (1101110)2.

Copied to clipboard
Copy Text

INFORMATION

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.

WHAT IS BINARY TO GRAY CODE CONVERTER?

Binary to Gray code converter,

  • Converts the entered binary number to Gray code and
  • Illustrates all solution steps.

HOW TO USE THE BINARY TO GRAY CODE CONVERTER?

You can use the binary to Gray code converter in two ways.

  • USER INPUTS

    Convert button

    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.

  • RANDOM INPUTS

    random buttons

    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.

  • CLEARING THE INPUT BOX

    Clear button

    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.

  • COPYING & DOWNLOADING THE SOLUTION

    • Copy Link

      You can copy the generated solution by clicking on the "Copy Text" link, appaers under the solution panel.

    • Download Link

      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.

 

CALCULATORS

Binary Code Calculators