This tool converts a CSV file into a real Excel .xlsx workbook in your browser. Unlike renaming a file to .xls, which only produces a fake spreadsheet Excel complains about, this builds the proper OOXML format so the result opens cleanly everywhere and treats numbers as numbers.
How it works
There are three stages, all running locally:
- CSV parsing. The text is parsed according to RFC 4180. Quoted fields are unwrapped, doubled quotes (
"") become a single literal quote, and commas or newlines inside quotes are kept as part of the field rather than splitting it. - Cell typing. Each value is checked against a numeric pattern. Genuine numbers become Excel number cells; all other values become inline string cells, which preserves IDs, dates and anything with leading zeros exactly as written.
- Workbook assembly. The tool writes the required OOXML parts —
[Content_Types].xml, the relationship files,workbook.xml, a smallstyles.xmlfor the optional bold header, and the worksheet itself — then packs them into a ZIP using the STORE method with a correctly computed CRC-32 on every entry. That ZIP, with an.xlsxextension, is a valid Excel workbook.
No spreadsheet library is loaded and nothing is sent anywhere; the entire converter is a few hundred lines of JavaScript running on your machine.
Tips and example
Given a CSV whose first line is name,age,city, leave Bold first row ticked to get a styled header, and the age column will arrive as real numbers you can sum or sort. If your export uses semicolons (common in European locales) switch the delimiter to semicolon so the columns split correctly.
For the reverse direction — pulling data back out of a spreadsheet — use the companion XLSX to CSV converter.