Barcode tools · industrial labels

Code 39 generator.

Create the classic alphanumeric barcode used on inventory, laboratory and industrial labels, with the character-set check done before encoding.

Advertisement

Code 39 data

Numbers, A–Z, spaces and - . $ / + % are supported. Lowercase is converted to uppercase.

Barcode

Enter data and generate.

Advertisement

Code 39 basics

Code 39 is deliberately simple and widely supported by industrial scanners. It is less compact than Code 128, and the symbol does not make your identifier a GS1-registered product number. Confirm the receiving system's expected start/stop and checksum settings before a production run.

Worked example: CODE39 and its optional check character

Code 39 characters have values 0 to 42: digits 0–9, letters A–Z as 10–35, then - . space $ / + % as 36 to 42. The optional modulo-43 check character is the remainder of the sum of the values divided by 43. For CODE39: C = 12, O = 24, D = 13, E = 14, 3 = 3 and 9 = 9, so the sum is 75. 75 mod 43 = 32, and value 32 is the letter W, so the check character is W and the data with check is CODE39W. This page does not add that check character; if your receiving system requires it, append it to your data yourself and make sure the scanner is set to match.

How Code 39 works

Each character is drawn with nine elements, five bars and four spaces, three of which are wide; that is where the name “3 of 9” comes from. A start and stop character, shown as an asterisk, is added around the data automatically, so the string CODE39 is drawn as *CODE39*. Because every character has the same fixed shape, the code is easy to print on low-resolution printers but wider than Code 128 for the same data. The symbology is defined in ISO/IEC 16388. For lower-case text or compact numeric data use the Code 128 generator.

Sources and as-of date

As of 26 October 2026. Code 39 is defined in ISO/IEC 16388, which is paywalled and not linked here; the character values and modulo-43 check above are the published scheme and were recomputed independently.

Privacy: your identifier stays in the browser until you download the image.

Advertisement

Frequently asked questions

Which characters can Code 39 encode?

Digits 0 to 9, upper-case letters A to Z, space and the symbols - . $ / + %. This page converts lower case to upper case before encoding.

Is the Code 39 check character required?

Not by the symbology. A modulo-43 check character is optional, and the scanner and the sending system must agree on whether it is used.

What are the asterisks on a Code 39 label?

They are the start and stop characters. They are added when the symbol is drawn and are normally not passed on by the scanner.

Why is my Code 39 wider than Code 128?

Every Code 39 character uses nine elements with three wide ones, so it takes more space than the 11-module characters of Code 128, especially for digits.

Worked example: CODE39 and the optional check character

Each Code 39 character is built from nine elements, five bars and four spaces, of which three are wide. The start and stop character is an asterisk, so the data CODE39 is encoded as *CODE39*.

CharacterCODE39Total
Value122413143975

If you use the optional modulo-43 check character, the sum is divided by 43 and the remainder, 75 mod 43 = 32, is the value of the character W. This page encodes the data as typed and does not add a check character, so enable one in your receiving system only if you add it yourself.

Next steps: Code 128 generator, barcode generator, or barcode reader.