convertimate Number bases

Decimal to Gray code

Type a value in dec to get it in Gray instantly.

10000000Gray

That's about the same as a byte. That needs 8 bits to store.

What it means

How big is that?

Whole numbers only. Anything after the decimal point is rounded away.

The math

How to convert dec to Gray

Base b: each digit is worth b times the one to its right. Gray code = n XOR (n ÷ 2); BCD writes each decimal digit as four bits.

Example: 255 dec = 10000000 Gray.

Every unit

Your number in every base

Tables

dec to Gray conversion table

dec to Gray conversion table
decGray
1 dec1 Gray
2 dec11 Gray
4 dec110 Gray
8 dec1100 Gray
10 dec1111 Gray
15 dec1000 Gray
16 dec11000 Gray
31 dec10000 Gray
32 dec110000 Gray
64 dec1100000 Gray
100 dec1010110 Gray
128 dec11000000 Gray
255 dec10000000 Gray
256 dec110000000 Gray
512 dec1100000000 Gray
1,000 dec1000011100 Gray
1,024 dec11000000000 Gray
Gray to dec conversion table
Gray to dec conversion table
Graydec
1 Gray1 dec
10 Gray3 dec
100 Gray7 dec
1000 Gray15 dec
1010 Gray12 dec
1111 Gray10 dec
10000 Gray31 dec
11111 Gray21 dec
100000 Gray63 dec
1000000 Gray127 dec
1100100 Gray71 dec
10000000 Gray255 dec
11111111 Gray170 dec
100000000 Gray511 dec
1000000000 Gray1,023 dec
1111101000 Gray688 dec
10000000000 Gray2,047 dec

Quick answers

Quick answers

How many Gray is 1 dec?
1 dec is 1 Gray.
How many Gray is 10 dec?
10 dec is 1111 Gray.
How many Gray is 255 dec?
255 dec is 10000000 Gray.

The units

About these units

Decimal (dec)

Base ten, the everyday counting system, using digits 0 to 9.

Gray code (Gray)

Reflected binary code: the next number changes only one bit. Used by rotary encoders.

Learn more about number units

Keep going

Related conversions