How to Generate Barcodes in Bulk in Adobe Illustrator from CSV or Excel

How to Generate Barcodes in Bulk in Adobe Illustrator from CSV or Excel

Packaging and label designers often receive the same request: a spreadsheet with a few hundred product numbers, and a deadline. Illustrator has no built-in barcode tool, so the usual workaround is an online generator, one code at a time, placed by hand. This guide shows a faster route and the rules that keep the result scannable.

Why barcodes should be vector

A barcode is read by measuring the width of its bars. A raster image that is scaled or resampled can blur those edges. A vector barcode stays sharp at any size and separates cleanly for print, which is why printers ask for vector artwork.

Know which barcode you need

  • EAN-13 and UPC-A: retail products scanned at the till.
  • Code 128 and GS1-128: logistics, cartons and pallets.
  • ITF-14: outer cases.
  • QR code and Data Matrix: links, serial numbers and small parts.

If the barcode is for retail, the numbers must come from your GS1 allocation. A generator creates the symbol; it does not issue the number.

Prepare the spreadsheet

  • One row per barcode, with the code in its own column. Extra columns, such as the product name, make the result easier to check.
  • Format the code column as Text before you type or paste, so leading zeros survive, then check the file in a text editor.
  • Nothing but the code in the cell. No spaces, dashes or currency signs: a barcode encodes exactly the characters it is given.
  • Save as CSV UTF-8 when names contain accents or symbols.

Get the check digit right

EAN-13, UPC-A and ITF-14 end with a check digit calculated from the other digits. GS1 explains the method: multiply the digits alternately by 3 and 1, starting from the right, add them up, and the check digit is what brings the total to the next multiple of ten. If your list mixes 12-digit numbers without a check digit and 13-digit numbers with one, sort that out before you generate anything: a code with a wrong check digit is rejected at the till.

Size and placement on the pack

At 100 percent, an EAN-13 symbol is about 37.3 mm wide and 25.9 mm high, including its quiet zones and digits. Place it on a flat area of the pack, away from folds, seams and edges, and keep the same position across a product range so the packing line knows where to look.

Generating barcodes from a spreadsheet

With Next Barcode Suite Batch Edition the whole list is created in one run:

  1. Prepare a CSV or Excel file with one row per product. Keep the codes in a column formatted as text, so leading zeros are not lost.
  2. Open the plugin in Illustrator and load the file.
  3. Choose which column contains the code and which barcode type to use. More than 159 formats are supported.
  4. Check the preview of the first rows, then generate. Each barcode is placed as editable vector artwork.

Need a single code instead of a batch? The standard Next Barcode Suite for Illustrator inserts one barcode or QR code at a time, and versions exist for InDesign and Photoshop too.

Mistakes that make barcodes fail

  1. No quiet zone. The empty margin left and right of the bars is part of the symbol. Do not let text or a box edge enter it.
  2. Scaling too far. For EAN and UPC symbols, GS1 allows roughly 80 to 200 percent of the nominal size. Smaller than that and many scanners struggle.
  3. Low contrast. Dark bars on a light background. Red bars are invisible to most scanners, because the scanner light is red.
  4. Cutting the height. Truncated bars scan less reliably at the till. Only shorten them when the packaging leaves no choice.
  5. Leading zeros dropped by Excel. 0123456789012 becomes 123456789012 if the column is numeric. Format the column as text before you type or paste.

Always test before printing

Print a proof at final size on the real material and scan it with an actual scanner, not only a phone app. For retail packaging, ask your printer or GS1 organisation about verification.

Do you need barcodes generated from another source, such as a product database or an ERP export? We build custom integrations for exactly that.

Sources

Frequently asked questions

Does Illustrator have a built-in barcode generator?

No. Illustrator has no barcode tool. You either place codes made elsewhere or use a plugin that draws them as vector artwork inside Illustrator, such as Next Barcode Suite.

Can I make up my own EAN-13 numbers?

No. Retail numbers must come from your company's GS1 allocation. A generator can draw the symbol for any number, but only GS1 issues numbers that are unique to your products.

How small can an EAN-13 barcode be?

GS1 allows roughly 80 to 200 percent of the nominal size, which is about 37.3 by 25.9 mm at 100 percent. Below that, many scanners struggle, so check with your printer before going smaller.

Fahd Jlif is part of the team at Lingway, which makes plugins for Adobe InDesign, Illustrator, Photoshop and After Effects. LinkedIn