Fix Excel scientific notation in a CSV
Double-click a CSV and Excel will treat a long barcode, account number, or timestamp as a number. It then writes the cell back as 8.85909E+11. The next importer rejects the file, or worse, accepts a number that is no longer the original ID.
Before
product,barcode Notebook,8.85909E+11 Mug,1.23456789012E+11
After
product,barcode Notebook,885909000000 Mug,123456789012
CSV Clinic expands notation with exact decimal math, not floating point, so it will not invent a new rounding error. If the saved value only kept six significant digits, the tool still expands it, then flags the cell: the trailing zeros may not be the original barcode. Nothing can honestly restore digits Excel already discarded.
Use the in-browser tool and try the “Excel IDs & ZIPs” sample, or drop your own file. For an Excel-safe download, turn on the Excel-safe option so long IDs are written as ="..." text formulas and Excel is less likely to mangle them again.
FAQ
Why not just parse the number with a normal float?
A JavaScript number cannot hold a 16-digit ID exactly. The expander works on the digit characters and the exponent, so 1.23456789012E+11 becomes 123456789012 with no binary rounding.
Will this change ordinary decimals such as 1.5e-4 in a science file?
Only a cell whose entire value looks like Excel-style scientific notation (a significand and an explicit E+ or E-) is expanded. Product codes such as 12E15 are left alone.
Who runs CSV Clinic?
Short Solutions runs CSV Clinic. The repair tool on this site is free and stays in your browser. Optional paid fixes are listed on the pricing section.