CSV to Excel converter
Turn a .csv file into an .xlsx workbook. It runs in your browser, so the file never leaves your computer, and it streams, so files with hundreds of thousands of rows work too.
or drop it here
The file is converted in your browser. It is never uploaded.
What you get
- Numbers become real numbers you can add up. Values with leading zeros, such as
007or phone numbers, stay as text, so the zeros are kept. - The header row is bold and frozen, and columns are sized to fit the first 100 rows.
- Commas, semicolons, tabs and pipes are detected from the first line. Quoted fields can contain line breaks and quotes.
- Dates stay as text, because a CSV file doesn't say whether 03/04 is March or April.
- Excel holds 1,048,576 rows per sheet; anything beyond that is left out, and you'll be told.
Do the same in your own code
This page is built on XlsxFlow, an open-source JavaScript library. The converter above comes down to this, and the same code runs in Node, Bun, Deno and Cloudflare Workers:
import { SheetWriter, parseCsv } from '@xlsxflow/core';
// Rows stream from the CSV into the .xlsx one at a time
const xlsx = new SheetWriter().addSheet('Data', parseCsv(file.stream())).write();
const blob = await new Response(xlsx).blob();npm install @xlsxflow/core. MIT licence, no dependencies.