# umya-spreadsheet

> A pure rust library for reading and writing spreadsheet files

Source: https://talira.ai/catalog/umya-spreadsheet-6drjfpkp
Every listing: https://talira.ai/catalog.md

- Kind: Open source
- Types: Library
- Categories: [documents / spreadsheets / editing](https://talira.ai/categories/documents/spreadsheets/editing), [documents / spreadsheets / generation](https://talira.ai/categories/documents/spreadsheets/generation), [documents / spreadsheets / reading](https://talira.ai/categories/documents/spreadsheets/reading), [languages / rust](https://talira.ai/categories/languages/rust)
- Licence: MIT[^2][^3]
- Pricing: Free and open source[^2]
- Free tier: yes[^2]
- Self-hostable: yes[^1]
- Creator: MathNya

umya-spreadsheet is a pure Rust library that reads and writes Excel .xlsx and .xlsm workbooks, so a program can open an existing file, change cell values, styles, rows, columns, charts or images, and save it again; it can also create workbooks from scratch and write CSV. It reads lazily when asked (loading worksheets only when they're used), writes password-protected files, and has a `js` feature for WebAssembly. Unlike [calamine](https://talira.ai/catalog/calamine-5dntk91n.md), which only reads, and [rust_xlsxwriter](https://talira.ai/catalog/rust-xlsxwriter-9mhwtpf3.md), which only writes new files, it does both in one workbook model. Open issues on its tracker report charts, comments and form controls lost or changed when some existing workbooks are saved, so test round trips with real files.

## Links

- GitHub: https://github.com/MathNya/umya-spreadsheet
- Docs: https://docs.rs/umya-spreadsheet

## Problems it solves

- open an existing Excel file in Rust, change a few cells and save it without losing the formatting
- update values in a spreadsheet template and write a copy for each customer from a Rust program
- read cell values and their formatted text from xlsx files in Rust
- change cell background colours, fonts and borders in an existing workbook from code
- add a line or bar chart to an Excel workbook my Rust service generates
- insert an image into a worksheet from Rust
- save an Excel file with a password from a Rust program
- load only the worksheet I need from a very large workbook to save time
- edit macro-enabled .xlsm files without breaking the macros
- move a range of cells to another place in a sheet from code
- read and write Excel files from Rust compiled to WebAssembly

## Features

- read and write xlsx and xlsm; write csv
- lazy reading that loads worksheets on demand
- cell values, formatted values and styles: read and edit
- rows and columns, including auto width
- charts and images: read, edit and create
- drawings and OLE objects: read and edit (the README says these may still be inconvenient)
- move ranges, copy and add worksheets
- write with a password, or add a password to an existing file
- js feature for WebAssembly builds

## Limitations

- Doesn't read legacy .xls or OpenDocument .ods spreadsheets: it reads and writes xlsx and xlsm, and writes csv[^1]

## Capabilities

- Has official SDKs: plan not known

## Trust

Overall: 0.23 out of 1.
Signals: backing 0.20, extensibility 0.00.

- created by MathNya

Warnings:

- GitHub activity not fetched yet

## Alternatives

- [rust_xlsxwriter](https://talira.ai/catalog/rust-xlsxwriter-9mhwtpf3.md): A Rust library for creating Excel XLSX files.
- [calamine](https://talira.ai/catalog/calamine-5dntk91n.md): A pure Rust Excel/OpenDocument SpreadSheets file reader: rust on metal sheets

## Sources

[^1]: https://github.com/MathNya/umya-spreadsheet (checked 20 Nov 2026)
[^2]: https://github.com/MathNya/umya-spreadsheet/blob/master/LICENSE (checked 20 Nov 2026)
[^3]: https://crates.io/crates/umya-spreadsheet (checked 20 Nov 2026)
