convertimate Number bases

Decimal to binary-coded decimal (BCD)

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

0010 0101 0101BCD

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 BCD

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 = 0010 0101 0101 BCD.

Every unit

Your number in every base

Tables

dec to BCD conversion table

dec to BCD conversion table
decBCD
1 dec0001 BCD
2 dec0010 BCD
4 dec0100 BCD
8 dec1000 BCD
10 dec0001 0000 BCD
15 dec0001 0101 BCD
16 dec0001 0110 BCD
31 dec0011 0001 BCD
32 dec0011 0010 BCD
64 dec0110 0100 BCD
100 dec0001 0000 0000 BCD
128 dec0001 0010 1000 BCD
255 dec0010 0101 0101 BCD
256 dec0010 0101 0110 BCD
512 dec0101 0001 0010 BCD
1,000 dec0001 0000 0000 0000 BCD
1,024 dec0001 0000 0010 0100 BCD
BCD to dec conversion table
BCD to dec conversion table
BCDdec
0001 BCD1 dec
0010 BCD2 dec
0100 BCD4 dec
1000 BCD8 dec
0001 0000 BCD10 dec
0001 0101 BCD15 dec
0001 0110 BCD16 dec
0011 0001 BCD31 dec
0011 0010 BCD32 dec
0110 0100 BCD64 dec
0001 0000 0000 BCD100 dec
0001 0010 1000 BCD128 dec
0010 0101 0101 BCD255 dec
0010 0101 0110 BCD256 dec
0101 0001 0010 BCD512 dec
0001 0000 0000 0000 BCD1,000 dec
0001 0000 0010 0100 BCD1,024 dec

Quick answers

Quick answers

How many BCD is 1 dec?
1 dec is 0001 BCD.
How many BCD is 10 dec?
10 dec is 0001 0000 BCD.
How many BCD is 255 dec?
255 dec is 0010 0101 0101 BCD.

The units

About these units

Decimal (dec)

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

Binary-coded decimal (BCD) (BCD)

Each decimal digit in its own four bits: 42 is 0100 0010. Used by clocks and displays.

Learn more about number units

Keep going

Related conversions