Decimal to BCD Converter / Tool

DecimalBinaryHexadecimal
Integer1010A
BCD1610

This is a tool that runs in your browser and converts between decimal and BCD (Binary-coded decimal).

  • When you enter a numerical value, it is automatically converted.
  • BCD binary numbers are formatted when out of focus.
  • If you enter a number that is not BCD in binary, an error message will be displayed.

What is BCD?

BCD (Binary-coded decimal) is a decimal number separated by one digit, each of which is represented by a four-digit binary number; BCD matches a decimal number when expressed in hexadecimal.

DECBINHEXBCD (BIN)BCD (HEX)
0000000000 00000
1000110000 00011
2001020000 00102
3001130000 00113
4010040000 01004
5010150000 01015
6011060000 01106
7011170000 01117
8100080000 10008
9100190000 10019
101010A0001 000010
111011B0001 000111
121100C0001 001012
131101D0001 001113
141110E0001 010014
151111F0001 010115

The decimal digits 0 to 9 are the same in hexadecimal, so they will be the same in BCD. 10 and above each digit is converted to a binary number respectively.

1 = 0001
0 = 0000
10 = 0001 0000

Four-digit binary numbers can originally represent decimal numbers from 0 to 15, but in BCD, the numbers from 10 (1010) to 15 (1111) are not used at all. Although this is a wasteful representation method for computers, it is easy for humans to read.