General Productivity, Dates & MathUpdated: September 2026

Vector Barcode Generator (Code 128 & UPC-A) | Print-Ready SVG & PNG

Generate linear vector barcodes in Code 128, UPC-A, and EAN-13 formats with automatic GS1 modulo-10 check digit calculation and high-resolution SVG/PNG export.

Research: LocalTooldeck Financial & Engineering Team
Audit: Verified for Mathematical Accuracy
Advertisement
Reserved 728×90 Top Responsive LeaderboardCLS Guard: Strict Layout Reservation (min-height: 250px)

100% Client-Side Vector Generation

Modulo-10 parity checks and SVG vector geometry are rendered entirely within your browser memory. Zero product SKUs, inventory serials, or logistics codes are uploaded to external APIs.

Advertisement
Reserved 728×90 Top Responsive LeaderboardCLS Guard: Strict Layout Reservation (min-height: 250px)
11 or 12 digits for UPC-A
Bar Width (Scale): 2px
Bar Height: 80px
#0f172a
#ffffff
Live Barcode Preview
Advertisement
Reserved 336×280 In-Content RectangleCLS Guard: Strict Layout Reservation (min-height: 280px)

Industrial & Retail Barcode Symbology Standards

Linear (one-dimensional) barcodes encode data by varying the widths of parallel dark bars and light spaces. Governed globally by GS1 and the International Organization for Standardization (ISO), linear barcodes form the foundational backbone of retail inventory, international logistics, and automated point-of-sale checkout systems.

Linear Barcode Symbologies Reference Table

SymbologyCharacter SetCheck Digit StandardPrimary Commercial Usage
UPC-AExact 12 Digits (0-9)Mandatory Modulo-10US & Canadian retail consumer packaged goods
Code 128Full ASCII (128 chars)Mandatory Modulo-103FedEx/UPS labels, supply chain, pallet distribution
EAN-13Exact 13 Digits (0-9)Mandatory Modulo-10Global international retail outside North America
Code 3943 Chars (A-Z, 0-9, -.$/+%)Optional Modulo-43US Department of Defense (MIL-STD-129), automotive parts

The GS1 Modulo-10 Check Digit Calculation Algorithm

To prevent point-of-sale scanner misreads, UPC-A barcodes append an algorithmic check digit in the 12th position:

  1. Designate positions 1 through 11 from left to right.
  2. Sum the values of all digits located at odd positions (1st, 3rd, 5th, 7th, 9th, 11th) and multiply this sum by 3: Sodd = 3 × ∑ Dodd.
  3. Sum the values of all digits located at even positions (2nd, 4th, 6th, 8th, 10th): Seven = ∑ Deven.
  4. Calculate total sum: T = Sodd + Seven.
  5. The check digit is the amount required to round T up to the nearest multiple of 10: C = (10 - (T mod 10)) mod 10.
Advertisement
Reserved Responsive Bottom PlacementCLS Guard: Strict Layout Reservation (min-height: 250px)
Advertisement
Reserved 336×280 In-Content RectangleCLS Guard: Strict Layout Reservation (min-height: 280px)

Frequently Asked Questions (US Standards)

How is the UPC-A Modulo 10 check digit calculated?
The UPC-A check digit is calculated using the official GS1 Modulo 10 algorithm across the first 11 digits: (1) Sum digits in odd positions (1st, 3rd, 5th, etc.) and multiply by 3. (2) Sum digits in even positions (2nd, 4th, 6th, etc.). (3) Add both sums together. (4) The check digit is the smallest number that makes the total divisible by 10 (or 0 if already divisible). Our generator computes this digit automatically if you input 11 digits.
What is the difference between Code 128 and UPC-A barcodes?
UPC-A is a fixed-length 12-digit numeric barcode mandated by GS1 US for retail point-of-sale scanning across North America. In contrast, Code 128 (ISO/IEC 15417) is a variable-length, high-density symbology capable of encoding all 128 ASCII characters, making it the global standard for shipping logistics, warehouse inventory, and packaging labels.
Why is SVG preferred over PNG for barcode printing?
SVG (Scalable Vector Graphics) defines barcode bars as mathematically pure vector rectangles rather than a raster grid of pixels. When printed on high-speed thermal transfer or laser label printers (such as Zebra or Dymo at 203 to 600 DPI), SVG eliminates anti-aliasing fuzziness and edge blurring, ensuring 100% first-pass scan readability.
Are my barcode serial numbers private?
Yes. Barcode generation, character encoding, and vector rendering execute 100% locally in your browser memory via pure JavaScript. No serial numbers, SKUs, or product payloads are transmitted to any external server.
Advertisement
Reserved Responsive Bottom PlacementCLS Guard: Strict Layout Reservation (min-height: 250px)
Advertisement
Reserved 320×100 Mobile Anchor