Convert documents to Markdown
Run the anydoc CLI. It needs Node 20+ and no install:
npx
-y
@firecrawl/anydoc
<
file
Markdown to stdout
npx
-y
@firecrawl/anydoc
<
file
-o
out.md
write to a file
npx
-y
@firecrawl/anydoc -
--format
csv
<
f
read stdin
Rules:
Supported inputs:
.doc
,
.docx
,
.docm
,
.odt
,
.rtf
,
.epub
,
.pdf
,
.ppt
,
.pps
,
.pot
,
.pptx
,
.pptm
,
.ppsx
,
.ppsm
,
.odp
,
.xls
,
.xlsx
,
.xlsm
,
.xlsb
,
.ods
,
.csv
.
The format is detected from the file content. Pass
--format
only when detection cannot work: CSV from stdin, or a missing or wrong extension.
Exit codes: 0 success, 1 the document could not be converted, 2 usage error. Failures print one
anydoc:
line to stderr. The CLI never prompts.
For a large document, write to a file with
-o
and read the parts you need instead of streaming everything into context.
Scanned and image-only PDFs need OCR, which anydoc does not do; they fail as unsupported. The hosted
Firecrawl Parse
API handles those.
Inside a Node, Python, or Rust codebase, prefer the library over shelling out:
@firecrawl/anydoc
on npm,
firecrawl-anydoc
on PyPI,
anydoc
on crates.io. Each exposes the same
to_markdown
/
toMarkdown
API.
Installs
1.0K
Repository
firecrawl/anydoc
GitHub Stars
4.5K
First Seen
2 days ago
Security Audits
Gen Agent Trust Hub
Pass
Socket
Pass
Snyk
Pass