Barcode Generator

Code-128 barcode generator

High-density alphanumeric barcode, the most used in logistics and internal labels.

Terms of use: this site only turns the data you type into a barcode; it does not create, verify, register or store that data, and nothing is sent to any server. The content you enter and the use of the generated barcodes are solely the user's responsibility, including the right to use GTIN/EAN numbers (licensed by GS1), the accuracy of the information and compliance with applicable law. Links with dangerous schemes and typical attack patterns (scripts, SQL injection) are blocked, but this does not replace your own checks. By using the generator you accept these terms.

One barcode per line, up to 50 at once.

Code-128 options
Size
Appearance

Preview

PDF and AI are vector files in CMYK, with black as C0 M0 Y0 K100. PNG, JPG and SVG are RGB.

Test every barcode before use. The user is solely responsible for the accuracy of the barcode.

Code-128 specification

Code-128 is a high-density alphanumeric barcode. It is the most used in logistics, shipping labels and internal identification.

  • Set A: uppercase letters, digits, punctuation and control characters (ASCII 0 to 95).
  • Set B: uppercase and lowercase letters, digits and punctuation (ASCII 32 to 127).
  • Set C: digit pairs from 00 to 99 — long numbers become very compact.
  • The generator automatically picks and switches sets A, B and C to obtain the shortest possible barcode.
  • Characters 128 to 255 (ISO-8859-1, such as é, ç, ã) are encoded with FNC4. It works, but many scanners must be configured for it; characters outside ISO-8859-1 (such as €) are not accepted.
  • To encode control characters, enable conversion and write \t, \r, \n, \\ or \xHH.
  • Check character: modulo 103, always included (not shown in the text). Quiet zone: 10X on each side.

How to use

  1. Type the content. To create several barcodes, put one per line.
  2. Adjust size, height, margin and colors. The preview follows every change.
  3. Download each barcode in the format you need, or all of them as a ZIP.

In PDF, SVG and AI the size is set by the module X — the width of the narrowest bar, in millimetres. The default for this symbology is 0.33 mm. PNG and JPG use the chosen pixel resolution. If your printer warns about ink spread, increase the bar width reduction.

Frequently asked questions

What is a Code-128 barcode?

Code-128 is a high-density alphanumeric barcode. It is the most used in logistics, shipping labels and internal identification.

What can a Code-128 barcode contain?

Set A: uppercase letters, digits, punctuation and control characters (ASCII 0 to 95).

How do I create a Code-128 barcode for free?

Type the data in the generator on this page, adjust size and colors, and download the barcode as PNG, JPG, SVG, PDF or Adobe Illustrator (AI). PDF and AI are vector files in CMYK with 100% K black, ready for print. Everything runs in your browser: nothing is uploaded and no sign-up is needed.

What size should a printed Code-128 barcode be?

The vector size is defined by the module X (narrowest bar). This generator uses 0.33 mm by default for Code-128; you can change it before downloading.

Share this page

Like it? Support the site

Keeping the generator free has costs. Any amount helps.