How to Batch Print Barcode Labels from Excel or CSV

Updated: Also available in: 繁體中文 · Español · Deutsch · 日本語

You have a product list in a spreadsheet — name, price, barcode — and you need a label for every item. Editing a label by hand for each row means fifty edits for fifty products, and a typo on any of them. The better way: design the label once and let the data come straight from Excel, one label per row.

This guide walks through the whole process in RayenApp, a free online barcode label editor. Nothing to install, and your Excel file is read inside your own browser — it is not uploaded to a server.

Before you start: one row per label

Batch printing follows a simple rule: each spreadsheet row becomes one label, and each column becomes one field on the label. For example:

ProductPriceBarcode
Whole Milk Bread$3.504710000000011
Honey Cake$8.904710000000028
Oolong Tea 600ml$1.994710000000035

(Sample data for illustration only.) A few things to get right first:

Step 1: Prepare the label design

You can draw a label from scratch or start from a template. This guide uses the “Product Label” template (60 × 40 mm, with a product name, a price and a barcode) — the button at the end of this page opens the editor with it already loaded.

To design your own instead, click “New Label” in the toolbar, enter the label size, then drag text and barcode elements onto the canvas. For help choosing the size, see Thermal label printer setup.

Step 2: Set the changing elements to “Imported field”

Every element whose content changes from label to label (name, price, barcode) needs to be told that its content comes from the imported data:

  1. Select the element in the “Layers” list on the left or on the canvas — the barcode, for example.
  2. In the property panel on the right, change “Content type” from “Static text” to “Imported field”.
  3. The canvas now shows a {{}} placeholder where the data will go.
  4. Repeat for the other changing elements (name and price).
RayenApp editor with the barcode element's content type set to Imported field, showing placeholders on the canvas
With all three elements set to “Imported field”, the canvas shows {{}} placeholders.

Elements you leave as static text (a shop name, a fixed heading) stay the same on every label. The other content types — “Serial number”, “Date/Time” and “Input field” — can be mixed with imported fields, for example to add an auto-incrementing serial number to every label.

Step 3: Upload the spreadsheet and map the fields

  1. Click the green printer button in the toolbar's “Print” group to open the Preview Print window.
  2. Click “Import Data Source” on the right.
  3. Click “Upload Excel” and choose your .xlsx file. Use “Upload CSV” for CSV files, or “Upload Text File” for tab-separated or fixed-width text exports from other systems.
  4. Keep “First row is the header” ticked if your first row contains column names.
  5. The dialog reports how many fields and rows were found and previews the first 5 rows — check them now, especially that barcodes did not turn into scientific notation.
  6. Below the preview, choose a column for each imported-field element: Product Name → Product, Price → Price, Product Barcode → Barcode.
  7. Click “Apply This Data”.
Import Data Source dialog with five product rows read from Excel and a column chosen for each element
After reading the Excel file, preview the first rows and map each element to a column.

Step 4: Check each row, then print or export

Once the data is applied, the preview shows the first row exactly as it will print. Step through with “‹ Previous” and “Next ›” and check that:

Preview Print window showing row 2, Honey Cake $8.90, with its barcode
Step through the rows; the counter shows which row you are on.

When everything looks right:

FAQ

Why are some barcodes blank?

That row's data does not match the selected barcode type. The template uses Code 128, which accepts letters and digits. If you switch to EAN-13:

The usual culprit is Excel turning codes into scientific notation or dropping leading zeros — format the column as Text, re-enter the codes, and import again.

Can I use CSV instead of Excel?

Yes — use “Upload CSV”. RayenApp detects both the separator (comma, semicolon or tab) and the text encoding automatically: UTF-8 files are recognized directly, and older “ANSI” exports are read with the legacy encoding that matches the interface language. The dialog shows what it detected next to “Encoding” and “Delimiter”; if accented letters or non-English text look garbled in the preview, pick a different encoding there and the preview updates immediately — no need to upload again.

Do I have to map the fields again next time?

No. Saving the label keeps the import settings and each element's column mapping, but not the data itself. The next time you open the label and import a new batch, columns with the same names are matched automatically.

How many rows can I print at once?

There is no fixed limit, but each label is rendered as an image in your browser, so large batches take longer. For thousands of rows, export a PDF first to check the result, or split the data into smaller batches.

Try it in the editor

Opens the free online editor with this template loaded. No installation or account needed.

Start with this template