eg

upc / ean barcode generator.

upc / ean / code128 / itf14 barcodes, download png or svg

format

> preview

> worked example

Enter 012345678905 with format UPC-A. The widget immediately validates the check digit (✓), renders a live SVG barcode, and offers single-click PNG and SVG downloads at 3× resolution. Switching to EAN-13 or CODE 128 re-renders instantly, no page reload. The PNG export uses a white background so it drops cleanly onto packaging artwork.

takeaway, Paste a code, confirm the check digit is correct, download a print-ready file in under five seconds.

> when operators reach for this

  • Private-label founder purchasing a GS1 UPC prefix and needing to preview how the barcode will look on a product label before sending to the print-house.
  • Ecommerce ops manager spot-checking a supplier's EAN-13 codes for check-digit errors before they cause scan failures at the warehouse.
  • Shopify merchant adding an internal CODE 128 barcode to packing slips for their own pick-and-pack workflow.
  • Packaging designer who needs a vector SVG barcode to embed into an Illustrator or Figma label template at any scale without quality loss.
  • Small-batch manufacturer switching from GS1 UPC to ITF-14 carton codes and needing a quick preview before committing to a label run.

> the calculation

  • upc-a check digitsum(odd positions × 3 + even positions), check = (10 − (sum mod 10)) mod 10positions 1–11 left-to-right; check is digit 12
  • ean-13 check digitsum(odd positions + even positions × 3), check = (10 − (sum mod 10)) mod 10positions 1–12; check is digit 13
  • ean-8 check digitsum(odd positions × 3 + even positions), check = (10 − (sum mod 10)) mod 10positions 1–7; check is digit 8
  • code128 / itf14no manual check-digit input required, jsbarcode computes and appends automatically

> related calculators, skus & barcodes