Data Processing Guide

How to Format Excel & CSV Data for Bulk Barcodes

Stop fighting with Excel leading zeros and broken inventory lists. Here is exactly how to format your spreadsheets for seamless generation.

Sohail Hakeem
Sohail Hakeem E-commerce Workflow • 6 Min Read

Whether you are managing inventory for Amazon.sa, setting up a local Salla storefront, or handling pallet routing for regional 3PLs, generating bulk barcodes should be an effortless, automated process. However, the most common roadblock businesses face occurs before the generator even runs: poorly formatted CSV data.

In this guide, we will walk you through the exact structural requirements for your data, how to fix the notorious "missing leading zero" bug in Microsoft Excel, and how to format your files perfectly for high-speed thermal label processing.

1. The Ideal CSV Structure

To generate accurate labels, your CSV should follow a clear, predictable structure. While our Bulk Workspace allows you to manually map columns, adhering to this standard setup ensures seamless, one-click processing:

Barcode Data (Required) Product Name (Optional) Price (Optional)
012345678912 Premium Cotton T-Shirt $24.99
987654321098 Wireless Mouse V2 $45.00

Retail Format Rule

If you are generating standard retail barcodes, remember the digit requirements. UPC-A requires exactly 12 digits, while EAN-13 requires exactly 13. If your CSV data is too short or too long, the barcode will fail to generate or fail to scan at checkout.

2. Fixing the "Disappearing Leading Zero" in Excel

The most frequent error in barcode formatting happens the moment you open a raw CSV file in Microsoft Excel. UPC and EAN codes frequently begin with a zero (e.g., 045123456789). Because Excel defaults to treating these inputs as mathematical numbers, it automatically strips the leading zero, turning it into 45123456789.

If you generate a barcode from this stripped number, it will be missing a digit and will fail to scan.

How to prevent this data loss:

  • Format as Text: Before pasting your raw SKUs into Excel, highlight the entire column, right-click, select "Format Cells", and change the category from "General" to "Text".
  • Use the Apostrophe Trick: If you are typing SKUs manually, put a single apostrophe before the zero ('045123456789). Excel will hide the apostrophe but keep the zero locked in place.
  • Use Google Sheets: Google Sheets is often gentler on raw text data. Use the Format > Number > Plain Text option before importing your data.

3. Exporting to UTF-8 Format

If your secondary columns contain product names with special characters (e.g., accents, Arabic text, or Chinese characters), standard CSV exports will scramble them into unreadable symbols.

To preserve your text encoding, always go to File > Save As, and select CSV UTF-8 (Comma delimited) (*.csv) from the format dropdown. This ensures your text maps perfectly onto your generated labels.

Ready to Generate?

Drag and drop your newly formatted CSV file into our completely private, client-side rendering workspace.

4. Format & Generation FAQs

Why does Excel delete the first zero in my barcode numbers?
Excel automatically formats long numeric strings as mathematical values. Since leading zeros hold no mathematical value, they are stripped. To fix this, change the column format to 'Text' before pasting your SKUs.
What is the best format to save my spreadsheet for barcode generation?
Always save your file as CSV UTF-8 (Comma delimited). This ensures that any special characters in your product names or pricing columns render correctly without encoding errors.
Can I include product names and prices in my barcodes?
Yes. If your CSV includes additional columns for 'Product Name' or 'Price', our generator allows you to map these fields to print directly above or below the physical barcode lines on your labels.

Share This Article

Join the Logistics Newsletter

Get actionable tips on warehouse automation, hardware reviews, and supply chain scaling delivered twice a month. Absolutely no spam.

Sohail Hakeem

Sohail Hakeem

Digital Infrastructure & E-commerce Consultant

Operating out of Riyadh, Saudi Arabia, Sohail bridges the critical gap between digital software architecture and physical logistics. He specializes in full-scale e-commerce automation, managing inventory integrations for platforms like Amazon.sa and Noon, and engineering B2B generation workflows for international brands.

Stop Formatting. Start Printing.

Create your free account today to save your workspace configurations and unlock unlimited bulk PDF exports.

Need help? Chat with Burt 👋