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 situation | What to do | Why |
|---|---|---|
| Text with headings, lists and links | Convert with a converter that reads .docx, then preview the result | Heading styles, lists and links map cleanly to Markdown markers |
| Many tables or merged cells | Rebuild simple tables as Markdown tables, and keep complex ones as HTML or as an image | Markdown tables cannot represent merged cells or nested content |
| Figures and screenshots | Save images as separate files and link them from the .md file | Markdown has no native way to store an image inside the text |
| A document you also need in another language | Translate the .docx first, then convert the translated file | Keeps translation and formatting checks separate |
| A few paragraphs only | Paste into a plain-text Markdown editor and add the markers by hand | Less 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
- 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.
- 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.
- 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.
- 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.
- 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.
- 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.
- 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.
- 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.
| Check | How to see it | If it's wrong |
|---|---|---|
| Heading levels | Preview the file, or look at the # markers in the editor | Adjust the number of # signs so Heading 1 and Heading 2 match the original |
| Lists | Compare bullets and numbered items with the Word file | Renumber numbered lists by hand, since some converters restart the count |
| Images | Check that each image appears in the preview | Fix the relative path, or move the image folder beside the .md file |
| Tables | Confirm columns line up and no cells are missing | Rebuild as a Markdown table, or use HTML for merged cells |
| Missing text | Search the .md file for a unique phrase from the original | Check text boxes, footnotes and headers, which are often skipped |
| Special characters | Look for question marks, boxes or broken symbols | Save 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.


