CSV to XLSX
Turn a CSV into a workbook without letting the spreadsheet mangle your data.
CSV
How this reads your output
The CSV is parsed with its delimiter inferred, then written as a workbook. Before that happens, every column is checked for values a spreadsheet would reinterpret, and they are named with what they would become. That check is the substance of the tool: a converted file with a postcode column reading 1234 instead of 01234 opens perfectly, shows the right columns, and is wrong. Keeping every value as text is on by default and forces each cell to a string type in the written file, which is what stops the writer re-guessing on the way out.
What the results mean
- Values kept as text
- On by default. Every cell is written as a string, so nothing is reinterpreted.
- Leading zeros
- Data rather than formatting. Postcodes and part numbers depend on them and cannot be recovered.
- Date coercion
- SEPT1 and MARCH1 become dates. Real month names only — a part code like SKU123 is left alone.
- Fifteen digits
- All a spreadsheet carries. Longer identifiers lose their final digits silently.
Common problems and fixes
- My postcodes lost their leading zeros
- Turn on keeping values as text. Once converted without it the zeros are gone from the file and cannot be restored.
- A product code turned into a date
- Same fix. Text mode stops the reinterpretation; without it the original string is not stored anywhere in the file.
- Long ID numbers end in zeros
- Fifteen significant digits is the spreadsheet limit. Text mode keeps them intact, since a string has no such limit.
Frequently asked questions
Why do leading zeros disappear?
Because the spreadsheet decides the column is numeric and a number has no leading zeros. It is not a display setting — the original string is not kept anywhere, which is why the damage is permanent.
Is the gene renaming story real?
Yes. Excel converted symbols such as SEPT1 and MARCH1 into dates often enough in published genetics data that the HGNC renamed the genes in 2020 rather than continue correcting papers.
Does keeping values as text break formulas?
There are no formulas in a CSV to break. If you need numeric columns for calculation, convert those specific columns inside the spreadsheet afterwards, where you can see what you are changing.
Put this on your own site
Free to embed, no attribution required beyond the source link the frame carries itself. It runs entirely in your visitor's browser, sets no cookies and loads no third-party script.
<iframe src="https://runthetests.com/embed/csv-to-xlsx/" width="100%" height="720" style="border:1px solid #e5e5e5;border-radius:8px" title="CSV to XLSX" loading="lazy"></iframe>
Preview it at https://runthetests.com/embed/csv-to-xlsx/. Embedded pages are marked noindex, so yours stays the canonical copy — not this one.