Scan Barcodes to Excel

Scan a pile of barcodes with your phone, webcam or USB scanner and download them as a real Excel file: one row per code with format, quantity and scan time. Codes are saved as text, so leading zeros and long numbers come through intact.

  • 100% free
  • Real .xlsx file
  • Keeps leading zeros
  • 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 Excel

  1. Tap Start camera (Batch mode is already on), or click the type box to use a USB scanner.
  2. Scan each item. Duplicates merge into one row; tick “Count repeat scans as quantity” to count units.
  3. Fix quantities with the + and − buttons, and remove mistakes with ✕.
  4. Click Download Excel (.xlsx) and open the file in Excel, Numbers or LibreOffice.

Quick answer: scan in Batch mode, then download the .xlsx. Each barcode becomes a row with columns for the code, the barcode type, the quantity and when it was first and last scanned.

What’s in the Excel file

ColumnExampleStored as
code012345000058Text, so leading zeros stay
formatUPC-AText
quantity3Number, ready for SUM
first_scanned2026-11-26 14:02:11Text, your local time
last_scanned2026-11-26 14:05:47Text, your local time

The header row is bold and frozen, and the columns are sized to fit. The same columns are used for the CSV download and for Copy for Sheets / Excel, which puts a tab-separated table on the clipboard to paste into an open workbook.

Why not just CSV?

Barcodes look like numbers but aren’t. When Excel opens a CSV it converts 012345000058 to 12345000058, shows 13-digit EANs as 9.52012E+12, and rounds anything over 15 digits. A product list with dropped zeros won’t match your supplier’s catalogue or your point-of-sale system. Writing a genuine .xlsx with text cells sidesteps all of that.

Matching scans to your product list

Put the scans on one sheet and your catalogue on another, then pull in names and prices with =XLOOKUP(A2, Products!A:A, Products!B:B, "not found") (or VLOOKUP in older Excel). Both sides must be text for the match to work, which is another reason to keep codes as text. To total quantities per code across several exports, use a PivotTable or SUMIF.

Scanning straight into Excel with a USB scanner

If you have a keyboard-wedge USB scanner, you can skip this page: format column A as Text, click A2 and scan. The scanner types the code and presses Enter, moving to the next row. This page is handier when you’re away from the computer, counting with a phone, or want quantities merged automatically. Not sure your scanner is set up right? Run the barcode scanner test.

Prefer Google Sheets? See scan barcodes to Google Sheets. Need to go the other way and turn a spreadsheet into barcodes? Use the bulk barcode generator.

Frequently asked questions

How do I scan barcodes into Excel?

Scan the items with your phone or webcam in Batch mode above (or type and USB-scan into the box), then click Download Excel (.xlsx). You get one row per code with its format, quantity and scan times. With a USB scanner you can also scan straight into Excel: click a cell, scan, and Enter moves to the next row.

Why does Excel remove the leading zeros from my barcodes?

Excel treats a cell like 012345000058 as a number and drops the zero. The .xlsx file from this page stores each code as text, so the zeros stay. If you scan directly into Excel, select the column first and set Format Cells › Text.

Why do my barcodes show as 9.52012E+12 in Excel?

Long numbers in a General-format cell are displayed in scientific notation, and Excel only keeps 15 significant digits, so 18 to 20 digit codes like SSCCs lose their last digits. Text cells avoid both problems; the .xlsx download already uses them.

Is CSV or Excel better?

Excel (.xlsx) if you’ll open the file in Excel or Numbers, because the code column stays as text. CSV is better for importing into other software, but opening a CSV by double-clicking it in Excel will strip leading zeros unless you import it with Data › From Text/CSV and set the column to Text.

Can I count quantities?

Yes. Tick Count repeat scans as quantity, or use the + and − buttons next to each row. The quantity column is a number in Excel, so you can total it with SUM.

Will I lose my list if I close the page?

No. The list is saved in this browser on this device until you click Clear. It isn’t uploaded anywhere, so export it before switching devices.

Can I use a USB barcode scanner with this page?

Yes. Click the “Type a code, or scan with a USB scanner” box and scan. Each scan is added to the same list as camera scans.

Related free tools