DOCX to Markdown & Word to Text: XLSX PPTX ODT ODP RTF
Pricing
from $5.00 / 1,000 file extracteds
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
Maintained by CommunityActor stats
0
Bookmarked
22
Total users
8
Monthly active users
8 hours ago
Last modified
Categories
Features
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
markdownfield in reading order: real heading levels, bullet and numbered lists, GFM tables,## Slide Nsections with speaker notes, and## Sheettables. PowerPoint includes slide text, tables, and speaker notes. Turn onchunkForRagfor RAG chunks with aheadingPathon 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 asfull_text; for .xlsx the sheet rows as tab-separated lines),text_preview(first 1,500 characters) andfile_name. Read a light result withfields=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
TIPsays 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:
chunkForRagcuts Word, PowerPoint and Excel files into heading-aware chunks withheadingPath, 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.
| Format | Markdown 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. |
| ODT | ATX headings from outline levels, then paragraphs. |
| ODP | ## Slide N per slide with its paragraphs. Notes are not extracted. |
| RTF | Paragraphs separated by blank lines. |
| EPUB | Each 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 / TSV | Same as XLSX: ## <sheet name> (## CSV / ## TSV) and a GFM table per sheet. |
| TXT / MD / JSON | TXT: 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}
| Format | Chunk boundaries |
|---|---|
| DOCX, ODT, RTF, EPUB, HTML, TXT, MD, JSON | Markdown 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, ODP | Slides: no chunk spans two slides, and each chunk has slide (1-based) and headingPath: ["Slide N: <title>"]. |
| XLSX, XLSM, XLS, CSV, TSV | Sheets: 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) andchunkOverlap(default 120, capped atchunkSize − 100) set the sliding window inside a section.chunkOutput: row(default) keepschunks[]on the document record.rowswrites one dataset item per chunk:index(document),url,file_type,fetched_at,ok,chunkIndex,chunkCountplus 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", nochunks) followed by one item per chunk, so the dataset never rejects it. - No extra charge: chunks are part of the extracted file (one
file-extractedevent per document, never per chunk). If chunking fails, the record keeps its text, carrieschunks: []andchunks_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.
slidescontains{slide_index, full_text}entries (1-based).notescontains{slide_index, text}speaker-note entries. Notes also appear after each slide in the document-widefull_text. - ODT: paragraph and heading text in document order.
- ODP: paragraph/heading text per slide, with the same
slidesstructure. 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) pluschapters—in spine (reading) order —{chapter_index, href, title, word_count, full_text}chapter_count, andmetadata{title, author, language, created}from the OPF package.coverage_completeisfalseif 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 inmissing_spine_itemswith acoverage_note. Parsed with stdlib zip/XML and beautifulsoup4; DRM-protected books are not supported. - HTML (
file_type: "html"): the text record;metadata.titleis the page<title>. Table cells are tab-joined infull_textlike DOCX rows. - TXT / MD / JSON (
txt,md,json):full_textis the file text; one paragraph per non-empty line (#lines in Markdown become headings). JSON addsmetadata.valid_json. - CSV / TSV (
csv,tsv): the XLSX record shape —sheets(one sheet namedCSV/TSV),total_rows,markdown— plusdelimiter(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 becomeYYYY-MM-DD HH:MM:SS, whole numbers drop.0. A.xlslink that is really XLSX or an HTML table export is read as that format. - CSV/TSV/XLS rows carry
sheets[].truncatedand a record-levelcoverage_complete:falsemeans the sheet had more thanmaxRowsPerSheetrows and only the firstmaxRowsPerSheetwere read.
What is charged for the new formats
| Situation | Row | Charged |
|---|---|---|
| File read with text/rows | ok: true | 1 file-extracted (after the free file) |
| Empty file, script-only HTML, blank CSV, EPUB with no readable chapter | ok: false, "No text extracted" | no |
Binary bytes behind a .txt/.csv link | ok: false | no |
| Corrupt XLS/EPUB, EPUB without an OPF | ok: false with the parser error | no |
| EPUB that unpacks to more than 200 MB (zip bomb) | ok: false | no |
Legacy Word .doc or other OLE file without a workbook | ok: 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 extension | ok: false, error_code: "share_link_html" | no |
CSV/XLS over maxRowsPerSheet | ok: true, coverage_complete: false | 1 (you chose the row cap) |
| EPUB with some spine chapters missing from the archive | ok: true, coverage_complete: false, missing_spine_items | 1 (the chapters present are delivered) |
PDF is not read here: use the PDF Text Extractor.
Input options
| Field | Default | Description |
|---|---|---|
urls | — | List of .docx/.xlsx/.xlsm/.xls/.pptx/.epub/.html/.csv/.tsv/.txt/.md/.json/.odt/.odp/.rtf URLs (up to 50) |
urlsText | empty | File URLs pasted one per line, merged with urls |
url | — | Single file URL (shortcut when urls is empty) |
outputFormat | full | full includes all text/tables/rows; summary returns metadata + truncated text |
includeMarkdown | true | Add markdown (and tables[].markdown) in document order; dropped in summary |
includeMetadata | true | Include author/created/modified metadata |
chunkForRag | false | Add heading-aware RAG chunks[] (see above) |
chunkSize | 1200 | Max characters per chunk (200–20,000) |
chunkOverlap | 120 | Characters repeated between chunks of one section |
chunkOutput | row | row: chunks[] on the record; rows: one dataset item per chunk |
maxRowsPerSheet | 1000 | Max rows per sheet for Excel (.xlsx/.xlsm/.xls) and CSV/TSV files (up to 100,000) |
limit | 50 | Max files per run |
includeMetadata | true | DOCX core properties (author, created, modified, last_modified_by) |
changeDetection | false | Adds 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
| Format | Extension | Notes |
|---|---|---|
| Word 2007+ | .docx | Full text, Markdown, paragraphs, headings, tables, metadata |
| Excel 2007+ | .xlsx | All sheets, headers, rows as JSON arrays, Markdown tables |
| PowerPoint 2007+ | .pptx | Slide text, tables, speaker notes, Markdown slide sections |
| OpenDocument | .odt .odp | Paragraphs, headings, slides, Markdown |
| Rich Text | .rtf | Plain text and Markdown paragraphs |
| Excel macro-enabled | .xlsm | Same as XLSX (macros are not run) |
| Excel 97-2003 | .xls | All sheets, rows, Markdown tables |
| EPUB e-book | .epub | Chapters in reading order, metadata, Markdown |
| Web page | .html .htm .xhtml | Clean text, headings, tables, Markdown |
| Delimited text | .csv .tsv | Rows as JSON arrays, detected delimiter, Markdown table |
| Plain text | .txt .md .json | Text, Markdown headings, JSON validity flag |
Legacy
.doc(pre-2007 binary Word) is not supported (error_code: "unsupported_type", no charge). Convert to.docxfirst using Word or LibreOffice. Legacy.xlsis supported. Files over 100 MB are rejected before parsing (ok: false,Download failed, no charge).
See also
- PDF Text Extractor — Same workflow for PDFs, including OCR for scanned documents
- Image OCR Extractor — Extract text from images using Tesseract OCR
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
Related actors
- 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