Home > College Algebra > Number System Conversion > Hexadecimal To Gray code conversion example

Hexadecimal To Gray Code converter example ( Enter your problem )

1. Examples





1. (A1)16 = (      ?      )Gray Code

Solution:
(A1)16 = (_______)GrayCode

1. Convert hexadecimal to binary
(A1)16 = (_______)2

A 1
1010 0001

`:.` (A1)16 = (10100001)2


2. Convert binary to GrayCode
Binary code : `10100001`

Method-1: (Binary to Gray code)
`g_7=b_7=1`

`g_6=b_7 o+ b_6=1 o+ 0=1`

`g_5=b_6 o+ b_5=0 o+ 1=1`

`g_4=b_5 o+ b_4=1 o+ 0=1`

`g_3=b_4 o+ b_3=0 o+ 0=0`

`g_2=b_3 o+ b_2=0 o+ 0=0`

`g_1=b_2 o+ b_1=0 o+ 0=0`

`g_0=b_1 o+ b_0=0 o+ 1=1`

`:.` Gray code : `11110001`


Method-2: (Binary to Gray code)
`b_7`
`1`
`b_6`
`0`
`b_5`
`1`
`b_4`
`0`
`b_3`
`0`
`b_2`
`0`
`b_1`
`0`
`b_0`
`1`
Binary code
`b_7`
`1`
`b_7 o+ b_6`
`1 o+ 0`
`b_6 o+ b_5`
`0 o+ 1`
`b_5 o+ b_4`
`1 o+ 0`
`b_4 o+ b_3`
`0 o+ 0`
`b_3 o+ b_2`
`0 o+ 0`
`b_2 o+ b_1`
`0 o+ 0`
`b_1 o+ b_0`
`0 o+ 1`
`darr``darr``darr``darr``darr``darr``darr``darr`
`1`
`g_7`
`1`
`g_6`
`1`
`g_5`
`1`
`g_4`
`0`
`g_3`
`0`
`g_2`
`0`
`g_1`
`1`
`g_0`
Gray code


`:.` Gray code : `11110001`

`:.` (A1)16 = (11110001)GrayCode
2. (123)16 = (      ?      )Gray Code

Solution:
(123)16 = (_______)GrayCode

1. Convert hexadecimal to binary
(123)16 = (_______)2

1 2 3
0001 0010 0011

`:.` (123)16 = (100100011)2


2. Convert binary to GrayCode
Binary code : `100100011`

Method-1: (Binary to Gray code)
`g_8=b_8=1`

`g_7=b_8 o+ b_7=1 o+ 0=1`

`g_6=b_7 o+ b_6=0 o+ 0=0`

`g_5=b_6 o+ b_5=0 o+ 1=1`

`g_4=b_5 o+ b_4=1 o+ 0=1`

`g_3=b_4 o+ b_3=0 o+ 0=0`

`g_2=b_3 o+ b_2=0 o+ 0=0`

`g_1=b_2 o+ b_1=0 o+ 1=1`

`g_0=b_1 o+ b_0=1 o+ 1=0`

`:.` Gray code : `110110010`


Method-2: (Binary to Gray code)
`b_8`
`1`
`b_7`
`0`
`b_6`
`0`
`b_5`
`1`
`b_4`
`0`
`b_3`
`0`
`b_2`
`0`
`b_1`
`1`
`b_0`
`1`
Binary code
`b_8`
`1`
`b_8 o+ b_7`
`1 o+ 0`
`b_7 o+ b_6`
`0 o+ 0`
`b_6 o+ b_5`
`0 o+ 1`
`b_5 o+ b_4`
`1 o+ 0`
`b_4 o+ b_3`
`0 o+ 0`
`b_3 o+ b_2`
`0 o+ 0`
`b_2 o+ b_1`
`0 o+ 1`
`b_1 o+ b_0`
`1 o+ 1`
`darr``darr``darr``darr``darr``darr``darr``darr``darr`
`1`
`g_8`
`1`
`g_7`
`0`
`g_6`
`1`
`g_5`
`1`
`g_4`
`0`
`g_3`
`0`
`g_2`
`1`
`g_1`
`0`
`g_0`
Gray code


`:.` Gray code : `110110010`

`:.` (123)16 = (110110010)GrayCode




This material is intended as a summary. Use your textbook for detail explanation.
Any bug, improvement, feedback then Submit Here


Click On Generate button




Share this solution or page with your friends.
 
 
Copyright © 2026. All rights reserved. Terms, Privacy
 
 

.