How to make barcodes from Excel or Google Sheets

You do not need an add-in or a barcode font. Copy one column from your spreadsheet, paste it into the bulk barcode generator, and each row becomes one barcode. Most of the work is getting the column right first, and that is what this guide covers.

The quick route: copy one column

  1. Select the cells that hold your values, without the header cell.
  2. Copy them, open the bulk barcode generator and paste into the list box. Each row becomes one line.
  3. Pick the barcode type, then read the status line. The number of barcodes ready should equal the number of rows you copied. Any line that does not fit the type is shown in red with the reason.
  4. Fix the red lines in the spreadsheet, copy again, and download the ZIP or print the sheet.

Some details that save time:

  • Empty cells are ignored, and spaces at the start or end of a value are removed.
  • Cells with formulas paste as the value the cell shows, not the formula.
  • Copy one column only. If you copy two columns, each line contains a Tab between the two values, and the generator rejects the line because no format here can hold a Tab. Join columns with a formula instead, as shown below.
  • One batch holds 500 values. For a longer list, copy rows 2 to 501, download, then copy the next 500.

Formulas that prepare the column

Build the exact text you want in a helper column, then copy that column. These formulas work the same way in Excel and Google Sheets, with the original value in A2:

GoalFormulaExample result
Pad a number to 6 digits=TEXT(A2,"000000")42 becomes 000042
Add a prefix and pad="SKU-"&TEXT(A2,"0000")42 becomes SKU-0042
Join two columns=A2&"-"&TEXT(B2,"00")A and 7 become A-07
Remove spaces inside a value=SUBSTITUTE(A2," ","")SKU 1001 becomes SKU1001
Remove non-breaking spaces=SUBSTITUTE(A2,UNICHAR(160),"")Cleans values copied from web pages or PDFs
Count the characters=LEN(A2)Shows a 12 in a list that should have 13 digits
Flag repeats=COUNTIF(A:A,A2)>1TRUE on every value that appears twice
Running numbers=SEQUENCE(200)1 to 200 down the column (Excel 365 and Google Sheets)

The non-breaking space deserves a note. It looks like an ordinary space, but it is not plain ASCII. Inside a value, Code 128 rejects it as an unsupported character and EAN-13 or UPC-A fail the digits-only check. If a value looks correct and is still rejected, this is a common reason.

For numbered runs that do not exist in a sheet yet, the sequential barcode generator can build the list without a spreadsheet.

The dropped-leading-zero trap

When you type or paste 00123 into a cell with the General format, the spreadsheet stores the number 123 and the zeros are gone. For SKUs that is annoying. For UPC and EAN numbers it can be worse, because a shorter number may still be accepted:

Original valueWhat the sheet keepsWhat the generator does
00123, a stock code123Draws a barcode for 123, which does not match your labels or database
012345678905, a UPC-A12345678905Sees 11 digits, adds a check digit and draws 123456789050: a valid UPC-A for a different number, with no warning
0012345678905, a UPC as EAN-1312345678905Rejects the line: EAN-13 needs 12 or 13 digits

To keep the zeros, set the column to text before the values go in. In Excel, select the column and choose Text in the number format list on the Home tab. In Google Sheets, use Format, then Number, then Plain text. You can also type an apostrophe before a single value, as in '00123. Changing the format afterwards does not bring lost zeros back. If they are already gone and every value should have the same length, rebuild them with =TEXT(A2,"000000000000") for 12-digit UPC-A numbers, using one 0 for each digit.

Long numbers: E+12 and the 15-digit limit

In Excel's General format, a number of 12 digits or more is shown in scientific notation, so 5036012345674 appears as something like 5.03601E+12. Copying copies what the cell shows. Paste that into the generator and the line is rejected with EAN-13 needs digits only. Format the column as Number with 0 decimal places, or wrap it as =TEXT(A2,"0"), and copy again.

There is a harder limit behind it. Excel keeps only 15 significant digits of a number. Type a 16-digit code such as 1234567890123456 into a number cell and Excel stores 1234567890123450. No format can recover the last digit, because it was never saved. Codes longer than 15 digits must be imported or typed as text from the start.

The CSV route

Online shops and stock systems often export a .csv file. Do not open it by double-clicking. Excel converts each column as it opens the file, which drops leading zeros and turns long numbers into E+ form before you see them.

  • Excel: start from a blank workbook and use Data, then From Text/CSV. In the preview, set Data Type Detection to Do not detect data types, then load. Every column arrives as text.
  • Google Sheets: use File, then Import, upload the file and untick Convert text to numbers, dates, and formulas.
  • A plain text editor: if the file has a single column, open it in Notepad or TextEdit in plain-text mode, delete the header line, select everything and paste it into the generator.

Watch for quotation marks in the raw file. CSV puts double quotes around values that contain a comma or a quote, such as "Tee, large". A spreadsheet removes them on import, but if you copy straight from a text editor, Code 128 accepts the quotes as ordinary characters and draws them into the barcode. Remove them first, or go through the spreadsheet import.

The generator has no upload button on purpose. You paste text into the page, the barcodes are drawn there, and the file never leaves your computer.

Putting the barcodes back next to each row

The files in the ZIP are numbered in list order, such as 001-SKU-0042.png, 002-SKU-0043.png. The numbering counts only the barcodes that were made. If one line was skipped, every file after it is one number behind its row, so fix every red line before you download.

To show each barcode beside its row, insert the PNG files into cells. In Google Sheets use Insert, then Image, then Insert image in cell. Current versions of Excel 365 have a similar Place in Cell option for pictures. For printing on label sheets, place the SVG or PNG files in your label software instead; how to print barcode labels that scan covers sheet codes, sizes and scaling.

Frequently asked questions

Do I need a barcode font or an Excel add-in?

No. Paste the column into the generator and it draws the barcodes. Fonts for Code 128 and EAN also need a formula or macro to add the start, check and stop characters, which is where most font-based barcodes go wrong.

Can I upload my spreadsheet file instead of pasting?

There is no upload. Copy the column and paste it. This keeps the file on your computer and avoids the conversions that happen when a file is opened.

Why did my numbers turn into 5.03601E+12?

Excel shows numbers of 12 or more digits in scientific notation in the General format, and copying copies that text. Format the column as Number with 0 decimal places, or as text, and copy again.

How many rows can I paste at once?

Up to 500 values per batch. Rows beyond that are left out and the status line says so. Paste the next 500 as a new batch.

Will the barcodes stay linked to my spreadsheet?

No. The barcodes are files made from the values at the moment you pasted them. If a value changes in the sheet, paste it again and download a new barcode.

Open the Bulk Barcode Generator