Why Excel turns long IDs into 1.23E+15, and what can still be saved
You export a list of orders. In the original system the ID is 123456789012345678. You open the CSV in Excel to “just take a look,” save it, and send it on. Downstream, the IDs look like 1.23457E+17 and lookups fail. This is not a mysterious bug. It is Excel doing arithmetic on a value that was never a quantity.
This page is for the moment after that has started to happen, or for the moment just before you let it happen. Paste a CSV, or drop a CSV or Excel file. The tool looks for long digit strings, leading zeros, and scientific-notation tokens, rewrites them as plain text, and gives you an .xlsx workbook (or a CSV with Excel-safe ="…" fields) that will not immediately do it again. The file is not uploaded.
- Paste or drop the damaged (or at-risk) file. A UTF-8 BOM is stripped. If you drop a workbook, the first sheet is used.
- Read the preview and the status line. Cells that will be stored as identifiers are highlighted. If a scientific value had to be expanded by padding zeros, it is highlighted as lossy, and the status line tells you how many of those there are.
- Download Excel or a fixed CSV. Prefer Excel: text cells are a real type in a workbook. Use the CSV download when a program must receive text, and leave the Excel-safe option on if a person might open that CSV in Excel later.
Use the button to see a full 18-digit ID, a scientific-notation ID, a leading-zero code, and the names 张伟 and 李娜 in the same file.
Two different failures that look the same
Excel has about 15 digits of numeric precision. That is a hard limit of the way it stores numbers, not a display preference. If a 16-, 17- or 18-digit identifier is imported as a number, the last digits are already gone, even if the cell still looks like a long integer for a moment. Saving the file then writes the rounded value. No tool can reconstruct an order ID that has already been rounded, any more than you can get a shredded document back from the leftover flakes.
A second failure is display-only. A 12- or 15-digit number may show as 1.23E+14 because the column is narrow, while the underlying value is still complete. Widening the column, or switching the format to text (or to the number format 0), brings the digits back. The trap is that some “Save As CSV” paths write the displayed scientific text rather than the full value. After that save, you no longer have the underlying number. You have the token 1.23E+14.
This tool treats those cases differently. A still-complete run of 15 or more digits is kept as text, character for character. A leading-zero value such as 00123 is kept as text, because as a number it would collapse to 123. A scientific token is expanded with string arithmetic, not with a floating-point parse, so 1.234567890123456E+15 becomes 1234567890123456 without a JavaScript number getting in the way. If the significand does not contain enough digits and the expander has to pad zeros, the cell is marked lossy: the trailing zeros are a guess, and they are probably wrong.
A value such as 1.23E+15 can only become 1230000000000000. If the original ID was 1234567890123456, that information is not in the file any more. The honest output is the padded number plus a warning.
What this will not fix, and how to avoid needing it
If Excel has already rounded the value and saved the rounded number, the original ID is not in the document. Go back to the system that issued the ID, or to a copy of the export that was never opened in Excel. This page cannot help a file that only contains the wreckage.
The reliable prevention is to stop giving Excel a chance to treat identifiers as numbers. Convert the CSV to a workbook with the CSV to Excel converter before anyone double-clicks it. In Excel itself, import through Data → From Text/CSV, set the identifier columns to Text, and never use Open on the CSV. If you are pasting into a blank sheet, format the column as Text first. In a CSV you control, wrap identifier fields as ="123456789012345678", which is what the Excel-safe download on this page writes.
The same accident happens with Chinese national ID numbers (18 digits), courier tracking numbers, payment references, database snowflake IDs, and some barcode and IMEI values. Google Sheets uses similar numeric precision, so it is not a safe workaround.
How the rewrite is written back out
In the Excel download, identifier-like values are stored as text cells. Ordinary short numbers, such as a quantity of 42 or a ZIP code 94043 that does not start with zero, are left alone. In the CSV download, the same values are written as ="…" when the Excel-safe option is on. If the incoming CSV already used that form, it is unwrapped first so the value is not wrapped twice.
Chinese and other non-ASCII text is not modified. CSV input keeps a UTF-8 BOM on the way out so Excel on Windows is more likely to display 张伟 correctly. The Excel download stores Unicode directly and does not need a BOM.
What this page does not do
It does not scrape an ID out of a PDF or look one up in the issuing system. If the identifiers are still in a table on a web page, export them with the Table to Excel & CSV Chrome extension, which writes long IDs as text from the start.
Frequently asked questions
Is my file uploaded?
No. Detection and rewriting run locally in your browser. The Excel engine is fetched from this site the first time you download a workbook or drop an Excel file.
Can you recover an ID that already shows as 1.23E+17?
Only if the file still contains enough significant digits to reconstruct the integer, or if the original digits are still present in another column. If zeros have to be padded, the result is marked lossy and should not be trusted as the original identifier.
Why are 15-digit numbers treated as identifiers here?
Excel’s numeric precision is about 15 digits. A 15-digit value is already at the edge, and some export paths will write it in scientific notation even when the digits were still intact. This page is conservative on purpose. Values with 14 or fewer digits, other than leading zeros, are left as ordinary numbers.
Will this work in Excel for Mac, Numbers, or Google Sheets?
The .xlsx download is a standard workbook. The CSV download with a UTF-8 BOM and Excel-safe fields is meant for Excel; other tools usually open it as well.
Is there a row limit?
No hard cap is imposed. The preview shows the first twelve rows; the download includes every row.
Is this affiliated with Microsoft Excel?
No. “Excel” refers to the common spreadsheet program and its .xlsx format. This is an independent tool.