DOCX to Markdown & Word to Text: XLSX PPTX ODT ODP RTF avatar

DOCX to Markdown & Word to Text: XLSX PPTX ODT ODP RTF

Pricing

from $5.00 / 1,000 file extracteds

Go to Apify Store
DOCX to Markdown & Word to Text: XLSX PPTX ODT ODP RTF

DOCX to Markdown & Word to Text: XLSX PPTX ODT ODP RTF

Convert Word (DOCX) to Markdown and text, plus XLSX, PPTX, ODT, ODP and RTF to text, Markdown and JSON. RAG chunks with heading paths for LLMs. Headings, lists, Word tables, Excel rows, slide text and speaker notes in document order. Batch up to 50 files from URLs, Google Drive or Dropbox.

Pricing

from $5.00 / 1,000 file extracteds

Rating

0.0

(0)

Developer

Hojun Lee

Hojun Lee

Maintained by Community

Actor stats

0

Bookmarked

22

Total users

8

Monthly active users

8 hours ago

Last modified

Features

Limited permissions

Share

DOCX to Markdown & Word to Text — PPTX, XLSX, XLS, EPUB, HTML, CSV, ODT, ODP, RTF Extractor

DOCX to Markdown, Word to text and Office document extractor: convert DOCX, PPTX, XLSX, XLSM, legacy XLS, EPUB, HTML, CSV/TSV, TXT/MD/JSON, ODT, ODP and RTF files (15 extensions) to Markdown, plain text and structured JSON from direct URLs, Google Drive share links or Dropbox links.

Extract text and Markdown from Word .docx, Excel .xlsx/.xlsm/.xls, PowerPoint .pptx, EPUB e-books, HTML pages, CSV/TSV tables, plain text/Markdown/JSON, OpenDocument .odt/.odp, and .rtf files. Every record carries a markdown field in reading order: real heading levels, bullet and numbered lists, GFM tables, ## Slide N sections with speaker notes, and ## Sheet tables. PowerPoint includes slide text, tables, and speaker notes. Turn on chunkForRag for RAG chunks with a headingPath on every chunk. Supports direct URLs, Google Drive share links, and Dropbox URLs. Batch up to 50 files per run. $0.005/file after the existing one-time free allowance.

⚡ Run in 30 seconds

Paste a DOCX, XLSX, XLS, PPTX, EPUB, HTML, CSV, TXT, ODT, ODP, or RTF URL and click Start:

# Word document (direct URL)
https://example.com/report.docx
# Google Drive share link (auto-resolved)
https://drive.google.com/file/d/1BxiMVs0XRA5nFMdKvBdBZjgmUUqptlbs74OgVE2upms/view
# Dropbox share link (auto-resolved)
https://www.dropbox.com/s/abc123/data.xlsx?dl=0

Perfect companion to PDF Text Extractor — same workflow, now for Office documents.

For AI agents (MCP)

Word to text and JSON: give .docx/.xlsx/.pptx/.odt/.rtf URLs; get one item per file with text, tables, slides and notes.

  • Minimal call: {"urls": ["https://example.com/report.docx"]}. Other inputs are optional.
  • Runs started through the Apify MCP server (or Apify AI chat) also get text (same as full_text; for .xlsx the sheet rows as tab-separated lines), text_preview (first 1,500 characters) and file_name. Read a light result with fields=url,file_type,text_preview. API, Console and scheduled runs keep the exact output documented below.
  • The run status message says how many files were extracted. When no file could be read, the key-value record TIP says what to change (public link, supported extension).

Use cases

  • LLM ingestion: Extract Word doc content as Markdown and feed directly into Claude, GPT, or any RAG pipeline
  • Document to RAG chunks: chunkForRag cuts Word, PowerPoint and Excel files into heading-aware chunks with headingPath, ready to embed
  • DOCX to Markdown: convert Word documents to Markdown with headings, lists and tables in document order, ready for Git, docs sites or Notion imports
  • Spreadsheet → JSON: Convert Excel reports (including legacy .xls) and CSV files into structured JSON for databases or APIs
  • EPUB to text: Turn e-books into chapter-by-chapter text and Markdown for search, summarisation or RAG
  • HTML to Markdown: Clean web pages and HTML exports into Markdown (scripts, forms and images removed)
  • Document processing pipelines: Batch-convert DOCX/XLSX archives to searchable text
  • Data extraction: Pull tables from Word documents or rows from Excel sheets
  • Content migration: Extract content from legacy Office files for CMS import

