Getting started

How to create barcodes in Google Sheets: Code 128, UPC, EAN and QR

The short answer

Separate each identifier into a clean spreadsheet column, choose the code format that matches its use, and test printed samples with the intended scanner.

Step-by-step

How to do it

  1. 01

    Confirm the stock and paper.

    Read the exact product number on the package, note whether the sheet is US Letter or A4, and compare the printed dimensions with the stock in hand.

  2. 02

    Prepare the source list.

    Use one row per person or item, keep each changing field in a separate column, and preserve postal codes or identifiers as text.

  3. 03

    Open the matching PrintGenius tool.

    Use the product page linked below to confirm the current install and availability details before starting a production run.

  4. 04

    Choose the exact template.

    Search by the number on the package first. A close-looking template can differ in margins, pitch, paper size, or label count.

  5. 05

    Map the source fields.

    Place the required fields in a readable order, leave optional fields separate, and check records with the longest names or addresses.

  6. 06

    Review the first and last positions.

    Check several records in the preview, including the longest one and the last row, before creating the output.

  7. 07

    Print a plain-paper proof.

    Set paper size and orientation correctly, choose Actual size or 100%, turn off Fit to page, and compare the proof with the stock.

  8. 08

    Run a small batch first.

    Print one real sheet after the proof looks right. Keep the approved template number and printer settings with the source file for repeat runs.

Example of barcode labels prepared for a thermal printer
Example barcode output; validate the symbol type and scan a printed sample before use.

Choose a format based on the job

Code 128 is a compact, high-density format often used for internal SKUs, locations, work orders, and inventory identifiers. It can encode letters and digits, making it useful when a company controls its own values. A QR code stores data in two dimensions and can hold text or a URL; it is appropriate when people will scan with a phone or a 2D reader.

UPC-A and EAN-13 are retail formats tied to registered product identifiers and check digits. They are not interchangeable with an internal SKU and should not be generated from arbitrary numbers for retail packaging. Confirm that you have an authorized GS1 identifier and a valid length before using these codes in a retail environment. The right symbology depends on scanners and downstream systems.

Keep identifiers stable in the sheet

Use one row per item and a dedicated column for each value, such as SKU, GTIN, URL, and display name. Set identifier columns to plain text before entering values so leading zeros survive. Spreadsheet number formatting can remove zeros, round long values, or display scientific notation; those changes can make a barcode encode the wrong value even when the cell looks nearly correct.

Avoid using formulas that produce inconsistent whitespace or punctuation. Trim values, check duplicates, and decide whether an identifier includes hyphens or other separators before encoding. Store a human-readable value near the printed code when staff need to confirm a scan by eye. Keep the source sheet as the record of truth; a barcode is only a machine-readable representation of the value.

Generate and size the code for its scanner

Pick the symbology supported by the actual scanner and workflow. A retail POS scanner may expect a particular UPC or EAN, while an internal warehouse scanner may accept Code 128. Phone cameras can scan QR codes, but a warehouse handheld may not. Test with the hardware and software that will be used in production rather than relying on a generic online preview.

Code dimensions matter. A long Code 128 value needs more width; a dense QR payload needs more area and a clear quiet zone. Do not force a long value into a tiny label by shrinking the bars or modules until the scanner fails. Use a larger label, shorter controlled value, or a different approved format. Keep contrast high and avoid color, gradients, or nearby lines that can confuse a reader.

Validate values and printed output

Create a small test set with a short value, the longest value, a leading-zero identifier, and any format-specific edge case. Generate the codes, print on plain paper at actual size, and scan each one. Confirm that the scanner returns the exact expected string, including zeros and letters. Compare the human-readable text beside it with the spreadsheet source.

For retail UPC or EAN use, verify check digits and registration with the relevant provider; do not assume a visually valid barcode is an authorized product identifier. If a test fails, check the source value first, then symbology, size, print darkness, quiet zone, and scanner configuration. Keep a record of the approved code format and label stock for future runs.

Tips

  • Keep a plain-paper proof with the approved stock number and printer settings so the next run can be compared.
  • Use a copy of the spreadsheet for a new run; keep the original list as the source of truth.
Frequently asked questions

Questions about this guide

Can I use a custom label size?

Use a catalog product number when the exact stock is listed. For a custom sheet, measure label width, height, spacing, paper size, and margins before choosing a custom layout.

Why should I print a plain-paper test?

A test reveals scaling, paper-feed, and orientation problems before adhesive stock is used. Hold the test behind the actual sheet against a bright light.

Does the preview guarantee printer alignment?

No. It confirms the generated layout, while the printer and driver control physical scaling and feed. Check the printed proof at the top, middle, and bottom.

Where can I check the tool?

See the barcode wizard product page for current availability, privacy details, and installation information.

Can I use any number as a UPC or EAN?

No. Retail identifiers must be issued through the appropriate GS1 process. Internal values should use a suitable internal symbology such as Code 128.

Does a barcode protect or encrypt the value?

No. A barcode stores a value in a machine-readable form; anyone with a compatible scanner can read it.

Check the sheet before a full print run

Use the exact product number and paper format shown on your package. Review the preview for the first and last labels, then print a plain-paper test at Actual size or 100 percent. Turn off Fit to page and other scaling options so the printer does not shrink the layout. Compare the test sheet with your label stock in good light before feeding labels into the printer.

Look for a consistent gap at the top, sides, and bottom. If the first row lines up but the last row drifts, check printer-driver scaling, page size, and orientation. If every row shifts by the same amount, verify the sheet margins and printer feed direction. Update the source document or spreadsheet before creating another output so the printed values stay connected to the data you meant to use.

For a repeatable workflow, keep one sample record with the longest name or address, review it in the preview, and confirm that every required field appears. When the result looks right on plain paper, print one real sheet before preparing a larger batch. Use the alignment checklist if the test does not match.