Free Code 128 Generator

Code 128 is the workhorse of modern logistics — a high-density alphanumeric symbology that encodes the full ASCII character set in a very compact width. This free generator renders compliant Code 128 (Subsets A, B and C) directly in your browser and exports print-ready vector SVG or 600 DPI PNG.

How to generate a Code 128 barcode

  1. 1Open the generator and choose Code 128 from the format list (or open the tool with this page pre-selecting it).
  2. 2Type your data — any ASCII text, serial number, SKU or shipment reference works. The Mod-103 check digit is added automatically.
  3. 3Download your barcode as an uncompressed vector SVG or a high-resolution 600 DPI PNG, ready for print.

Code 128 was designed in 1981 by Computer Identics and is now standardized as ISO/IEC 15417. Unlike fixed numeric symbologies, it supports all 128 ASCII characters — letters, digits, punctuation and control characters — and automatically switches between Subsets A, B and C to minimize bar width. A mandatory Modulo-103 checksum is calculated for you, so scanners verify every read. It is the required base symbology for GS1-128 shipping labels and the default choice for internal logistics, shipping containers and asset management.

Code 128 — technical specifications

Standard
ISO/IEC 15417 (GS1-128 for AI-encoded data)
Character set
All 128 ASCII characters (Subsets A, B, C)
Checksum
Mandatory Modulo-103
Length
Variable; full ASCII messages
Best for
Logistics, shipping labels, inventory, asset tags

Where Code 128 is used

  • Shipping and pallet labels for fulfillment warehouses
  • Internal inventory and asset tracking tags
  • Cardboard carton marking for distribution centers
  • Product carton labels with batch and lot data
  • Shipping carrier labels (DHL, FedEx, UPS, India Post)
  • Equipment and tool tracking in manufacturing plants

Code 128 — Frequently Asked Questions

What data can Code 128 encode?
Code 128 encodes all 128 ASCII characters: uppercase and lowercase letters, digits 0-9, punctuation and symbols, plus control characters. It automatically optimizes between Subsets A, B and C — for example, digit runs are encoded with the double-density Subset C.
Does Code 128 include a check digit?
Yes. Code 128 has a mandatory Modulo-103 checksum that is calculated automatically by this generator. Scanners use it to verify that every read is correct before accepting the data.
Code 128 vs GS1-128 — what is the difference?
Plain Code 128 just encodes your data. GS1-128 is Code 128 plus GS1 Application Identifiers (like (01) for GTIN and (10) for batch) that make the data globally standardized for trade. Use GS1-128 for trading-partner shipping labels; use plain Code 128 for internal use.
Is this Code 128 barcode free for commercial use?
Yes. All barcodes generated here are free for commercial use with no royalties, no account and no watermark. Download as vector SVG or high-DPI PNG.
Is this barcode generator really free?
Yes — no account, no signup, no subscription, no watermark. Every symbology here is free to download as SVG or PNG, with no scan limits.
Can I use these barcodes commercially?
Yes. All barcodes are free for commercial, retail, packaging and personal use with zero royalties or licensing restrictions.
Do generated barcodes ever expire?
No. A barcode is just an image — once it is printed, it works forever. Static generation means the pattern never depends on any server or subscription.
How do I print a barcode that scans properly?
Keep the quiet zone clear on both sides, print dark bars on a light background at 300+ DPI, and keep the symbol at least 80% of nominal size. Scan a test print before your full run.
What size should my barcode be?
EAN/UPC minimum is 80% of nominal (about 30 × 20 mm); 100% is recommended. QR needs at least 20 × 20 mm. Smaller codes still scan if your printer is razor sharp — test first.
What is a check digit?
A mathematically derived extra digit that lets scanners detect misreads. Modulo-10 (EAN/UPC), Mod-103 (Code 128) and Mod-47 (Code 39/93) are calculated automatically here.
Can I scan the barcode on my phone?
Yes. Any modern phone camera reads QR and most 1D symbologies. For 1D codes on poor prints, a dedicated imager scanner is more forgiving — test on the target device.
Does my data leave my browser?
No. All rendering happens locally with SVG/canvas. Your serials, SKUs, Wi-Fi passwords and contacts are never transmitted or logged.
What's the difference between SVG and PNG?
SVG is a lossless mathematical vector format — scales to any size without pixelation. PNG is a raster image — use 300+ DPI for print. For packaging or signage, choose SVG.
Can I print on adhesive label paper?
Yes. Export PNG or SVG, import into your label software (Avery, Bartender, NiceLabel — anything) or print directly with our bulk label sheet grid as an A4 proofing base.
Will this barcode work with any scanner?
Symbology compliance ensures decoder compatibility: any compliant Code 128, EAN-13, UPC-A, QR etc. read on any standards-compliant scanner — handheld, fixed-mount or phone camera.