---
title: "Code 39 Barcode Generator – Free PNG, SVG & PDF"
description: "Free Code 39 barcode generator. Encode capital letters, digits and - . $ / + % into a Code 3 of 9 barcode with optional check. Download PNG, SVG or PDF."
url: https://barcodejar.com/code-39-barcode-generator
source: BarcodeJar (free barcode tools)
---

# Code 39 Barcode Generator

Create Code 39 (Code 3 of 9) barcodes from capital letters, digits and a few symbols. It is the long-standing standard for ID badges, asset tags and military and automotive labels, and every scanner reads it.

_Interactive tool: open https://barcodejar.com/code-39-barcode-generator to use it in your browser. It is free with no sign-up._

## How to create a Code 39 barcode

1.  Enter your data in the box above. Capital letters A–Z, digits, space and - . $ / + %. Lower case is rejected (use Code 39 Extended). Do not type the \* start/stop characters. A mod 43 check character is added and shown at the end.
2.  The barcode updates live as you type. Open **Customize** to change the bar height, colors, rotation or quiet zone.
3.  Click **Download PNG** for labels and documents, or **SVG / PDF** for print and packaging design.
4.  Test it with our [online barcode scanner](https://barcodejar.com/barcode-scanner) before you print a large run.

## What is a Code 39 barcode?

**Code 39**, also called Code 3 of 9 or USD-3, is a variable-length linear barcode that encodes 43 characters: A–Z, 0–9, space and - . $ / + %. Each character is made of 9 elements (5 bars and 4 spaces), 3 of which are wide, which is where the name comes from.

It was developed by Intermec in 1974 and is self-checking, so a check character is optional. It is wide compared with [Code 128](https://barcodejar.com/code-128-barcode-generator), but it is simple, robust and supported by every scanner ever made. Every Code 39 barcode starts and ends with an asterisk (\*), which is added automatically.

## Where Code 39 is used

-   ID badges, employee cards and library cards
-   Asset tags and equipment labels
-   US Department of Defense LOGMARS labels
-   Automotive industry parts labels (AIAG)
-   Healthcare labels via [HIBC Code 39](https://barcodejar.com/hibc-code-39-barcode-generator)
-   Barcode fonts in spreadsheets and Word documents

## Code 39 specifications

-   **Type:** Linear (1D), variable length, discrete
-   **Characters:** 43: A–Z, 0–9, space, - . $ / + %
-   **Start/stop:** \* (added automatically, shown in the text)
-   **Check digit:** Optional modulo 43 (on by default here)
-   **Wide:narrow ratio:** 2:1 to 3:1
-   **Density:** Low: about 13–16 modules per character
-   **Standard:** ISO/IEC 16388

## Tips for a barcode that scans first time

-   Keep it short. Code 39 gets long fast, and a barcode wider than about 15 cm is hard to scan by hand.
-   If your system already includes its own check character in the data, the generator still adds a mod 43 check. Make sure the reader is set up to expect it.
-   Leave a quiet zone of at least 10 times the narrow bar width on each side.
-   For lower case or punctuation like # or @, use [Code 39 Extended](https://barcodejar.com/code-39-extended-barcode-generator) or [Code 128](https://barcodejar.com/code-128-barcode-generator).

## Frequently asked questions

### What characters can Code 39 encode?

43 characters: capital A–Z, digits 0–9, space and the symbols - . $ / + %. Lower case letters and other symbols need [Code 39 Extended](https://barcodejar.com/code-39-extended-barcode-generator), which encodes all 128 ASCII characters using pairs.

### Does Code 39 need a check digit?

No, it is optional because each character is self-checking. A modulo 43 check character adds extra safety and is switched on in this generator. It appears as the last character of the text under the bars.

### Do I need to add the asterisks?

No. The \* start and stop characters are added automatically. Typing them yourself causes an error, because \* is not a valid data character.

### Code 39 vs Code 128: which is better?

Code 128 is shorter for the same data and supports lower case. Use Code 39 when a system, customer or standard asks for it, such as LOGMARS or an older badge reader. Otherwise [Code 128](https://barcodejar.com/code-128-barcode-generator) is usually the better choice.

### Why is it called Code 3 of 9?

Each character is made of 9 bars and spaces, and 3 of those 9 are wide. Code 39, Code 3 of 9 and 3 of 9 barcode are all the same symbology.

### How long can a Code 39 barcode be?

The standard has no fixed limit, but the barcode grows by about 13 to 16 modules per character. In practice keep it under about 20 to 25 characters for easy handheld scanning.

## Related free tools

[![Code 39 Extended Generator example](/thumbs/code39ext.svg)**Code 39 Extended Generator**Create Code 39 Extended barcodes free. PNG, SVG, PDF.](https://barcodejar.com/code-39-extended-barcode-generator)[![Code 128 Generator example](/thumbs/code128.svg)**Code 128 Generator**Create Code 128 barcodes free. PNG, SVG, PDF.](https://barcodejar.com/code-128-barcode-generator)[![Code 93 Generator example](/thumbs/code93.svg)**Code 93 Generator**Create Code 93 barcodes free. PNG, SVG, PDF.](https://barcodejar.com/code-93-barcode-generator)[![HIBC Code 39 Generator example](/thumbs/hibccode39.svg)**HIBC Code 39 Generator**Create HIBC Code 39 barcodes free. PNG, SVG, PDF.](https://barcodejar.com/hibc-code-39-barcode-generator)[**Asset Tag Generator**Printable asset tags with barcode, ID and owner.](https://barcodejar.com/asset-tag-generator)[**Bulk Barcode Generator**Paste a list or CSV, download hundreds as ZIP or PDF.](https://barcodejar.com/bulk-barcode-generator)[**Online Barcode Scanner**Scan any barcode with your phone or webcam camera.](https://barcodejar.com/barcode-scanner)[**Types of Barcodes**Every common barcode type and when to use it.](https://barcodejar.com/guides/types-of-barcodes)
