office_oxide
The fastest Office document library for Python, Rust, Go, JS/TS, C# and WASM. DOCX, XLSX, PPTX, DOC, XLS, PPT. Up to 100× faster than python-docx/openpyxl/pytho
What is office_oxide?
The fastest Office document library for Python, Rust, Go, JS/TS, C# and WASM. DOCX, XLSX, PPTX, DOC, XLS, PPT. Up to 100× faster than python-docx/openpyxl/python-pptx. 100% pass rate on valid Office files. MIT/Apache-2.0.
Overview of office_oxide
What it is
Office Oxide is a fast, memory-safe library for text extraction from Office documents. It has a Rust core with first-class bindings for Python, Go, C#/.NET, Node.js (native and WASM), and a stable C FFI. It handles DOCX, XLSX, PPTX, DOC, XLS, and PPT formats. The library is dual-licensed under MIT and Apache-2.0.
Key features
- Fast: 5–10× faster than python-docx, openpyxl, python-pptx, xlrd; faster than python-calamine on XLSX.
- Reliable: opens 97.3% of a 10,386-file test collection; the files it does not open are encrypted, truncated or corrupt.
- Complete: supports 6 formats – DOCX, XLSX, PPTX, DOC, XLS, PPT.
- Multi-platform: available for Rust, Python, Go, JavaScript/TypeScript, C#/.NET, WASM, CLI, and MCP server.
- Permissive: MIT / Apache-2.0 dual license, no AGPL or GPL restrictions.
- Read, write, edit, and convert: legacy formats (DOC, XLS, PPT) can be converted to modern OOXML with save_as().
Use cases
- Extracting plain text or Markdown from Office documents for indexing, analysis, or content processing.
- Converting legacy Office formats (DOC, XLS, PPT) to modern OOXML (DOCX, XLSX, PPTX).
- Building cross-platform applications that need to read, write, or edit Office files without external dependencies.
- Integrating Office document processing into Python, Rust, Go, C#, JavaScript, or WASM projects.
Getting started
bash pip install office-oxide python from office_oxide import Document, extract_text, to_markdown # One-liner text extraction text = extract_text('report.docx') markdown = to_markdown('data.xlsx') # Context-managed document; accepts str or pathlib.Path with Document.open('slides.pptx') as doc: print(doc.format) # 'pptx' print(doc.plain_text()) print(doc.to_markdown())
License and pricing
MIT / Apache-2.0 dual-licensed. Open source and free to use.
Based on the project's public README and repository metadata.