BCD Converter
Convert between BCD, decimal and hexadecimal.
READY
bcd_converter.tool
READY
Enter a decimal number, e.g. 1234
Decimal value1,234
BCD (hex, packed)0x1234
BCD (binary, nibbles)0001 0010 0011 0100
Binary value (decimal)4,660
// HOW IT WORKS
BCD (binary-coded decimal) stores each decimal digit in its own 4-bit nibble. The tool converts between BCD, decimal and hexadecimal.
Example
Decimal 47 → BCD 0100 0111 (nibbles 4 and 7) → hex 0x47.
Notes
- In BCD the hex digits A–F never occur — each nibble is 0–9.
- PLCs often use BCD for thumbwheel switches and 7-segment displays.