Home
Vector Barcode Generator
100% Private (No Cloud Uploads)

Vector Barcode Generator (Code 128, EAN-13, UPC-A, Code 39)

Code128 • EAN • UPC • ITFVector SVG & Crisp PNG Export

Generate vector SVG and crisp PNG barcodes for retail, inventory, and logistics with customizable height, text labels, and color. Zero external servers, Zero Input Uploads, and instantaneous client-side calculation.

Barcode Symbology & Data

Logistics

High-density alphanumeric barcode standard used worldwide for logistics, supply chain, and warehouse labels. Automatically switches between character sets A, B, and C.

18 / 120 chars
Valid Code 128 input (18 characters).
Allowed: Full 128 ASCII character set (letters, digits, punctuation) (Variable length (1 - 80 characters recommended))

Human-Readable Text Label

Alignment:

Geometry & Color System

Scanner Optical Settings
40px200px
1px (Fine)4px (Thick)
0px40px
Scanner Contrast Ratio:21.0:1
Optimal Readability

Barcode Symbology Reference Guide

Select the optimal barcode format for retail point-of-sale, industrial inventory, and global logistics.

SymbologyStandard AuthorityCharacter SetCapacity / LengthChecksumPrimary Application
Code 128ISO/IEC 15417All 128 ASCIIVariable (1 - 80+)Modulo 103 (Internal)Logistics, shipping labels, GS1-128
EAN-13GS1 / ISO 15420Numeric (0-9)Fixed 13 DigitsGS1 Modulo-10Global supermarket & retail checkout
UPC-AGS1 USNumeric (0-9)Fixed 12 DigitsModulo-10United States & Canadian retail items
EAN-8GS1Numeric (0-9)Fixed 8 DigitsModulo-10Small packages, confectionery, cosmetics
ITF-14GS1 General SpecsNumeric (0-9)Fixed 14 DigitsModulo-10Master cartons, corrugated freight boxes
Code 39ISO/IEC 16388A-Z, 0-9, SymbolsVariableOptional Modulo-43Automotive (AIAG), Defense (DoD LOGMARS)
Quiet Zones (Margins)

Always maintain empty quiet zones on both left and right margins of at least 10 times the narrowest bar width (minimum 6mm). Optical scanners rely on quiet zones to identify start patterns.

High Contrast Ratio

Barcode laser scanners use red 630-670nm diodes. Bars must absorb red light (pure black or dark blue), while backgrounds must reflect red light (white or yellow). Never print red bars on white!

Vector SVG vs Raster PNG

For commercial label printing and packaging dies, always download Vector SVG. SVG scales to 300+ DPI without pixel blur or edge bleed that cause scanner decoding failures.

Universal 1D Symbology Support

Supports GS1 compliant EAN-13, UPC-A, high-density Code 128 (Auto/A/B/C), industrial Code 39, and logistics ITF-14.

Infinitely Scalable Vector SVG

Renders exact mathematical line coordinates into pure vector SVG code for razor-sharp retail packaging and thermal label printing.

Automated Modulo-10 Check Digit Validation

Calculates and validates standard modulo check digits in real-time, preventing scanner rejection in warehouse inventory systems.

Formula & Reference Guide

Vector Barcode Generator (Code 128, EAN-13, UPC-A, Code 39) — Reference Guide

Generate enterprise-grade linear 1D barcodes with custom quiet zones, check-digit computation, human-readable labels, and instant vector SVG and PNG downloads.

Vector Barcode Generator (Code 128, EAN-13, UPC-A, Code 39) — Reference Guide — Client-Side Calculation Flow & Methodology
Vector Barcode Generator (Code 128, EAN-13, UPC-A, Code 39) — Reference Guide — Client-Side Calculation Flow & Methodology

Key Parameters & Controls

Key Parameters & Controls
ParameterType / UnitDescriptionDefault
Barcode Symbologyselection1D encoding standard: Code 128 (Auto/A/B/C), EAN-13, UPC-A, Code 39, or ITF-14.CODE128
Input Value / PayloadstringAlphanumeric string or numeric sequence to encode into barcode bars.TOOLS-AA-2026
Bar Width MultipliernumberHorizontal scaling factor for narrow and wide bar module dimensions.2
Bar Height (px)integerVertical pixel height of the barcode lines excluding text labels.100

Pro Tips & Best Practices

Strict Quiet Zone Requirements

Always maintain a minimum quiet zone (blank margin) of at least 10 times the width of the narrowest bar module on both horizontal sides. Insufficient margins cause barcode scanners to misread the boundary.

EAN-13 vs. UPC-A Compatibility

UPC-A (12 digits) is predominantly used in the United States and Canada, while EAN-13 (13 digits) is the global GS1 retail standard. Any UPC-A barcode can be converted to an EAN-13 by prepending a leading zero (0).

Vector SVG for Packaging Print

Always export in vector SVG for physical retail packaging or thermal label printing. Bitmaps (PNG/JPG) can introduce antialiasing blur along line edges, degrading optical scan rates.

Common Gotchas & Troubleshooting

⚠️Invalid check digit error on EAN-13 / UPC-A

Our generator automatically calculates the final modulo-10 check digit. Provide the first 12 digits for EAN-13 or 11 digits for UPC-A to let the tool auto-complete.

⚠️Barcode not detected by handheld scanner

Check your background and line contrast. Red laser scanners require dark lines (black/dark blue) against white or light yellow backgrounds; never use red bars on white backgrounds as red lasers cannot differentiate them.

Frequently Asked Questions

What is the difference between Code 128 and Code 39?▼

Code 128 has much higher information density and supports all 128 ASCII characters (including lowercase and symbols), whereas Code 39 only encodes uppercase letters, numbers, and a few punctuation marks.

Can I use generated barcodes on commercial retail products?▼

Yes, but to sell products in major retail supermarkets or Amazon, you must officially register an authentic GS1 company prefix for your EAN/UPC numbers.

Does this tool transmit barcode numbers to external servers?▼

No. All barcode mathematical encodings, parity calculations, and SVG/PNG canvas renderings occur entirely in-browser.

How do I print barcodes at the highest possible quality?▼

Download the vector SVG file. SVG maintains infinite resolution and can be scaled to any DPI or label dimension without raster pixelation.