Scan Barcodes to Google Sheets

Scan barcodes with your phone, webcam or USB scanner, then paste them into Google Sheets as a ready-made table: code, type, quantity and scan time. There’s no add-on to install and no account to connect.

  • 100% free
  • No add-on
  • Paste as a table
  • Nothing uploaded

Your browser will ask to use the camera. Tap Allow. The video is processed on your device and never uploaded.

Single shows each scan with its actions. Batch builds a de-duplicated list you can export, handy for stock counts.

Your scan list

Results appear here as soon as a barcode is in view. Hold it flat, fill most of the frame, and avoid glare.

Your list is kept in this browser until you clear it, so a reload won't lose your count.

How to scan barcodes to Google Sheets

  1. In Google Sheets, select column A and set Format › Number › Plain text.
  2. Here, tap Start camera or click the type box for a USB scanner, and scan your items.
  3. Click Copy for Sheets / Excel.
  4. Click cell A1 in Sheets and paste with Ctrl+V or ⌘+V.

Quick answer: scan in Batch mode, press Copy for Sheets / Excel, and paste into Google Sheets. Set the code column to Plain text first so leading zeros survive.

What gets pasted

The copy button puts a tab-separated table on the clipboard. Google Sheets splits tabs into columns automatically, so you get five columns:

  • code: the barcode value, such as 9520123456788 or SKU-48213-BLUE.
  • format: the barcode type, such as EAN-13, UPC-A, Code 128 or QR Code.
  • quantity: how many times you counted it.
  • first_scanned and last_scanned: local date and time.

Only want the values? Copy codes only copies one code per line with no header.

Useful formulas once the codes are in

  • Product names from a catalogue tab: =XLOOKUP(A2, Catalog!A:A, Catalog!B:B, "not found").
  • Total units: =SUM(C2:C).
  • Combine several pasted counts per code: =QUERY(A2:C, "select A, sum(C) where A is not null group by A").
  • A code looks wrong? Check it with the barcode validator.

Building a shared stock list

Google Sheets is a good home for a shared count because several people can paste into the same file. Have each person scan one area in Batch mode, paste their table into a tab named after the area, and total everything on a summary tab with QUERY or a pivot table. Each phone keeps its own list until it’s cleared, so a reload doesn’t lose anyone’s count. For a full stock-take workflow, see the inventory scanner.

Showing barcodes inside Sheets

Going the other way, you can display barcode images in cells with the free barcode API and the IMAGE() function. Working in Excel instead? Scan barcodes to Excel downloads a real .xlsx file.

Frequently asked questions

How do I scan barcodes into Google Sheets?

Scan your items in Batch mode above with a phone, webcam or USB scanner, click Copy for Sheets / Excel, then click cell A1 in your sheet and paste. Each code lands in its own row with columns for format, quantity and scan times.

How do I keep leading zeros when pasting into Google Sheets?

Before pasting, select the column that will hold the codes and choose Format › Number › Plain text. Sheets then keeps 012345000058 as typed instead of turning it into a number.

Can I import a CSV instead?

Yes. Click Download CSV, then in Sheets use File › Import › Upload. Untick “Convert text to numbers, dates, and formulas” so codes keep their leading zeros.

Can I scan on my phone and paste on my computer?

The simplest way is to download the CSV on your phone, save it to Google Drive, and open it with Sheets on the computer. Or open the sheet in the Sheets app on the phone and paste there.

Does Google Sheets have its own barcode scanner?

There’s no general camera scanner built into Google Sheets on the web. You can type into a cell with a USB scanner, or use this page to scan with a camera and paste the result.

Is my list saved?

Yes, in this browser on this device, until you click Clear. Nothing is uploaded.

Related free tools