Read, write and edit xlsx as a stream.
A JavaScript library with no dependencies. Rows go through one at a time, so memory stays flat whether the file has a hundred rows or a million. Runs in Node, Bun, browsers and Cloudflare Workers.
$ npm install @xlsxflow/coreAlso reads .xls and .ods, and writes .ods. Free under the MIT licence.
| A | B | C | D | E | F | G | H | |
|---|---|---|---|---|---|---|---|---|
| 1 | ||||||||
| 2 | ||||||||
| 3 | ||||||||
| 4 | ||||||||
| 5 | ||||||||
| 6 | ||||||||
| 7 | ||||||||
| 8 | ||||||||
| 9 | ||||||||
| 10 | ||||||||
| 11 | ||||||||
| 12 | ||||||||
| 13 | ||||||||
| 14 |
This sample was written by SheetWriter in your browser a moment ago, then read back by SheetReader. Open your own file to try it; it stays on your computer.
Read a file
import { SheetReader, createBlobReader } from '@xlsxflow/core';
const rows = await new SheetReader().parse(createBlobReader(file));
for await (const row of rows) {
console.log(row.rowNumber, row.cells); // 1 ['Order', 'Date', …]
}Stream one out of a server
import { SheetWriter } from '@xlsxflow/core';
const writer = new SheetWriter();
writer.addSheet('Report', rowsFromDatabase()); // an array or async iterable
const xlsx = writer.write(); // ReadableStream<Uint8Array>
return new Response(xlsx);Styles, formulas, merges, frozen panes, images and more are covered in the documentation.
Free tools
Built on XlsxFlow and running in your browser. Your files are never uploaded.
Node running out of memory on big spreadsheets? Read fixing “JavaScript heap out of memory” with Excel files.
Compared with SheetJS and ExcelJS
SheetJS reads and writes far more formats, and ExcelJS has a longer track record. XlsxFlow focuses on .xlsx: streaming in flat memory, keeping everything in a file it edits, and running on Web APIs alone.
| Feature | XlsxFlow | SheetJS Community Edition | ExcelJS 4.4 |
|---|---|---|---|
| Streaming .xlsx read and write | Yes | No (streams CSV, HTML and JSON out) | Yes |
| Cell styles, read and write | Yes | No (SheetJS Pro) | Yes |
| Images | Yes | No | Yes |
| .xls | Read | Read and write | No |
| .ods | Read and write | Read and write | No |
| .xlsb, .numbers and other formats | No | Yes | No |
| Charts | Add (Pro) | No (SheetJS Pro) | No |
| Pivot tables | Add (Pro) | No (SheetJS Pro) | Partial, undocumented |
| Password-protected files | Open and save (Pro) | Old .xls obfuscation only (SheetJS Pro opens AES files) | No |
| Licence | MIT, Pro is paid | Apache 2.0 | MIT |
Speed and memory
| Library | Write 1M cells | Heap growth | Read 1M cells | Peak memory |
|---|---|---|---|---|
| XlsxFlow | 2.9 s | +2 MB | 2.3 s | 96 MB |
| ExcelJS 4.4, streaming | 3.4 s | +9 MB | 2.7 s | 263 MB |
| SheetJS 0.20.3, compressed | 4.4 s | +140 MB | 6.1 s | 549 MB |
Features were checked against each project's own documentation on 8 October 2026: SheetJS formats, SheetJS Pro and the ExcelJS README. ExcelJS's last release was in October 2023.
Timings are from one laptop on Node 25 and varied by up to 2× between runs, so treat differences under about 20% as a tie. The method, more libraries and the scripts are in the README. Spotted something out of date? Tell us and we'll correct it.
Want numbers for your own data? Compare all three on one of your files, in your browser.
SheetJS and ExcelJS belong to their respective owners. XlsxFlow isn't affiliated with or endorsed by either project.
Free, and Pro for $5.
| What it does | Core | Pro |
|---|---|---|
| Read .xlsx, .xlsm, .xls and .ods | ||
| Write and edit .xlsx, write .ods | ||
| Styles, formulas, images, tables, notes and conditional formats | ||
| Fill Excel templates with data, with rows that repeat for lists | Not included | |
| Column, bar, line, area and pie charts | Not included | |
| Pivot tables | Not included | |
| Open and save password-protected .xlsx files | Not included |
@xlsxflow/pro is an add-on to the core package for the work that usually needs Excel itself: templates, charts, pivot tables and passwords.
- Free for the first 100 developers during the beta, then $5 per developer, one-time payment.
- Perpetual licence, with every version released within a year of your order.
- Build servers and CI don't need their own key.
- Full refund within 14 days if it doesn't work for you, processed by Polar.
See what Pro makes
Files made by Pro. Open them in Excel or LibreOffice.
How it works
- Install it:
npm install @xlsxflow/core @xlsxflow/pro - Get Pro through the Polar checkout. You come back here and your key appears in Get your licence key. Lost it later? Enter the order ID from your Polar receipt there.
- Call
await setLicenseKey(key)once at startup. Without a key, Pro functions throw an error.
Get your licence key
Bought Pro? Enter the order ID from your Polar receipt and the email you used. The key is made on the spot and works offline; nothing is stored here.
Lost the receipt or stuck? Email palikaomkar@gmail.com.