JavaScript Excel workbook libraries

Updated Nov 2026

JavaScript Excel libraries read and write spreadsheet workbooks such as XLSX files in browsers and Node.js. Most of these libraries read the formula results stored in a workbook rather than calculating them. These libraries produce the reports, data exports, and import templates that business apps exchange as spreadsheets.

Popularity

exceljs has the most monthly downloads in this comparison, at 105.0M.

LibraryMonthly downloadsStarsLast releaseLicense
exceljs
105.0M
15.5KOct 2023MIT
xlsx
60.5M
36.3KJul 2024Apache-2.0
read-excel-file
19.6M
331Nov 2026MIT
write-excel-file
10.0M
36Jun 2026MIT
xlsx-js-style
4.6M
513Apr 2022Apache-2.0
node-xlsx
2.0M
3.0KNov 2026Apache-2.0
xlsx-populate
1.1M
1.0KMar 2020MIT
excel4node
536.2K
135May 2023MIT
Downloads: npm, last thirty days. Stars and releases: GitHub. Amber: no release in over a year.

Libraries and code examples

Reads, builds, and styles spreadsheet workbooks in JavaScript.

Downloads / mo
105.0M
Stars
15.5K
Last release
4.4.0
License
MIT

Strengths

  • Streams workbook rows. Write rows progressively and release committed row objects.
  • Styles cells, rows, and columns. Apply number formats and visual styles at different worksheet levels.

Limitations

  • Formula results need external calculation. Supply calculated results when writing formula cells.
  • Streaming mode excludes images. Use document workbooks when the exported spreadsheet needs images.

Quickstart

From README.md
$ npm install exceljs
const ExcelJS = require('exceljs');
const workbook = new ExcelJS.Workbook();
workbook.addWorksheet('Sheet1');
await workbook.xlsx.writeFile('output.xlsx');

exceljs examples

From open-source projects on GitHub

Extracts spreadsheet data and generates new spreadsheet files.

Downloads / mo
60.5M
Stars
36.3K
Last release
0.20.3
License
Apache-2.0

Strengths

  • Reads varied spreadsheet formats. Extract data from older XLS files and current XLSX workbooks.
  • Builds workbooks from row objects. Convert JavaScript records into worksheets and export an XLSX file.

Limitations

  • Npm releases trail official downloads. Install the current release from the official download URL.
  • File decryption covers XOR only. Use another tool for AES-encrypted XLSX files.
  • Formula results need external calculation. Writing formulas does not calculate their results in JavaScript.

Quickstart

From Utilities docs
$ npm install https://cdn.sheetjs.com/xlsx-0.20.3/xlsx-0.20.3.tgz
const XLSX = require('xlsx');
const workbook = XLSX.utils.book_new();
const sheet = XLSX.utils.aoa_to_sheet([['Name'], ['Ada']]);
XLSX.utils.book_append_sheet(workbook, sheet, 'Sheet1');
XLSX.writeFile(workbook, 'output.xlsx');

xlsx examples

From open-source projects on GitHub

read-excel-file

Reads XLSX files as rows or schema-mapped records in browsers and Node.js.

Downloads / mo
19.6M
Stars
331
Last release
9.3.17
License
MIT

Strengths

  • Maps rows through schemas. Map spreadsheet columns to named object properties and validate values.
  • Runs in browsers and Node. Read uploaded spreadsheets or files from a Node.js application.

Limitations

  • Legacy XLS files are unsupported. Convert older workbooks to XLSX before reading them.
  • Formula values must be cached. Formula cells without stored results are read as empty cells.

Quickstart

From README.md
$ npm install read-excel-file
import { readSheet } from 'read-excel-file/node';
const rows = await readSheet('./input.xlsx');

read-excel-file examples

From open-source projects on GitHub

write-excel-file

Creates an XLSX file from rows of cell values in a browser or Node.js.

Downloads / mo
10.0M
Stars
36
Last release
4.1.1
License
MIT

Strengths

  • Takes plain arrays of rows. Each cell holds a string, number, boolean, date, or null.

Limitations

  • Needs a recent Node.js. The current release drops support for older Node.js versions.

