How to Generate Barcodes from Excel or CSV
A practical workflow for mapping spreadsheet columns, preserving leading zeroes, validating Code 128 data and exporting a printable barcode batch.

Turning a spreadsheet into barcode labels is straightforward when the source data is prepared correctly. The important decisions happen before export: which column is the encoded value, which barcode format matches that value, and how the labels will be printed.
1. Prepare one record per row
Use a clear header such as SKU, Asset ID, Tracking Number, or Barcode Value. Keep one label record per row. Product names, prices and batch numbers can stay in separate columns for a multi-field label.
Store identifiers with leading zeroes as text. Otherwise Excel can turn 001234 into 1234, which changes the encoded value. Avoid formulas that have not been converted to final values, merged cells and decorative title rows.
2. Choose CSV or XLSX
CSV is compact and easy to export from an ERP, WMS or ecommerce platform. XLSX is more convenient when a person needs to review several columns. Both produce the same barcode after the value column is mapped.
Open the Excel and CSV batch barcode generator, import the file and select the column that contains the exact barcode value. Empty rows are ignored; invalid values should be corrected before printing.
3. Match the barcode format to the data
- Code 128 is a practical default for internal SKUs, assets and tracking values containing letters and numbers.
- QR Code works well for URLs or longer mobile-readable content.
- EAN-13 and UPC-A are retail formats. Generating the graphic does not assign ownership of a GTIN; use a number issued for your product.
- ITF-14 is commonly used for outer cartons rather than individual retail units.
Use the barcode format guide when the receiving system has not specified a symbology.
4. Validate before exporting the batch
Preview several rows, including the longest value. Keep dark marks on a light background and preserve the quiet zone around every symbol. If a value is too long for the physical label, increasing image resolution alone will not solve the problem: increase the label width, reduce the data length, or select a more appropriate format.
For thermal printing, set the final media size in both the design and printer driver. Print one label at 100% scale and test it with the production scanner before running the full batch.
5. Choose the delivery format
SVG stays sharp through scaling and is useful for design or print workflows. PNG is convenient for systems that require fixed pixels. ZIP packages keep a large batch together, while direct printing is useful for a label sheet or thermal media.
For labels containing product name, price, batch number and multiple variable fields, continue in Packaging Label Studio. It can map spreadsheet columns to separate layers and deliver exact-size print files.
Final checklist
- The encoded column contains final values, not display formatting.
- Leading zeroes are preserved.
- Every row is valid for the selected symbology.
- Quiet zones remain clear.
- One physical label has been tested at the target size and DPI.