Fast Rust library and CLI that converts office documents and PDFs to clean Markdown for LLMs
open sourceMITfree
anydoc is a Rust library from Firecrawl that converts Word, PowerPoint, Excel, OpenDocument, RTF, EPUB, CSV and PDF files into clean GitHub-Flavored Markdown in single-digit milliseconds, with the same output structure whatever the input format. It comes as a CLI (npx @firecrawl/anydoc), Node.js and Python bindings, a Rust crate, a WebAssembly demo that converts files locally in the browser, and an agent skill that teaches coding agents to use the CLI; scanned PDFs can go through Firecrawl's hosted OCR. It powers Firecrawl Parse.
Problems it solves
- convert Word and PowerPoint files to Markdown for an LLM
- turn PDFs into clean Markdown quickly
- let my coding agent read office documents
Features
- DOCX, PPTX, XLSX, ODF, RTF, EPUB, CSV and PDF to Markdown
- consistent GitHub-Flavored Markdown output
- Rust, Node.js, Python and WebAssembly
- CLI and agent skill
- optional hosted OCR for scans
Alternatives
The same job
These do what anydoc does.
- MarkItDown Python tool for converting files and office documents to Markdown