← All text tools

BCD (binary coded decimal) converter

Convert decimal numbers to packed or unpacked binary coded decimal and Excess-3, and read BCD bits back into decimal, with a chart of the 4-bit patterns for 0 to 9.

  • Free
  • No sign-up
  • Works on any device

About BCD (binary coded decimal) converter

Binary coded decimal stores each decimal digit in its own group of four bits using the weights 8, 4, 2 and 1, so 1995 becomes 0001 1001 1001 0101. Packed BCD puts two digits in every byte; unpacked BCD uses a whole byte per digit with zeros in the top half. Excess-3 adds 3 to each digit first. Enter a decimal number to see all three encodings next to the plain binary form, or paste BCD bits to read them back. Groups above 1001 are rejected because they are not valid digits.

How to use BCD (binary coded decimal) converter

  1. Choose whether you are converting from decimal, packed BCD, unpacked BCD or Excess-3.
  2. Type the digits or paste the bits; spaces between groups are ignored.
  3. Compare the encodings, the hex bytes and the pure binary length, and use the chart for single digits.

Why use this tool?

Also known as

Frequently asked questions

Why is BCD longer than ordinary binary?

Each digit takes four bits although only ten of the sixteen patterns are used. 1995 needs 16 bits in BCD but only 11 in plain binary.

What is the difference between packed and unpacked BCD?

Packed BCD holds two digits per byte, one in each nibble. Unpacked BCD keeps one digit in the low nibble of each byte and leaves the high nibble at zero.

Where is BCD still used?

In digital clocks and meters, calculators, real-time clock chips, and financial or mainframe formats where exact decimal digits matter and no binary rounding is wanted.

Is BCD (binary coded decimal) converter free?

Yes. BCD (binary coded decimal) converter on Toolipedia is free to use, with no sign-up and no watermark.

Is it safe to use?

Yes. Everything is worked out in your browser, and nothing you enter is sent to our server.

Does it work on my phone?

Yes. It works in any modern browser on Android and iPhone, as well as on tablets and computers. There's nothing to install.

Do I need an account?

No. Just open the page and use the tool. There's no sign-up and no email needed.

Can I put BCD (binary coded decimal) converter on my own website?

Yes. Use the Embed on your site button under the tool to copy a short piece of code and paste it into your page. It is free, needs no account, and the tool keeps working inside your page.

Related tools