@office-kit/xlsx

TypeScript library to read, edit and write Excel workbooks in Node and the browser

Visit website

Overview

Your script opens a customer's workbook, changes three cells, saves — and quietly corrupts a chart nobody modeled. Round-tripping real-world Excel files is where most libraries do their damage.

@office-kit/xlsx leaves the parts it doesn't model byte-for-byte intact, so a read-edit-write cycle changes what you touched and nothing else. Output is validated against the ECMA-376 specification, which means the files it writes play by the format's own rules.

What it does

  • Reads, edits and writes .xlsx workbooks from TypeScript
  • Preserves unmodeled content exactly as it was in the source file
  • Streams large worksheets instead of loading everything at once
  • Validates output against the ECMA-376 specification

How it runs

A TypeScript library for Node 22+ and modern browsers — the same code handles a server-side export job and an in-browser edit.

Who it's for

Developers whose apps touch Excel files they didn't create, and who can't afford a save that silently rewrites the rest of the workbook.

  • Convert scanned PDF books into editable Markdown or EPUB

    Document Parsing Ocr
  • Translate scientific PDFs while preserving layout, formulas and charts

    Document Parsing Ocr
  • Turn documents or topics into native, editable PowerPoint decks

    Document Parsing Ocr