Skip to content
Skillpedia
PDF, Word & slides23k · #10124

convert-documents-to-markdown

What it does

It runs a command-line tool that turns office files, PDFs, ebooks and spreadsheets into Markdown text. It is for anyone whose AI needs the contents of a document it cannot open directly.

When to use it

  • ✓When you share a Word or PDF file and want the AI to read and summarize it.
  • ✓When a spreadsheet or presentation needs to be turned into text for analysis.
  • ✓When a long document should be saved to a file so only the parts you need are read.

Skill link

https://github.com/firecrawl/anydoc/blob/main/skills/convert-documents-to-markdown/SKILL.md

Copy it and paste it into your AI (Claude, ChatGPT or Cursor), asking it to follow the instructions.

How to use

The easiest way: copy the message and paste it into your AI. It reads the skill and follows the instructions.

Ready-to-paste message

Use this skill to help me: https://github.com/firecrawl/anydoc/blob/main/skills/convert-documents-to-markdown/SKILL.md Read the SKILL.md file at that link and follow its instructions for my task.
Want your AI to find skills like this on its own?Install the free Skillpedia MCP: one line, and it searches 15,000+ skills before each task.Install in 1 minute →

Example of what to ask your AI

“Convert this PDF report into text so you can summarize the key findings.”

5 new skills a week. 1 minute to read.

How it works

The skill runs a converter that detects the file type from its contents, then outputs Markdown to the screen or to a file, with no separate install step.

Technical content (original SKILL.md)

Original text by the author, straight from GitHub.

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, 3 pages of a PDF need OCR. 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 pages need OCR, which anydoc does not do, so the document exits 3. Rerun with --ocr hosted to send it to Firecrawl Parse. No signup needed. Pass --api-key or set FIRECRAWL_API_KEY for higher limits.
  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.
FAQ

Which file types can it read?

It handles Word, PowerPoint, Excel, OpenDocument, RTF, EPUB, CSV and PDF files.

What happens with scanned pages?

Scanned pages need OCR, which the tool does not do itself. The skill can send them to the hosted Firecrawl Parse option instead.

Does it need to be installed first?

No. It runs through npx and needs Node 20 or newer.

Details

Original description by the author

Convert Word (.doc, .docx), PowerPoint (.ppt, .pptx), Excel (.xls, .xlsx), OpenDocument (.odt, .ods, .odp), RTF, EPUB, CSV, and PDF files to GitHub-Flavored Markdown. Use when a task needs the contents of an office document, spreadsheet, presentation, ebook, or PDF you cannot read directly.

repo: firecrawl/anydoc

Popularity

GitHub stars
23k
Ranking position
#10124
License
MIT
Updated
10/23/2026

Is this skill useful?

0

Sign in to vote.

Comments

  • …

Similar skills