Auto check digits for Code 128, UPC-A, EAN-13 & Code 39
Barcode Generator
Generate crisp, scannable Code 128, UPC-A, EAN-13, and Code 39 barcodes locally in your browser. Automatic check-digit calculation, optional text labels, and instant SVG or PNG export.
Any printable ASCII text (letters, digits, symbols). Modulo-103 checksum added automatically.
Code 128 barcode ready for LOCAL-2026-001, check digit 31, 189 modules.
- Symbology
- Code 128
- Check
- 31
- Modules
- 189
Processed 100% locally in your browser. Your files never leave your device.
Choosing the right 1D barcode format
- Code 128 (Subset B): high-density symbology supporting all printable ASCII characters (uppercase, lowercase, digits, hyphens, punctuation) with an automatic modulo-103 check symbol. Ideal for shipping cartons, asset tags, and internal SKUs.
- UPC-A: the 12-digit North American point-of-sale retail barcode. Type 11 digits to calculate the 12th check digit automatically, or type all 12 to verify an existing UPC.
- EAN-13: the 13-digit international retail barcode standard (super-set of UPC-A). Type 12 digits to compute the 13th check digit automatically.
- Code 39: wide-tolerance alphanumeric format still common on automotive, medical, and defense asset labels, with optional Mod-43 check character support.
Scanning accuracy and quiet zones
Every barcode rendered here includes a full 10-module quiet zone on both left and right edges, exact specification bar widths, and crisp shape-rendering="crispEdges" SVG geometry so laser and optical scanners read it reliably on the first pass. Need a 2D code for URLs or Wi-Fi credentials? Switch to our Private QR Code Generator.
Common questions
- Which barcode symbologies are supported?
- LocalFileTools encodes Code 128 (Code 128B for full printable ASCII), UPC-A (12-digit North American retail), EAN-13 (13-digit international retail), and Code 39 (alphanumeric industrial and asset labels) directly in your browser.
- How are UPC-A and EAN-13 check digits calculated?
- Enter the first 11 digits for UPC-A (or 12 digits for EAN-13) and the tool automatically calculates the standard GS1 modulo-10 check digit and appends it. If you enter all 12 or 13 digits, it validates the final check digit and alerts you if there is a typo.
- When should I use Code 128 vs. UPC-A or Code 39?
- Use Code 128 for shipping labels, warehouse SKUs, internal inventory, and serial numbers — it is compact and supports letters, numbers, and punctuation. Use UPC-A or EAN-13 for GS1-assigned retail product packaging. Use Code 39 when legacy warehouse scanners specifically require it.
- Can I print SVG or PNG barcodes on thermal label printers?
- Yes. SVG exports exact integer module coordinates with crisp edges that scale cleanly for vector layout tools and PDF label sheets. The PNG export renders at crisp 2× resolution without anti-aliasing blur on bar edges.
- Is my SKU or product catalog data sent to any server?
- No. Every bar pattern, checksum, and SVG graphic is computed locally in TypeScript inside your browser. Nothing is uploaded or logged.
Other local file tools
- Merge PDFCombine multiple PDFs in any order, inspect page counts, and download locally.Open PDF merger
- Split & Extract PDF PagesExtract custom page ranges or split a PDF every N pages without uploading.Open PDF splitter
- Images to PDFTurn JPG, PNG, and WebP images into one Letter, A4, or exact-fit PDF.Open image to PDF
- Compress & Resize ImageShrink images to an exact KB target or resize to exact pixels and presets.Open image compressor
- Image Format ConverterBatch convert WebP, PNG, JPG, and SVG with custom background fill.Open image converter
- Private QR Code GeneratorGenerate static, never-expiring QR codes for URLs, Wi-Fi, and text.Open QR generator