Decimal to BCD and BCD to Decimal
Decode/Encode Decimal to BCD - Binary Coded Decimal


VIDEO guide BCD to decimal at the end



Convert Binary Coded Decimal to DECIMAL
BCD to DEC

To use this online BCD to DEC converter tool, type a BCD value like 1E into the left field below, and then hit the Convert button.
You can convert up to 16 BCD characters (max. value of 7fffffffffffffff) to decimal.

BCD (binary Coded Decimal) number:

Convert DECIMAL to BCD
DEC to BCD

To use this online BCD to decimal converter tool, type a decimal value like 999 into the field below, and then hit the Convert button. You can convert up to 10 decimal characters (max. value of 9999999999999999) to BCD.)

DEC (decimal) number:





How to convert from BCD to decimal

A regular decimal number is the sum of the digits multiplied with power of 10.

137 in base 10 is equal to each digit multiplied with its corresponding power of 10:

13710 = 1×102+3×101+7×100 = 100+30+7

BCD numbers are read the same way, but each digit counts power of 16 instead of power of 10.

For BCD number with n digits:

dn-1 ... d3 d2 d1 d0

Multiply each digit of the BCD number with its corresponding power of 16 and sum:

decimal = dn-1×16n-1+...+d3×163+d2×162+d1×161+d0×160

Example #1

3B in base 16 is equal to each digit multiplied with its corresponding 16n:

3B16 = 3×161+11×160 = 48+11 = 5910

Example #2

E7A9 in base 16 is equal to each digit multiplied with its corresponding 16n:

E7A916 = 14×163+7×162+10×161+9×160 = 57344+1792+160+9 = 5930510

Example #3

0.8 in base 16:

0.816 = 0×160+8×16-1 = 0+0.5 = 0.510

Decimal BCD Conversion Chart

Decimal BCD
0 0
1 1
2 2
3 3
4 4
5 5
6 6
7 7
8 8
9 9
10 A
11 B
12 C
13 D
14 E
15 F




Decimal System

Decimal number system is the most commonly used and the most familiar one to the general public. It is also known as Base 10 numbering system since it is based on 10 following symbols: 0, 1, 2, 3, 4, 5, 6, 7, 8 and 9. In decimal system, every digit has its own position as well as the decimal point. I.e. the number 356.74 has 4 in the Hundredths position, 7 in the Tenths position, 6 in the Units position, 5 in the Tens position, and 3 in the Hundreds position. Decimal number system is also one of the oldest known numeral system, which is historically related to Hindu-Arabic numeral system.

Hex System

Hex, or hexadecimal, is a number system of base 16. This number system is especially interesting because in our casually used decimal system we have only 10 digits to represent numbers. As hex system has 16 digits, the extra needed 6 digits are represented by the first 6 letters of English alphabet. Hence, hex digits are 0,1,2,3,4,5,6,7,8 and 9 A, B, C, D, E, F. This number system is the most commonly used in mathematics and information technologies. I.e. in html programming colors can be represented by a 6-digit hexadecimal number: FFFFFF represents white, 000000 represents black, and so on.

Decimal to hex conversion examples

  • (79)10 = (4F)16
  • (120)10 = (78)16
  • (1728)10 = (6C0)16

Ask a question, get advice and help

   

Read related articles - Iso8583


EMV explained for programmers


EMV explained for programmers

Are you ready to start or need help?


Ready to start your next project with us? Give us a call or send us an email and we will get back to you as soon as possible!

Get a free quote, Ask for details, Get guidance


Contact us

Download and Use the software yourself


Download software

Follow a getting started guide to deploy and use the software


Get started