Output — Word (.docx)

{
"index": 1,
"url": "https://example.com/report.docx",
"file_type": "docx",
"ok": true,
"paragraph_count": 42,
"word_count": 1850,
"char_count": 11200,
"heading_count": 8,
"table_count": 2,
"full_text": "Executive Summary\nThis report covers...\nName\tValue\tDate\n...",
"markdown": "# Executive Summary\n\nThis report covers...\n\n| Name | Value | Date |\n| --- | --- | --- |\n...",
"headings": [{"text": "Executive Summary", "level": "Heading 1"}],
"paragraphs": [{"text": "This report covers...", "style": "Normal"}],
"tables": [{"table_index": 0, "rows": 5, "cols": 3, "data": [["Name", "Value", "Date"], ...],
"markdown": "| Name | Value | Date |\n| --- | --- | --- |\n..."}],
"metadata": {"title": "Q3 Report", "author": "John Smith", "created": "2026-01-15T10:00:00"},
"fetched_at": "2026-08-08T07:00:00Z"
}

full_text walks the document body in order, so table rows (cells joined by tabs) appear where the table sits between paragraphs. Before v0.7 table text was missing from full_text; word_count and char_count follow full_text. paragraphs, headings and tables[].data are unchanged.


Output — Excel (.xlsx)

{
"index": 1,
"url": "https://example.com/data.xlsx",
"file_type": "xlsx",
"ok": true,
"sheet_count": 3,
"total_rows": 2500,
"sheets": [
{
"name": "Sales",
"row_count": 1001,
"col_count": 8,
"headers": ["Date", "Product", "Region", "Revenue", "Units", "Cost", "Margin", "Rep"],
"rows": [["2026-01-01", "Widget A", "North", "5400", "36", "2160", "60%", "Alice"]]
}
],
"markdown": "## Sales\n\n| Date | Product | Region | Revenue | Units | Cost | Margin | Rep |\n| --- | --- | --- | --- | --- | --- | --- | --- |\n| 2026-01-01 | Widget A | North | 5400 | 36 | 2160 | 60% | Alice |",
"fetched_at": "2026-08-08T07:00:00Z"
}

Markdown output (markdown, all formats)

Set includeMarkdown (default true) to get the document as Markdown in reading order. outputFormat: summary drops it.

