---
title: "convert-documents-to-markdown by firecrawl · skilld"
canonical_url: "https://skilld.dev/gh/firecrawl/anydoc"
meta:
  description: "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… From firecrawl/anydoc."
  "og:description": "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… From firecrawl/anydoc."
  "og:title": "convert-documents-to-markdown by firecrawl"
  "twitter:description": "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… From firecrawl/anydoc."
  "twitter:title": "convert-documents-to-markdown by firecrawl"
---

`

[All skills](https://skilld.dev/skills)

[![firecrawl avatar](https://skilld.dev/_img/avatar?url=https%3A%2F%2Fgithub.com%2Ffirecrawl.png%3Fsize%3D96)](https://skilld.dev/gh/firecrawl)

# **/convert-documents-to-markdown**

[@1c737ec](https://github.com/firecrawl/anydoc/commit/1c737ec8216777cd382fcd3fc2e0a47637a8fa30 "Your agent reads SKILL.md at commit 1c737ec")

by [firecrawl](https://skilld.dev/gh/firecrawl)· [firecrawl](https://skilld.dev/gh/firecrawl)/ [anydoc](https://skilld.dev/gh/firecrawl/anydoc)·22k stars

 1,411

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.

- 1 file
- 1.8 KB
- MIT
- Updated last month
- [GitHub](https://github.com/firecrawl/anydoc/blob/1c737ec8216777cd382fcd3fc2e0a47637a8fa30/skills/convert-documents-to-markdown/SKILL.md "View SKILL.md on GitHub")
- [No alerts](#third-party-checks "Third-party checks: No alerts · 3 checks · Risk SAFE")

## SKILL.md

1.8 KB

**≈81** tokens always: the name and description. **≈360** when used: this file.

## 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](https://firecrawl.dev/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.

Source: [SKILL.md on GitHub](https://github.com/firecrawl/anydoc/blob/1c737ec8216777cd382fcd3fc2e0a47637a8fa30/skills/convert-documents-to-markdown/SKILL.md)

## Third-party checks

<details>

<summary>No alerts1mo3 checks · Risk SAFE</summary>



- Gen Agent Trust Hub1mo

  This skill facilitates the conversion of various document formats (PDF, Word, Excel, etc.) to Markdown using the Firecrawl anydoc tool. It utilizes npx for execution and processes external files, which introduces a potential surface for indirect prompt injection.
- Socket1mo

  No alerts
- Snyk1mo

  Risk: LOW · No issues

</details>

## Provenance

[Signed by skilld at 1c737ec.](https://github.com/firecrawl/anydoc/commit/1c737ec8216777cd382fcd3fc2e0a47637a8fa30 "1c737ec8216777cd382fcd3fc2e0a47637a8fa30") This ties the file your Agent reads to that commit on GitHub. It does not review the instructions.

Last checked against GitHub last month.

Steadyupdated last month

## Capability

<dl>

<dt>metadata</dt>
<dd>

```
{
  "author": "firecrawl"
}
```

</dd>

</dl>

## README badge

![README badge for firecrawl/anydoc](https://skilld.dev/b/firecrawl/anydoc?theme=light&label=0)

## Related skills

-
-
-
-
-
-