firecrawl/anydoc
Convert Word, PowerPoint, Excel, OpenDocument, RTF, EPUB, CSV, and PDF to clean Markdown. Built in Rust, with Node.js and Python bindings.
What it solves
anydoc solves the problem of converting a wide variety of office document formats (such as Word, PowerPoint, Excel, PDF, and EPUB) into clean, consistent GitHub-Flavored Markdown. It is designed to prepare these documents for use in LLM pipelines, ensuring that the output structure remains uniform regardless of the original file type.
How it works
Built in Rust, anydoc uses a unified internal document model. When a file is provided, the library detects its format based on content markers rather than file extensions. It then parses the document into this shared model, which handles complex elements like tables, footnotes, and LaTeX equations, before serializing the result into Markdown. For scanned PDFs that cannot be read locally, it provides an optional integration with Firecrawl's hosted OCR service.
Who it’s for
This tool is intended for developers building AI agents, RAG (Retrieval-Augmented Generation) systems, or data processing pipelines that need to ingest diverse office documents and convert them into a structured, LLM-friendly format at high speed.
Highlights
- High Performance: Written in pure Rust, achieving median conversion times under 5ms per document.
- Broad Format Support: Handles 14 different formats, including legacy Office files, OpenDocument, and EPUB.
- Consistent Output: Uses a single serializer to ensure that tables, lists, and formatting are rendered identically across all input types.
- Multi-Language Support: Provides native bindings for Node.js, Python, and WebAssembly (browser), plus an Agent Skill for easy integration into agentic workflows.
Related
- Project
- Project
- Project
- Project
- Project