S3Softs

Binary to Gray Code

Convert a standard binary sequence into reflected binary (Gray Code).

Input binary

Output gray-code

Translation will appear here

The Mathematics Behind It

Conversion Formula & Logic

The Most Significant Bit (MSB) remains unchanged. Each subsequent bit is calculated safely by applying an Exclusive OR (XOR) operation between the current binary bit and the previous binary bit.

Related Tools & Utilities