Fix Barcode Numbers in Excel (Leading Zeros & Scientific Notation)
Did Microsoft Excel drop your leading zeros or turn your 13-digit EAN into 8.90123E+12? Paste your numbers below to restore missing zeros and download clean, sanitized CSVs.
| Original Input | Repaired Value | Status & Reason |
|---|---|---|
| 036000291452 | 036000291452 | Already valid 12-digit UPC-A barcode. Left untouched. |
| 36000291452 | 036000291452 | Suggested repair: Adding leading 0 passes UPC-A Modulo-10 checksum. Confirm your product originally had a leading zero (random numbers pass ~10% of the time). |
| 8901234567890 | 8901234567890 | Already valid 13-digit EAN-13 barcode. Left untouched. |
| 8.90123E+12 | 8.90123E+12 | Unrecoverable scientific notation from saved CSV. Last 7 digits were irreversibly rounded by Excel. |
| 4006381333931 | 4006381333931 | Already valid 13-digit EAN-13 barcode. Left untouched. |
Why Does Excel Ruin Barcodes and How Do You Stop It?
By default, Microsoft Excel assumes any cell containing only digits is an arithmetic number. If a barcode starts with 0 (common in North American UPC-A and GS1 prefixes), Excel drops the leading zero because numbers don't start with zero. Furthermore, for numbers with more than 11 digits, Excel automatically converts them into scientific notation (like 8.90123E+12).
- Select the entire barcode column in Excel.
- Right-click โ Format Cells.
- Under Category, choose Text and click OK.
- Or type a leading single quote
'036000291452before the number.
If a file has already been saved as a CSV in scientific notation (e.g. 8.90123E+12), the last 7 digits have been permanently overwritten with zeroes. Never trust online tools that claim to "restore" them; they must be re-exported from your original inventory database.