Skip to the content

Contact usFree tools · No signup · Files stay on your device

Developer Tools

Word to Markdown: the complete guide to converting DOCX to MD

Word to Markdown: the complete guide to converting DOCX to MD

Markdown is how documentation, READMEs, static blogs and many note apps keep their text. Word is where a lot of that text starts. Our free Word to Markdown converter reads a .docx in your browser and writes GitHub-flavoured Markdown: headings with #, **bold** and *italic*, nested lists, and tables with pipes.

This guide covers each setting, the exact rules for how Word elements become Markdown, and the problems to look out for. If you are publishing to a website rather than a Markdown system, the Word to HTML guide may suit you better.

What Word to Markdown does

It reads the structure of the Word file and writes Markdown from it:

  • Title and Heading 1 to Heading 4 become # to #### headings.
  • Bold, italic and strikethrough become **…**, *…* and ~~…~~.
  • Bulleted lists become - items and numbered lists keep their numbers, with nesting.
  • Tables become pipe tables.
  • Special characters are escaped, so text is not mistaken for Markdown.

It does not carry over fonts, colours, underline, alignment, page layout, headers and footers, text boxes, comments or footnotes, because Markdown cannot express them. It does not add front matter, and it cannot read an old .doc file.

How to use Word to Markdown, step by step

  1. Open Word to Markdown.
  2. Press "Choose a Word file" or drop a .docx on the box.
  3. Under Output, the Convert to switch is already on Markdown.
  4. Decide on "Keep pictures (embedded as data: links, makes the file large)" and "Mark where Word pages break".
  5. Check Paragraphs, Headings, Tables and Images in the statistics row.
  6. Read the Markdown in the Result panel, then press Copy or "Download .md".

The downloaded file keeps your Word file's name with .md at the end.

Every option explained

Keep pictures

Off by default, and each picture becomes the line *[image]*. When it is on, JPG and PNG pictures are written as ![](data:image/…) links with the picture's bytes inside the Markdown. The file still works, but it can become many times larger than the text, and many editors slow down on such long lines. For a website or repository, leave this off and add the image files yourself, with proper alternative text.

When a picture is left out, a note says how many: "N pictures are not included; each is marked as [image]."

Mark where Word pages break

Off by default. When it is on, every manual page break becomes a horizontal rule (---). Only breaks you inserted, such as Ctrl+Enter or "Page break before", are marked. Automatic page ends are not. Most Markdown documents do not need page marks, so turn this on only for a document that really has pages, such as a report you want to read in sections.

How Word elements become Markdown

In Word In the Markdown
Title # Title, unless the document has a Heading 1, when it becomes bold text
Heading 1, 2, 3, 4 #, ##, ###, ####
Heading 5 and deeper ####
Bold, italic, strikethrough **bold**, *italic*, ~~struck~~
Underline, colour, size, alignment dropped
Bullet list - item, nested lists indented
Numbered list 1. item, 2. item, keeping the start number
Shift+Enter line break a trailing backslash, then a new line
Table pipe table; the first row is the header
Picture *[image]* or an embedded link

A numbered heading such as "1.2 Scope" in a list stays a heading, and its number becomes part of the text. Bold on headings is dropped, because the heading is already strong.

A worked example

A short notice in Word has a Heading 2 called "Admission", a paragraph with some bold, italic and struck-through text, a bulleted list with a nested item, a numbered list, a Heading 3 "Fees" and a small table. The Markdown is:

## Admission

Last date is **15 March**, *no extension*. Use file_name\* and #1 carefully; ~~old~~ underlined

- Bring SSC certificate
  - Photocopy
- Two photos

1. Fill the form
2. Pay the fee
3. Submit

### Fees

| Class | Fee (BDT) |
| --- | --- |
| Six | 1,500 |
| Seven \| Eight | 1,800 |

Look at what happened:

  • Heading 2 and Heading 3 became ## and ###: the number of hash marks follows the Word heading level.
  • The * in file_name* is escaped as \* so it does not start italic text.
  • The underlined word lost its underline.
  • The pipe in "Seven | Eight" is escaped as \|.
  • The table header has plain dashes. Markdown tables do not carry column alignment from Word.

