{"data":{"slug":"github-anbeime-skill-skills-convert-documents-to-markdown-convert-documents-to-markdown-a5f977555fe0","title":"Convert Documents to Markdown","summary":"Convert Word, Excel, PowerPoint, PDF, and other office documents to GitHub-Flavored Markdown using the anydoc CLI tool. The output is suitable for editing and integration into documentation, blogs, or code projects.","url":"https:\/\/skillshunter.net\/skills\/github-anbeime-skill-skills-convert-documents-to-markdown-convert-documents-to-markdown-a5f977555fe0","json_url":"https:\/\/skillshunter.net\/api\/public\/v1\/skills\/github-anbeime-skill-skills-convert-documents-to-markdown-convert-documents-to-markdown-a5f977555fe0","markdown_url":"https:\/\/skillshunter.net\/skills\/github-anbeime-skill-skills-convert-documents-to-markdown-convert-documents-to-markdown-a5f977555fe0.md","download_url":"https:\/\/skillshunter.net\/skills\/github-anbeime-skill-skills-convert-documents-to-markdown-convert-documents-to-markdown-a5f977555fe0\/download","category":{"slug":"software-development","name":"Software & Development"},"editor_note":"The anydoc CLI requires Node 20+ to run. Ensure that Node.js is installed and up to date before using the tool.","instructions":"---\nname: convert-documents-to-markdown\ndescription: 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.\nlicense: MIT\nmetadata:\n  author: firecrawl\n---\n\n# Convert documents to Markdown\n\nRun the anydoc CLI. It needs Node 20+ and no install:\n\n```bash\nnpx -y @firecrawl\/anydoc <file>              # Markdown to stdout\nnpx -y @firecrawl\/anydoc <file> -o out.md    # write to a file\nnpx -y @firecrawl\/anydoc - --format csv < f  # read stdin\n```\n\nRules:\n\n1. Supported inputs: `.doc`, `.docx`, `.docm`, `.odt`, `.rtf`, `.epub`, `.pdf`, `.ppt`, `.pps`, `.pot`, `.pptx`, `.pptm`, `.ppsx`, `.ppsm`, `.odp`, `.xls`, `.xlsx`, `.xlsm`, `.xlsb`, `.ods`, `.csv`.\n2. 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.\n3. 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.\n4. For a large document, write to a file with `-o` and read the parts you need instead of streaming everything into context.\n5. 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.\n6. 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.\n","use_cases":["Extract content from Word documents for blog posts or reports.","Convert Excel spreadsheets to Markdown for data analysis.","Extract text from PDFs for documentation or archiving.","Convert OpenDocument files (ODT, ODS, ODP) to Markdown for compatibility with Markdown-based workflows."],"limitations":[],"compatibility":[],"setup_tip":null,"sample_input":null,"sample_output":null,"source_url":"https:\/\/github.com\/anbeime\/skill\/blob\/7d96c7f464535c90bd6efde99821a9d3446bf0cb\/skills\/convert-documents-to-markdown\/convert-documents-to-markdown\/SKILL.md","source_commit":"7d96c7f464535c90bd6efde99821a9d3446bf0cb","license":"MIT","version":null,"listing_approved_at":"2026-11-22","created_at":"2026-11-21T17:00:41.000000Z","updated_at":"2026-11-22T11:18:35.000000Z","seo_title":"Convert Documents to Markdown","seo_description":"Convert Word, Excel, PowerPoint, PDF, and more to Markdown with anydoc CLI tool.","seo_keywords":["convert Word to Markdown","Excel to Markdown converter","PDF to Markdown tool","PowerPoint to Markdown","document conversion tool","convert OpenDocument to Markdown","RTF to Markdown","EPUB to Markdown"]}}