Code 39 barcode generator

Create Code 39 barcodes for automotive, defense and ID badge labeling.

  • Free · no watermark
  • Runs in your browser
1 · Formattype: 'code39'
Retail
Logistics
Industrial
A–Z, 0–9 and space - . $ / + %
Ready — 6 characters encoded
3 · Bars
60 px
Module width
10 px · 5.0 X
4 · Text
14 px
5 · Color
Bars
Background
6 · Rotation
Live previewCode 39
100%
*FOX-42*
Modules
127
X-dimension
0.438 mm
Size
60.0 × 23.2 mm
Status
Valid
Export

Vector · best for print · 60.0 mm wide

Specs
Check digit
Optional mod 43
Quiet zone
5.0 X
Bar height
13.1 mm
Human text
Below
etiket · label.ts
import { barcode } from 'etiket'

const svg = barcode('FOX-42', {
  type: 'code39',
  height: 60,
  barWidth: 2,
  showText: true,
  textPosition: 'bottom',
  fontSize: 14,
  margin: 10,
  background: '#FFFFFF',
})

About Code 39

What is a Code 39 barcode?

Code 39 is one of the oldest barcode symbologies. It encodes uppercase letters, digits and seven symbols, needs no check digit, and is still required in automotive (AIAG) and US defense (MIL-STD-129) labeling.

Data
Variable length, uppercase only
Characters
A–Z, 0–9, space and - . $ / + %.
Check digit
Optional mod 43
Print size
X-dimension of 0.19 mm or more, with a 3:1 wide-to-narrow ratio
Used for
Automotive, defense, ID badges

How to create a Code 39 barcode

  1. 1
    Enter your data
    Type or paste the text to encode — a–Z, 0–9 and space - . $ / + %.
  2. 2
    Adjust bars and text
    Set bar height, module width and quiet zone, and choose whether to print the human-readable text.
  3. 3
    Set the print size
    Enter the final width in mm, cm, inches or pixels. The X-dimension and height update as you type.
  4. 4
    Download and test
    Export SVG for print or PNG at 300–600 dpi, then run a test scan before you print a full batch.
Other barcode generators

FAQ

Code 39 questions

More answers in the general FAQ and the barcode size guide.

How do I create a Code 39 barcode?

Choose Code 39 in the format list, enter your data (a–Z, 0–9 and space - . $ / + %), set the print width, then download SVG or PNG.

What data can a Code 39 barcode hold?

Variable length, uppercase only. A–Z, 0–9, space and - . $ / + %.

What size should a Code 39 barcode be?

X-dimension of 0.19 mm or more, with a 3:1 wide-to-narrow ratio. Keep the quiet zone clear and print dark bars on a light background.

Is this Code 39 generator free for commercial use?

Yes. There is no watermark, sign-up or usage limit, and barcodes are generated in your browser — your data is never uploaded.