# calamine

> A pure Rust Excel/OpenDocument SpreadSheets file reader: rust on metal sheets

Source: https://talira.ai/catalog/calamine-5dntk91n
Every listing: https://talira.ai/catalog.md

- Kind: Open source
- Types: Library
- Categories: [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: Johann Tuffe (tafia)

calamine is a pure Rust library that reads and deserializes spreadsheets: Excel .xls, .xlsx, .xlsm, .xlsb, .xla and .xlam, and OpenDocument .ods. It returns cell ranges you can iterate or deserialize into Rust types with Serde, reads formulas, defined names and VBA project code, and with the `picture` feature the raw data of pictures; `xlsx` and `xlsb` workbooks load sheets lazily. It reads XLSX cell styles, but most of the file formats' specifications aren't implemented: the focus is cell values and VBA. It's read-only, so programs that must save a workbook pair it with a writer such as [rust_xlsxwriter](https://talira.ai/catalog/rust-xlsxwriter-9mhwtpf3.md) or use [umya-spreadsheet](https://talira.ai/catalog/umya-spreadsheet-6drjfpkp.md).

## Links

- GitHub: https://github.com/tafia/calamine
- Docs: https://docs.rs/calamine

## Problems it solves

- read rows from an uploaded Excel file into Rust structs
- parse old .xls files as well as .xlsx in a Rust program
- import data from OpenDocument .ods spreadsheets in Rust
- read values from a binary .xlsb workbook without Excel
- extract the VBA macro code from an Excel file to inspect it
- list the formulas in each worksheet of a workbook from code
- read a large spreadsheet quickly without loading every sheet
- deserialize a column that mixes numbers and text without failing on bad cells
- pull the pictures embedded in a spreadsheet out as raw bytes

## Features

- reads xls, xlsx, xlsm, xlsb, xla, xlam and ods
- Serde deserialization of ranges, with helpers for invalid values
- header row handling and range iteration
- formulas and defined names
- VBA project modules and references
- XLSX cell styles via worksheet_style()
- lazy sheet loading for xlsx and xlsb
- optional chrono and picture features

## Limitations

- Doesn't write or save spreadsheets: it's a read-only library[^1]
- Doesn't read cell formatting beyond XLSX cell styles: other formats' formatting and encrypted parts aren't supported[^1]

## Capabilities

- Has official SDKs: plan not known

## Trust

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

- created by Johann Tuffe (tafia)

Warnings:

- GitHub activity not fetched yet

## Alternatives

- [umya-spreadsheet](https://talira.ai/catalog/umya-spreadsheet-6drjfpkp.md): A pure rust library for reading and writing spreadsheet files

## Sources

[^1]: https://github.com/tafia/calamine (checked 20 Nov 2026)
[^2]: https://github.com/tafia/calamine/blob/master/LICENSE-MIT.md (checked 20 Nov 2026)
[^3]: https://crates.io/crates/calamine (checked 20 Nov 2026)
