Home/AI Data Management & Analysis/convert-documents-to-markdown
C

convert-documents-to-markdown

by @firecrawlv
4.5(120)

This skill converts a wide range of office documents—including Word (.doc/.docx), PowerPoint (.ppt/.pptx), Excel (.xls/.xlsx), OpenDocument (.odt/.ods/.odp), RTF, EPUB, CSV, and PDF—into GitHub-Flavored Markdown using a single CLI command. It can read from stdin or write to a file, and it automatically detects the document format. This makes it ideal for developers, writers, and data analysts who need to extract text from documents for further processing, publishing, or knowledge management. By eliminating manual copy-pasting and format conversion, this skill saves significant time, reduces errors, and allows users to focus on the content rather than the conversion process.

document-conversionmarkdownpdfofficeautomationGitHub
Installation
npx skills add https://github.com/firecrawl/anydoc --skill convert-documents-to-markdown
compare_arrows

Before / After Comparison

1 组
Before

Before this skill, users had to manually open PDF or Office documents, copy the content piece by piece, adjust headings and table formatting, and then paste it into a Markdown editor. Processing a 10-page report often took over 30 minutes and was prone to omissions and errors.

After

This skill converts the entire document into clean, well-formatted GitHub-Flavored Markdown with a single command, completing the task in seconds. It preserves the structure, enabling users to immediately obtain clean, structured text and saving significant time while avoiding manual errors.

SKILL.md

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:

  1. Supported inputs: .doc, .docx, .docm, .odt, .rtf, .epub, .pdf, .ppt, .pps, .pot, .pptx, .pptm, .ppsx, .ppsm, .odp, .xls, .xlsx, .xlsm, .xlsb, .ods, .csv.
  2. The format is detected from the file content. Pass --format <name> only when detection cannot work: CSV from stdin, or a missing or wrong extension.
  3. Exit codes: 0 success, 1 the document could not be converted, 2 usage error. Failures print one anydoc: <message> line to stderr. The CLI never prompts.
  4. For a large document, write to a file with -o and read the parts you need instead of streaming everything into context.
  5. Scanned and image-only PDFs need OCR, which anydoc does not do; they fail as unsupported. The hosted Firecrawl Parse API handles those.
  6. 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.

User Reviews (0)

Write a Review

Effect
Usability
Docs
Compatibility

No reviews yet

Statistics

Installs12.3K
Rating4.5 / 5.0
Version
Updated2026年10月22日
Comparisons1

User Rating

4.5(120)
5
37%
4
43%
3
13%
2
5%
1
2%

Rate this Skill

0.0

Compatible Platforms

🤖claude-code

Timeline

Created2026年8月9日
Last Updated2026年10月22日
🎁 Agent Knowledge Cards
Survey