DOCX to Markdown

How to convert DOCX to Markdown

Upload the Word document, get Markdown back. Headings, lists and tables keep the structure they had in the file. Nothing to install and no account needed to try it.

Convert a DOCX file in three steps

  1. Open the app with the Try it free button.
  2. Upload your DOCX file. You can upload up to 10 files at once.
  3. Read the Markdown in the browser, then copy or download it.

The same steps work for PDF, PowerPoint (.pptx), Excel (.xlsx), CSV, plain text and images. Older Word files must be saved as .docx first.

What a good DOCX to Markdown conversion keeps

A Word document has more structure than a PDF, so a converter has less to guess. It still has to turn Word's styles into Markdown syntax. Check these four things in any output.

  • Headings. Heading styles become lines that start with #, at the right level.
  • Tables. A Word table becomes a Markdown table, with each value in its own cell.
  • Lists. Bulleted and numbered lists stay lists, with their nesting.
  • The exact words. The text matches the document, character for character.

Documents where people formatted headings by hand, with bold text and a larger font, are the hard case. Word does not mark those lines as headings, so the converter has to decide.

Ways to convert DOCX to Markdown

MethodWorks well forWatch out for
Copy and paste from WordA few paragraphsTables and heading levels flatten into plain text
A command-line converter such as PandocClean documents that use Word's heading styles, and developers who like scriptsComplex tables and hand-formatted headings can need cleanup
An LLM that reads each documentA handful of messy documentsThe cost is per page and repeats on every re-run. The model can also rewrite numbers.
A conversion service such as docs2mdMixed folders of Word, PDF and PowerPoint files, and archives of any sizeYou upload the file, so check the privacy terms first

A folder with more than Word files

Real archives mix formats: contracts in DOCX, reports in PDF, decks in PPTX. docs2md converts all of them to Markdown in one run, so the output has the same shape whatever the input was.

Converting many DOCX files

One file is a quick job. A whole archive is a cost question. Converting by page with a language model costs more with every page, and you pay again every time you change the prompt or move to a new model.

docs2md copies the text from the file instead of asking a model to rewrite it. An API is available for batches, so a data team can run an archive through a script.

Questions

Is it free?

You can try it free. Upload a file in the app and read the result before you decide anything.

Does it keep tables?

Yes. Tables come out as Markdown tables, so a row stays a row.

Does it convert old Word files?

It converts .docx files. Open an older file in Word, save it as .docx, then upload it.

Which other files can I convert?

PDF, Word (.docx), PowerPoint (.pptx), Excel (.xlsx), CSV, plain text and images (PNG, JPG, TIFF, BMP, WebP). See the guides for PDF and PPTX.

Is the output good for RAG and LLMs?

Markdown is a common input for both. Headings give you clean places to split a document into chunks, and tables stay whole.

Convert your own Word document

Upload a DOCX file and compare the Markdown with the original.