Quickstart

From README.md
$ npm install write-excel-file
import writeExcelFile from 'write-excel-file/node';
const sheetData = [['Name'], ['Ada']];
await writeExcelFile(sheetData).toFile('./output.xlsx');

write-excel-file examples

From open-source projects on GitHub

Adds basic cell styling to SheetJS for creating Excel spreadsheets.

Downloads / mo
4.6M
Stars
513
Last release
1.2.0
License
Apache-2.0

Strengths

  • Styles fonts, fills, and borders. A style object on each cell sets alignment, border, fill, font, and number format.

Limitations

  • Built on an older SheetJS. The bundled SheetJS core trails the current SheetJS release.

Quickstart

From README.md
$ npm install xlsx-js-style
const XLSX = require('xlsx-js-style');
const workbook = XLSX.utils.book_new();
const sheet = XLSX.utils.aoa_to_sheet([[{ v: 'Name', t: 's', s: { font: { bold: true } } }]]);
XLSX.utils.book_append_sheet(workbook, sheet, 'Sheet1');
XLSX.writeFile(workbook, 'output.xlsx');

xlsx-js-style examples

From open-source projects on GitHub

Parses and builds Excel files in Node.js on top of SheetJS.

Downloads / mo
2.0M
Stars
3.0K
Last release
0.25.0
License
Apache-2.0

Strengths

  • Typed API. The package ships TypeScript types for static type checking.

Quickstart

From README.md
$ npm install node-xlsx
import xlsx from 'node-xlsx';
const sheets = xlsx.parse('./input.xlsx');

node-xlsx examples

From open-source projects on GitHub

Edits XLSX workbooks while preserving existing features and styles.

Downloads / mo
1.1M
Stars
1.0K
Last release
1.21.0
License
MIT

Strengths

  • Preserves existing workbook styles. Edit a template while retaining its existing formatting.
  • Opens compatible encrypted XLSX files. Supply a password for workbooks using XLSX Agile encryption.

Limitations

  • Renaming sheets leaves formula references. Formulas that point at a renamed sheet keep the old sheet name.
  • Formula results need external calculation. Changed inputs do not recalculate formula values.

Quickstart

From README.md
$ npm install xlsx-populate
const XlsxPopulate = require('xlsx-populate');
const workbook = await XlsxPopulate.fromBlankAsync();
workbook.sheet(0).cell('A1').value('Hello');
await workbook.toFileAsync('./output.xlsx');

xlsx-populate examples

From open-source projects on GitHub

Generates XLSX files with styles, formulas, and multiple worksheets.

Downloads / mo
536.2K
Stars
135
Last release
1.8.2
License
MIT

Strengths

  • Reusable cell styles. createStyle defines a style that many cells can share.

Quickstart

From README.md
$ npm install excel4node
const xl = require('excel4node');
const workbook = new xl.Workbook();
const sheet = workbook.addWorksheet('Sheet1');
sheet.cell(1, 1).string('Hello');
workbook.write('output.xlsx');

excel4node examples

From open-source projects on GitHub

FAQ

ExcelJS reads, builds, and styles Excel workbooks in JavaScript. Its streaming writer adds rows progressively and releases committed row objects.

SheetJS CE is the community edition of the SheetJS spreadsheet parser and writer. It extracts data from older XLS files and current XLSX workbooks and exports new workbooks.

ExcelJS builds and styles XLSX workbooks, with a streaming writer for large reports. SheetJS CE reads many spreadsheet formats and converts between them.

The official installation page says the npm registry is out of date. The official download URL supplies version 0.20.3.

xlsx-js-style adds basic cell styles to SheetJS, such as fonts, fills, borders, alignment, and number formats.

ExcelJS requires the formula result to be supplied. SheetJS CE does not automatically calculate formula results. xlsx-populate does not recalculate values after workbook changes.

For coding agents

Found your Excel workbook library? Help your agent use it.

Connect Exa so your coding agent can find the library’s documentation, check its API, and look up implementations while you build.

Run in your terminal

claude plugin install exa@claude-plugins-official