CODE128 Barcode Generator
Create a linear barcode for a short identifier, number or internal code.
Open the barcode generatorOn this page
Overview
Datakar generates CODE128 and offers PNG and SVG downloads. For links, longer text or Dari, Pashto or Uzbek text, use the QR code generator.
Suitable input
The form accepts up to 120 characters. Use numbers, Latin letters and compatible symbols, such as DK-2026-001. CODE128 supports only part of Unicode.
How the barcode is generated
JsBarcode 3.11.6 uses CODE128, a bar width of 2, a height of 90, and a margin of 12. The identifier is printed below the bars so people can read it without a scanner.
PNG and SVG
Use SVG for printing or resizing. The PNG export draws the SVG on a canvas at 2× scale for a sharper image in ordinary documents and on the web.
When to use CODE128
Use it for document or asset identifiers, internal inventory codes, tracking references and other short inputs read by a linear scanner.
Check the receiving system’s requirements if it specifies EAN, UPC, GS1 or another format.
Privacy
The browser generates the barcode locally. It loads JsBarcode from a CDN when needed. Datakar’s server does not receive the entered value for generation.
Printing and scanning
- Use SVG for professional printing.
- Keep both white margins and avoid compressing the barcode.
- Test a sample on the intended scanner or phone before printing in quantity.
Limits
This tool generates CODE128 only. It does not issue GS1, EAN or UPC identifiers, maintain a product registry, or register your product. For unsupported text, use QR.
Technical details
JsBarcode library, version 3.11.6. Source guide reviewed .