Binary to Gray Code Converter — Online & Free

Convert standard binary numbers to Gray code representation instantly.

0 digits

Convert Binary bits to Gray Code

This tool converts standard binary numbers into Gray code (also known as reflected binary code). In Gray code, consecutive values differ in only one bit position.

How to Convert

  1. Enter a binary sequence in the input box.
  2. View the generated Gray code output in real-time.
  3. Copy the result.

About this Conversion

Gray code is an ordering of the binary numeral system where two successive values differ in only one bit. The formula to convert binary (B) to Gray (G) is G = B XOR (B >> 1).

Frequently Asked Questions

Why is Gray code used?

It is widely used in digital communications and rotary encoders to prevent errors during state transitions.