Dev TooloraLocal dev tools

> Documents & PDF

DOCX to Text & Markdown

Convert a Word .docx document to plain text or Markdown with headings, lists, tables, links and tracked changes, locally.

Runs locallyWorks offline
Auto-run
Back to results
Input

Source data

Output
Output

Result

Your result will appear here.

Tool guide

About this tool.

A .docx file is a ZIP archive of XML parts. The main part holds the body as paragraphs and tables, a styles part names the heading styles, and a numbering part says which paragraphs are bullets or numbered items. This tool opens the archive in your browser, finds the main part through the package relationships and walks the body in order. Nothing is uploaded.

Headings come from the built-in style names heading 1 to heading 6 and from Title, even when the style id is localized, and otherwise from an outline level on the paragraph or its style. List items come from the numbering definitions, so a numbered list keeps its start value and restarts the deeper levels.

Choose a .docx file. It converts straight away.

Pick Plain text or Markdown. The alias DOCX to Markdown starts with Markdown selected.

Read the summary for the number of paragraphs, headings, lists and tables, and for what was skipped.

Copy the text or save it as a .md or .txt file.

  • Convert a report to Markdown to paste it into a README or a wiki page.
  • Choose Plain text to get the words with simple list markers and tab-separated table rows.
  • Open the alias DOCX to Markdown to start with Markdown output selected.
  • Check the summary to see how many headings, lists and tables were found.
  • Convert a document with tracked changes to get the text as it reads with every change accepted.
  • Use the result as a clean starting point before converting the Markdown to PDF.

  • Everything runs locally; the document never leaves your device.
  • Images, text boxes, equations, footnote references, comments, headers and footers are skipped and counted in the summary.
  • Formatting that comes only from a style is ignored; only direct bold, italic and strike-through reach the Markdown.
  • Empty paragraphs collapse, so blocks are separated by exactly one blank line, and a page break starts a new paragraph.
  • Content controls, smart tags, custom XML and simple fields keep their text, and the result of a complex field is kept.
  • Documents from Word, Google Docs, LibreOffice, Pages and textutil are supported, including files without a style or numbering part.
  • Text is escaped for Markdown, so characters such as * and _ in the document do not turn into formatting.

FAQ

Questions about DOCX to Text & Markdown

Why does an old or protected file fail?

The tool supports .docx only. The old binary .doc format and password-protected files are not supported, and neither are OpenDocument .odt files. Open the file in Word or LibreOffice and save it as .docx without a password.

What is left out?

Images, text boxes, equations, footnote references, comments, headers and footers are skipped. The summary counts what was skipped so you know the output is not the whole document.

Why is some bold text not bold in the output?

Markdown uses ** for bold, * for italic and ~~ for strike-through only when the run itself is formatted. A style such as Strong that adds bold through the style sheet is not detected.

How are lists written?

Lists use the numbering definitions in the file. A bullet list uses - and an ordered list keeps its start value, so a list that starts at 3 prints 3. first. Nested items are indented by the width of the parent marker.

How large can a document be?

The file can be up to 20 MiB, and the XML and the converted text are size limited. A document that exceeds a limit stops with an error naming it; nothing is cut off silently.

Continue with

XLSX to CSV & JSONConvert an Excel workbook to CSV or JSON, one sheet or all sheets, with dates as ISO text and formula results, locally.Markdown to PDFCreate a readable local PDF from a basic Markdown subset, with Latin diacritics, measured wrapping and page numbers.