How to make barcode and QR code labels from a spreadsheet
30 November 2026
To make barcode labels from a spreadsheet, put one item on each row with its code in a column of its own, then merge it onto a label sheet with Word's MERGEBARCODE field or your label printer's own software. Choose the kind of code first: EAN-13 for products sold in shops, Code 128 for your own stock codes and QR codes for web addresses.
Which code to use
- EAN-13 is the 13-digit barcode on products in shops; UPC-A is the 12-digit North American version. The last digit is a check digit worked out from the others, so most typing mistakes give an invalid number rather than someone else's. If you sell through shops or marketplaces, the number must come from GS1: GS1 UK says major retailers and Amazon require its numbers, and that cheap barcodes bought elsewhere may have had previous owners (GS1 UK).
- Code 128 holds letters, numbers and keyboard symbols in a compact barcode. It suits your own stock codes and shelf labels.
- QR codes hold a web address or any text, and phone cameras read them. They have four error correction levels: Denso Wave, which invented QR codes, says medium is the usual choice and the higher levels suit labels that will get dirty (Denso Wave).
GS1 UK gives the standard EAN-13 size as 37.29 mm wide, including the clear space either side, lists 80% of that as its smallest size and advises against cutting the height (GS1 UK's size guide). Small labels, such as 65 per sheet, leave little room for text.
Get the spreadsheet ready
- Format code columns as Text before you type or paste the numbers: select the column, press Ctrl+1 and choose Text. Otherwise Excel can show a 13-digit number in scientific form, such as 5.01235E+12, and removes leading zeros, which breaks UPC-A numbers starting with 0 (Microsoft).
- Use one-word headings, such as SKU, Barcode and Link, which are easier to type into a field code.
- One row per label. Word makes one label per row, so repeat a row for extra copies.
1. Word's barcode fields
Good for: Word for Windows. Microsoft says the barcode fields don't work on a Mac or the web (DisplayBarcode).
Word has no barcode button; it uses hidden field codes: DISPLAYBARCODE for a fixed value and MERGEBARCODE for a mail merge column.
- Set up a label merge: Mailings > Start Mail Merge > Labels, choose your sheet, then Select Recipients > Use an Existing List and pick your workbook. See how to print address labels from an Excel list.
- Click in the first label and add any text with Insert Merge Field, such as the description and price.
- Where the barcode goes, press Ctrl+F9 for a pair of field braces (typing them doesn't work) and type inside them, so the field reads:
{ MERGEBARCODE SKU CODE128 \t }
SKU is your column heading, CODE128 the type, and \t prints the value under the bars. Use EAN13 or UPCA for product numbers, or { MERGEBARCODE Link QR } for a QR code (MergeBarcode).
- Choose Update Labels, then Finish & Merge > Edit Individual Documents, and check every barcode before you print.
Three things to watch:
- Bad values just don't appear. Microsoft says a value that doesn't suit the type may not make a barcode, so look at every label, not only the first.
- Leave out
\x. This switch "corrects" a wrong EAN or UPC check digit. A mistyped number then prints as a valid barcode for a different number, so it's safer to fix the numbers. - Size.
\hsets the height in twips (1,440 to the inch) and\sscales the whole barcode, from 10 to 1000 percent.
2. Barcode fonts
Good for: simple Code 39 barcodes in Excel or Word.
A barcode font draws bars instead of letters, so you can format a column or a merge field with it. Free ones include the Libre Barcode fonts. They're easy to get wrong:
- Code 39 needs the value wrapped in asterisks, such as
*AB123*. In Excel,="*"&A2&"*"adds them. Code 39 holds capital letters, digits and a few symbols, and it makes wider barcodes than Code 128. - Code 128 fonts don't work by typing the value. It needs a start character, a check character and a stop character, worked out by an encoder (Libre Barcode's notes). Typed straight in, you get bars that look right and don't scan.
- EAN-13 fonts need the full number with a correct check digit. Libre Barcode EAN13 Text can work it out if you type a question mark in its place (its notes).
Test a printed sheet with your own scanner first.
3. Free online generators
Good for: a handful of codes.
Free barcode and QR code generators make one code at a time from what you type, and you download a picture to put on a label. For a hundred products that's a long job, and the bulk versions work by uploading your list. Don't stretch the picture to fit, as squashed bars can fail to scan.
With QR codes, check that the code holds your web address itself, not the generator's own address that passes people on: if that service stops, or you stop paying, so does the code.
4. Your label printer's software
Good for: roll labels on a dedicated label printer.
The printer's own free software can usually print a label for each row of a spreadsheet. Brother's P-touch Editor can link a barcode to a column of an Excel file (Brother's steps), and DYMO Connect can import data from a spreadsheet too.
When a tool is quicker
Make Labels makes barcode and QR code labels without field codes or fonts, on Windows or a Mac. Choose your .xlsx or .csv list and your label sheet, then pick Code 128, EAN-13, UPC-A or a QR code, the column it holds, and whether it goes beside or under the text. EAN-13 and UPC-A check digits are checked, or worked out if you leave them off, and numbers Excel has turned into scientific form are caught. Any code that can't be made, or may be too small to scan, is listed before you print. A quantity column can set the copies for each row. Product numbers for selling through shops still come from GS1: Make Labels prints the number you give it.
It runs in your browser, so your list never leaves your computer. The free version makes one sheet at a time; Pro is £19 once and puts any number of sheets in one PDF. You can try it with a sample list.
Quick answers
Can Excel make barcodes? Only with a barcode font or an add-in. For labels, Word's MERGEBARCODE field on Windows, or a label tool, does the layout as well.
Which barcode should I use for stock? Code 128 for your own codes. Use EAN-13 only with GS1 numbers, for products sold through shops or marketplaces.
Why won't my barcode font scan? Code 39 needs asterisks round the value, Code 128 needs an encoder, and EAN-13 needs a correct check digit.