# rust_xlsxwriter

> A Rust library for creating Excel XLSX files.

Source: https://talira.ai/catalog/rust-xlsxwriter-9mhwtpf3
Every listing: https://talira.ai/catalog.md

- Kind: Open source
- Types: Library
- Categories: [documents / spreadsheets / generation](https://talira.ai/categories/documents/spreadsheets/generation), [languages / rust](https://talira.ai/categories/languages/rust)
- Licence: MIT OR Apache-2.0[^2][^3][^4]
- Pricing: Free and open source[^2][^3]
- Pricing notes: MIT or Apache-2.0, at your option.
- Free tier: yes[^2][^3]
- Self-hostable: yes[^1]
- Creator: John McNamara (jmcnamara), author of Python XlsxWriter and libxlsxwriter

rust_xlsxwriter writes new Excel .xlsx files from Rust: text, numbers, dates and formulas (including Excel 365 dynamic functions) with full cell formatting, charts, images, tables, pivot tables, conditional formatting, data validation, sparklines, notes, checkboxes, autofilters, page setup and macros. John McNamara wrote it as a Rust rewrite of his Python XlsxWriter library, with a focus on matching the files Excel itself creates and on speed, plus a constant-memory mode for large files. Optional features add Serde serialization, Polars error mapping (used by polars_excel_writer) and WebAssembly builds. It can't read or modify an existing file: [umya-spreadsheet](https://talira.ai/catalog/umya-spreadsheet-6drjfpkp.md) does read-modify-write.

## Links

- Website: https://rustxlsxwriter.github.io
- GitHub: https://github.com/jmcnamara/rust_xlsxwriter
- Docs: https://docs.rs/rust_xlsxwriter

## Problems it solves

- export a report from my Rust service as a real Excel file with formatting, not CSV
- generate an xlsx with bold headers, number formats, merged cells and column widths in Rust
- add native Excel charts to a spreadsheet my Rust program creates
- write millions of rows to an Excel file without running out of memory
- serialize a Vec of Rust structs straight into a worksheet
- write a Polars DataFrame to a formatted Excel file
- add data validation dropdowns and conditional formatting to a generated workbook
- create Excel tables and pivot tables from code
- generate Excel files from Rust compiled to WebAssembly in the browser
- write formulas that use dynamic array functions like FILTER and UNIQUE into an xlsx

## Features

- all basic Excel data types and full cell formatting
- formulas, including Excel 365 dynamic functions
- charts, sparklines, images, textboxes and checkboxes
- worksheet tables, pivot tables, autofilters and defined names
- conditional formatting and data validation
- merged ranges, outline groupings, rich multi-format strings and cell notes
- page and printing setup, workbook themes and macros
- constant memory mode for writing large files
- serde feature to serialize structs to worksheets
- polars and wasm features

## Limitations

- Doesn't read or modify existing Excel files: it only writes new .xlsx files[^1]

## Capabilities

- Has official SDKs: plan not known

## Trust

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

- created by John McNamara (jmcnamara), author of Python XlsxWriter and libxlsxwriter

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/jmcnamara/rust_xlsxwriter (checked 20 Nov 2026)
[^2]: https://github.com/jmcnamara/rust_xlsxwriter/blob/main/LICENSE_MIT (checked 20 Nov 2026)
[^3]: https://github.com/jmcnamara/rust_xlsxwriter/blob/main/LICENSE_Apache2.0 (checked 20 Nov 2026)
[^4]: https://crates.io/crates/rust_xlsxwriter (checked 20 Nov 2026)
