Code 39 Check Digit Calculator with detailed example

How to calculate Code 39 barcode check digit character?

Code 39 Barcode Introduction

What is Code 39 barcode?

Barcode Code 39 is a barcode symbology that can encode uppercase letters (A through Z), digits (0 through 9) and a handful of special characters like the $ sign.
You could view the detailed Code 39 barcode introduction at What is Code 39? Code 39 barcode in detail.

Code 39 Check Digit Calculator with example

Code 39 does not include a checksum or check digit by default. For applications requiring enhanced data security, the modulo 43 (MOD43) check character may be used as a check digit.

When a checksum or check digit is included in the Code 39 barcode, the following check character algorithm (MOD43) should be used.

How to calculate Code 39 check digit?

Each data character is assigned a numerical value as shown in Table-1 below

Calculate the sum of the numerical values for all the data characters of a symbol

Divide this sum by 43.

The character whose value (from Table-1) is the remainder from the division in step 3) is used as the check character.

For example, calculate the check character for Code 39 data "CODE 39"

All 7 chars character values are 12, 24, 13, 14, 38, 3 and 9

Sum of the values is 113

Divid by 43: 113/43= 2 with remainder 27

Character value 27 is "R"

The calculated check digit is "R"

The complete Code 39 data with checksum is "CODE 39R"

Table-1: Code 39 numerical character values for modulo 43 check