Decimal to BCD Converter / Tool

Converts between decimal and BCD (Binary-coded decimal).

  • When a number is entered, it is automatically converted.
  • Binary numbers in BCD are formatted when the focus is lost.
  • If you enter a number that is not BCD in binary, an error message will be displayed.
DecimalBinaryHexadecimal
Integer1010A
BCD1610

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.

DEC BIN HEX BCD (BIN) BCD (HEX)
0 0000 0 0000 0000 0
1 0001 1 0000 0001 1
2 0010 2 0000 0010 2
3 0011 3 0000 0011 3
4 0100 4 0000 0100 4
5 0101 5 0000 0101 5
6 0110 6 0000 0110 6
7 0111 7 0000 0111 7
8 1000 8 0000 1000 8
9 1001 9 0000 1001 9
10 1010 A 0001 0000 10
11 1011 B 0001 0001 11
12 1100 C 0001 0010 12
13 1101 D 0001 0011 13
14 1110 E 0001 0100 14
15 1111 F 0001 0101 15

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.


Hirota Yano / Born in 1987. Programmer.
I am publishing a web tool I created as a hobby. It is free of charge, so please feel free to use it.
© HIROTA YANO