FormatMarkdown content
DOCX#/##… headings from Word heading styles, - bullets and 1. numbered lists, bold/italic/links, GFM tables (first row = header) at their position. Images are dropped, not inlined. Built with mammoth + markdownify; if that conversion fails the actor falls back to a plain body walk (headings, list styles, tables) and logs a warning.
PPTX## Slide N: <title> per slide (title placeholder text; ## Slide N when there is none), body text, tables as GFM, then > Notes: … for speaker notes.
XLSX## <sheet name> followed by a GFM table of the first maxRowsPerSheet rows (first row = header), per sheet.
ODTATX headings from outline levels, then paragraphs.
ODP## Slide N per slide with its paragraphs. Notes are not extracted.
RTFParagraphs separated by blank lines.
EPUBEach chapter in spine (reading) order via the HTML path, joined with blank lines.
HTML<body> converted with markdownify: ATX headings, lists, links, GFM tables (plain first row promoted to header), code blocks. Scripts, styles, forms, iframes, images and comments are removed; javascript:/data: link targets are dropped.
XLSM / XLS / CSV / TSVSame as XLSX: ## <sheet name> (## CSV / ## TSV) and a GFM table per sheet.
TXT / MD / JSONTXT: paragraphs separated by blank lines. MD: the file as is. JSON: the file in a ```json fence.

Each DOCX and PPTX table also carries tables[].markdown. Pipes inside cells are escaped as \| and line breaks inside cells become spaces. If Markdown generation fails on every path the record is still delivered with markdown: null and charged as an extracted file, because full_text and the structured fields are complete.


RAG chunks (chunkForRag, all formats)

Set chunkForRag: true (default false) to add chunks[] and chunk_count to each record. Each chunk is cut from the Markdown above:

{"index": 2, "heading": "Inline formatting", "headingPath": ["Text Formatting", "Inline formatting"],
"text": "# Text Formatting\n\n## Inline formatting\n\n...", "charCount": 662}
FormatChunk boundaries
DOCX, ODT, RTF, EPUB, HTML, TXT, MD, JSONMarkdown headings. A chunk never spans two H1 or H2 sections; H3+ sections are merged only while the result fits chunkSize. A heading directly followed by its first sub-heading is kept with that sub-section. Text before the first heading has headingPath: [].
PPTX, ODPSlides: no chunk spans two slides, and each chunk has slide (1-based) and headingPath: ["Slide N: <title>"].
XLSX, XLSM, XLS, CSV, TSVSheets: every chunk is a GFM table that repeats the header row, with sheet and headingPath: ["<sheet>"]. The overlap is whole trailing rows. A single row longer than chunkSize becomes its own chunk instead of being cut.
  • chunkSize (default 1200, 200–20,000 characters, ≈ 4 characters per token) and chunkOverlap (default 120, capped at chunkSize − 100) set the sliding window inside a section.
  • chunkOutput: row (default) keeps chunks[] on the document record. rows writes one dataset item per chunk: index (document), url, file_type, fetched_at, ok, chunkIndex, chunkCount plus the chunk fields. The RAG chunks dataset view shows them.
  • A record over 8 MB with chunks[] is written as the document record (chunks_output: "rows", no chunks) followed by one item per chunk, so the dataset never rejects it.
  • No extra charge: chunks are part of the extracted file (one file-extracted event per document, never per chunk). If chunking fails, the record keeps its text, carries chunks: [] and chunks_error, and is not charged.
  • The chunker (src/chunking.py) is the same file pdf-text-extractor uses, so PDF and Office chunks have the same shape.

Output — PPTX, ODT, ODP and RTF

These formats reuse ok, type, file_type, full_text, text/count fields, paragraphs, headings, tables, metadata, and error. Metadata is currently an empty object for the new formats; DOCX/XLSX output remains unchanged.

  • PPTX: text follows slide and shape order, including grouped shapes and table rows. slides contains {slide_index, full_text} entries (1-based). notes contains {slide_index, text} speaker-note entries. Notes also appear after each slide in the document-wide full_text.
  • ODT: paragraph and heading text in document order.
  • ODP: paragraph/heading text per slide, with the same slides structure. ODP speaker notes are not extracted.
  • RTF: plain text with formatting controls removed.

Known URL extensions take precedence; MIME type, ZIP container signatures (OpenDocument, EPUB, OOXML incl. XLSM), the OLE workbook stream (XLS), the HTML doctype or the RTF signature support extensionless download links. Unsupported or unreadable files produce ok: false and no file-extracted event. The existing run-start event and one-time free allowance still apply. summary omits detailed arrays and limits new-format full_text to 500 characters. Images, charts, embedded objects and scanned content are not OCRed; layout fidelity is not promised.

Parsing dependencies: python-pptx (MIT), odfpy (used under its Apache-2.0 licence option), striprtf (BSD-3-Clause), mammoth (BSD-2-Clause), markdownify (MIT), beautifulsoup4 (MIT) and xlrd (BSD). EPUB is parsed with the Python standard library (no AGPL ebooklib). Data comes only from user-supplied files; no additional network data source is used.

Output — EPUB, HTML, CSV/TSV, TXT/MD/JSON, XLSM and XLS (v0.10)

  • EPUB (file_type: "epub"): the text record (full_text, paragraphs, headings, tables, markdown) plus chapters —
    {chapter_index, href, title, word_count, full_text}
    in spine (reading) order — chapter_count, and metadata {title, author, language, created} from the OPF package. coverage_complete is false if the book has more than 2,000 spine items (the rest is not read), or if spine chapters are missing from the archive — those are listed in missing_spine_items with a coverage_note. Parsed with stdlib zip/XML and beautifulsoup4; DRM-protected books are not supported.
  • HTML (file_type: "html"): the text record; metadata.title is the page <title>. Table cells are tab-joined in full_text like DOCX rows.
  • TXT / MD / JSON (txt, md, json): full_text is the file text; one paragraph per non-empty line (# lines in Markdown become headings). JSON adds metadata.valid_json.
  • CSV / TSV (csv, tsv): the XLSX record shape — sheets (one sheet named CSV/TSV), total_rows, markdown — plus delimiter (detected among , \t ; |).
  • XLSM (xlsm): exactly the XLSX record (macros are not read or run).
  • XLS (xls, Excel 97-2003 binary): the XLSX record shape via xlrd. Dates become YYYY-MM-DD HH:MM:SS, whole numbers drop .0. A .xls link that is really XLSX or an HTML table export is read as that format.
  • CSV/TSV/XLS rows carry sheets[].truncated and a record-level coverage_complete: false means the sheet had more than maxRowsPerSheet rows and only the first maxRowsPerSheet were read.

What is charged for the new formats

SituationRowCharged
File read with text/rowsok: true1 file-extracted (after the free file)
Empty file, script-only HTML, blank CSV, EPUB with no readable chapterok: false, "No text extracted"no
Binary bytes behind a .txt/.csv linkok: falseno
Corrupt XLS/EPUB, EPUB without an OPFok: false with the parser errorno
EPUB that unpacks to more than 200 MB (zip bomb)ok: falseno
Legacy Word .doc or other OLE file without a workbookok: false, error_code: "unsupported_type"no
Google Drive / Dropbox share link that returns an HTML page (login or virus-scan page), whatever the link's file extensionok: false, error_code: "share_link_html"no
CSV/XLS over maxRowsPerSheetok: true, coverage_complete: false1 (you chose the row cap)
EPUB with some spine chapters missing from the archiveok: true, coverage_complete: false, missing_spine_items1 (the chapters present are delivered)

PDF is not read here: use the PDF Text Extractor.

Input options

FieldDefaultDescription
urls—List of .docx/.xlsx/.xlsm/.xls/.pptx/.epub/.html/.csv/.tsv/.txt/.md/.json/.odt/.odp/.rtf URLs (up to 50)
urlsTextemptyFile URLs pasted one per line, merged with urls
url—Single file URL (shortcut when urls is empty)
outputFormatfullfull includes all text/tables/rows; summary returns metadata + truncated text
includeMarkdowntrueAdd markdown (and tables[].markdown) in document order; dropped in summary
includeMetadatatrueInclude author/created/modified metadata
chunkForRagfalseAdd heading-aware RAG chunks[] (see above)
chunkSize1200Max characters per chunk (200–20,000)
chunkOverlap120Characters repeated between chunks of one section
chunkOutputrowrow: chunks[] on the record; rows: one dataset item per chunk
maxRowsPerSheet1000Max rows per sheet for Excel (.xlsx/.xlsm/.xls) and CSV/TSV files (up to 100,000)
limit50Max files per run
includeMetadatatrueDOCX core properties (author, created, modified, last_modified_by)
changeDetectionfalseAdds content_hash, content_changed, is_new_document against the previous run

Pricing

  • $0.001 flat per run start
  • First file per account is free (once, not per run)
  • $0.005 per successfully extracted file (after the free tier)

Example: after your first free file, 10 documents = $0.051


Supported formats

FormatExtensionNotes
Word 2007+.docxFull text, Markdown, paragraphs, headings, tables, metadata
Excel 2007+.xlsxAll sheets, headers, rows as JSON arrays, Markdown tables
PowerPoint 2007+.pptxSlide text, tables, speaker notes, Markdown slide sections
OpenDocument.odt .odpParagraphs, headings, slides, Markdown
Rich Text.rtfPlain text and Markdown paragraphs
Excel macro-enabled.xlsmSame as XLSX (macros are not run)
Excel 97-2003.xlsAll sheets, rows, Markdown tables
EPUB e-book.epubChapters in reading order, metadata, Markdown
Web page.html .htm .xhtmlClean text, headings, tables, Markdown
Delimited text.csv .tsvRows as JSON arrays, detected delimiter, Markdown table
Plain text.txt .md .jsonText, Markdown headings, JSON validity flag

Legacy .doc (pre-2007 binary Word) is not supported (error_code: "unsupported_type", no charge). Convert to .docx first using Word or LibreOffice. Legacy .xls is supported. Files over 100 MB are rejected before parsing (ok: false, Download failed, no charge).


See also

Keywords: DOCX to Markdown, Word to Markdown, EPUB to text, HTML to Markdown, XLS to JSON, CSV to Markdown, document to Markdown, DOCX extractor, Word to text, document parser, text extraction, NLP pipeline, Word file reader, .docx converter, Google Drive, Dropbox, batch document processing


  • Excel Extractor — .xlsx and .xls to JSON, same URL + Drive/Dropbox pattern for spreadsheet extraction
  • PDF Text Extractor — PDF parsing including OCR for scanned documents alongside DOCX extraction
  • Image OCR Extractor — Tesseract OCR for image-only content that can't be extracted by DOCX/PDF parsers

Feedback

If this actor powers your document pipeline, a review helps others find it: Leave a review on Apify Store