convertimate Number bases

Gray code to decimal

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

170dec

That's 11× as big as a nibble (4 bits), while a byte is 1.5× bigger. 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 Gray to dec

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: 11111111 Gray = 170 dec.

Every unit

Your number in every base

Tables

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
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

Quick answers

Quick answers

How many dec is 1 Gray?
1 Gray is 1 dec.
How many dec is 1010 Gray?
1010 Gray is 12 dec.
How many dec is 11111111 Gray?
11111111 Gray is 170 dec.

The units

About these units

Gray code (Gray)

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

Decimal (dec)

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

Learn more about number units

Keep going

Related conversions