How to Convert Word Documents to Markdown

Learn how to convert a Word .docx file to Markdown, which formatting and images get lost, and how to check the output in a plain-text editor.

If you need a Word document as Markdown for a README, a static website, a documentation repository or a knowledge base, you will find that the conversion rarely happens in one click. Word stores layout, styles and embedded images in its own format. Markdown keeps only a small set of plain-text markers for headings, lists, links and emphasis. A Word to Markdown converter can handle much of the mechanical work, but it cannot decide how a wide table or a figure should look in plain text.

This guide is for writers, developers and support teams who need to move a .docx file into Markdown. It explains which route suits which kind of document, what formatting and images are typically lost, and how to check the result in a text editor before you publish it. This covers only the Word-to-Markdown direction.

You will get a clear route for common documents, a checklist to run before converting, a step-by-step process, and a way to verify the output.

How do you convert a Word document to Markdown? The short answer

Run the .docx file through a converter that writes Markdown, then clean up the output in a plain-text editor. Expect to fix tables, image links and any text that relied on Word-only formatting, because Markdown cannot hold Word's full layout.

Your situationWhat to doWhy
Text with headings, lists and linksConvert with a converter that reads .docx, then preview the resultHeading styles, lists and links map cleanly to Markdown markers
Many tables or merged cellsRebuild simple tables as Markdown tables, and keep complex ones as HTML or as an imageMarkdown tables cannot represent merged cells or nested content
Figures and screenshotsSave images as separate files and link them from the .md fileMarkdown has no native way to store an image inside the text
A document you also need in another languageTranslate the .docx first, then convert the translated fileKeeps translation and formatting checks separate
A few paragraphs onlyPaste into a plain-text Markdown editor and add the markers by handLess setup for short text than installing a converter

Before you start

A few checks before you convert will save time later, because most problems come from the source file rather than the conversion itself.

  • Accept or remove tracked changes and comments. Converters may write deleted text or reviewer notes into the output as stray lines.
  • Confirm headings use Word's built-in heading styles. Converters usually read heading styles, not font size. Text that is only bold and larger will come out as a plain paragraph.
  • Decide where the images will live. Markdown links to image files, so the picture files need to sit in a folder you can keep next to the .md file.
  • Look for text boxes, footnotes and multi-column layouts. They often flatten into a stream of text in a different order than the page showed.
  • Work on a copy. Keep the original .docx untouched so you can compare and re-run the conversion if needed.

Converting a .docx file to Markdown, step by step

  1. Clean the source file. Accept or reject tracked changes, delete leftover comments, and check that each section title uses a heading style. This gives the converter clear structure to read.
  2. Save a working copy. Save the cleaned file under a new name, then open it once to confirm it is not damaged. The copy is the file you will convert.
  3. Choose a converter. Use a converter that accepts .docx input and writes Markdown output. Online converters suit short files that contain no confidential material. For private content, use a desktop or local command-line tool, and check whether an online service stores uploaded files before you upload anything.
  4. Run the conversion and save the output. Save the result with a .md extension. If the converter also produces an image folder, keep it in the same location as the .md file.
  5. Place the images beside the Markdown file. Image links in Markdown are usually relative paths, so they break if the folder moves. Keep the file and its image folder together when you copy or publish.
  6. Open the .md file in a plain-text editor and preview it. A Markdown preview shows how headings, lists and links will render. Scroll through the whole document rather than only the first page.
  7. Fix tables and special blocks. Rebuild simple tables as Markdown tables. For tables with merged cells, use an HTML table inside the Markdown file or replace the table with an image. If the Word file has equations, check them and rewrite them in the LaTeX syntax your Markdown renderer supports. If you prefer to review and edit the content in a browser, the UniDoc web editor at app.unidoc.top supports Markdown and Word-compatible editing.
  8. Save with UTF-8 encoding. UTF-8 keeps accented letters, quotation marks and symbols intact across editors and platforms.

Check the result

Review the Markdown file against the original Word document before you publish it. The table below lists what to check and how to fix each problem.

CheckHow to see itIf it's wrong
Heading levelsPreview the file, or look at the # markers in the editorAdjust the number of # signs so Heading 1 and Heading 2 match the original
ListsCompare bullets and numbered items with the Word fileRenumber numbered lists by hand, since some converters restart the count
ImagesCheck that each image appears in the previewFix the relative path, or move the image folder beside the .md file
TablesConfirm columns line up and no cells are missingRebuild as a Markdown table, or use HTML for merged cells
Missing textSearch the .md file for a unique phrase from the originalCheck text boxes, footnotes and headers, which are often skipped
Special charactersLook for question marks, boxes or broken symbolsSave the file again as UTF-8

Read the full text once more with the original open beside it. Conversion can change punctuation and spacing, and some content may need manual correction before publication.

❓ FAQ

1. Can Word export directly to Markdown?

Word's own save options do not write Markdown files. You can save as plain text or HTML, but both lose structure or add markup you must clean up. A converter that reads .docx and writes Markdown gives you a closer result.

2. Can I copy and paste from Word into a Markdown file?

You can, but pasted text often carries Word's formatting with it. Paste into a plain-text editor first to remove styles, then add the Markdown markers for headings, lists and links by hand.

3. Are images kept when I convert a Word document to Markdown?

Images are usually extracted as separate files and linked from the Markdown text. Check that each link points to the right file after you move the output, because broken paths are a common cause of missing pictures.

4. Does OmniDoc convert Word files to Markdown?

OmniDoc's document translation lists Word and Markdown among its supported formats, and its output can be bilingual or translation only. The feature set described here does not include a plain Word-to-Markdown export, so use the general method in the steps above for that conversion.

📝 Summary

Converting a Word file to Markdown works well when you clean the source first, convert it with a Word to Markdown converter that reads .docx, and then check headings, tables and images in a preview. Markdown cannot keep every Word feature, so expect manual fixes for tables, figures and layout.

Open OmniDoc to convert and tidy up your documents

Updated 2026-11-04