What it accepts and its limits

  • Files: .docx, .docm and .dotx, up to 100 MB.
  • Old .doc: refused with a message asking you to save it as .docx first.
  • Other files: "This file isn't a Word document (.docx). Excel and PowerPoint files can't be read here."
  • Protected or damaged: "This document couldn't be opened. It may be damaged or password-protected."
  • Empty: "This document has no text to convert."
  • Pictures: JPG and PNG only. A warning counts old Windows drawings (EMF or WMF) and shapes that were left out.
  • Display: the Result box shows the first 200,000 characters of a very long document. Copy and Download give everything.

Privacy

Word to Markdown runs in your browser. The document is opened and converted on your device and is never uploaded, so a contract draft or an internal policy stays with you.

Escaping: why a backslash appears

Markdown treats some characters as formatting, so the tool puts a backslash before them when they are part of your text. Expect to see \*, \_, \[, \], \<, \>, \~ and \`` where the Word text had those characters. A line that starts with #, -, +` or a number and a dot is escaped too, so it does not become a heading or a list.

Underscores inside words, such as file_name, are left alone, because Markdown does not treat those as italic.

In a table, a pipe in a cell is escaped, and a line break inside a cell becomes <br>. Tables from Word hold plain text only, so formatting inside a cell is not kept.

Tips to work faster

  • Apply heading and list styles in Word first. A line that is only big and bold stays a paragraph.
  • Use Word's list buttons for lists. Numbers typed by hand are text.
  • Keep tables simple, with a header row and no merged cells.
  • Preview the result in the Markdown Previewer before you commit it.
  • Add the front matter your site needs at the top of the file after downloading.
  • To make a table from a spreadsheet instead of Word, see how to make a Markdown table from Excel or Google Sheets.

Common problems and how to fix them

Everything is a paragraph, with no # marks

The headings were formatted by hand, not with styles. Apply Heading 1 to 4 in Word and convert again. The Headings count shows how many were found.

Web and e-mail links are written as [text](address). A link to a bookmark inside the document, or a link inside a table cell, keeps only its words. Add those by hand, in the form [text](https://example.com).

The table is missing a header

Markdown tables need one, so the first row of every Word table is used as the header. If your table has no header row, the first data row becomes one. Insert a header row in Word first.

Nested lists are flat

Nesting follows Word's list levels. Indenting text with spaces or the Tab key in a normal paragraph does not make a list level. Use Increase Indent from the list buttons in Word.

The file is gigantic

"Keep pictures" is on. Turn it off and add image files separately.

Lines are broken with a backslash

That is a hard line break from Shift+Enter. It works in GitHub-flavoured Markdown. If your renderer shows the backslash, replace it with two spaces at the end of the line, or split the paragraph.

Quick checklist

  • Use real heading and list styles in Word.
  • Leave "Keep pictures" off for sites and repositories.
  • Expect underline, colour and links inside tables to need attention.
  • Preview the result before you publish.
  • Add front matter by hand if your site needs it.

Frequently asked questions

Does the tool add front matter for Jekyll, Hugo or Docusaurus?
No. It writes the document body only. Add the front matter block with the title, date and tags at the top of the .md file yourself.
What happens to underline, colours and font sizes?
They are dropped, because Markdown has no way to write them. Bold, italic and strikethrough are kept, as **bold**, *italic* and ~~strikethrough~~.
Why do my headings stop at four hash marks?
The converter reads Word Heading 1 to Heading 4, and anything deeper is treated as a level 4 heading. Title becomes a level 1 heading unless the document already has a Heading 1.
Do my links come across?
Yes. Web and e-mail links become [text](address) links. Links to a bookmark inside the document, and links inside table cells, keep only their text.
Are pictures included?
Not by default: each picture becomes *[image]*. Tick “Keep pictures” to embed JPG and PNG images as data: links, which works but makes the .md file very large, so for a real site it is better to add image files by hand.
Found this useful? Share it

Tools in this guide

Main tool

Word to Markdown

Turn a Word document into Markdown for GitHub, a docs site, a static blog or a note app.

Open tool

Word to HTML

Turn a Word document into clean, semantic HTML you can paste into a website, CMS or e-mail.

Open tool

Markdown Previewer

Write Markdown and see it rendered instantly, with GitHub-style tables, task lists and code blocks.

Open tool

Word to Text

Get the text out of a Word document without the formatting.

Open tool

Back to all guides & blog