Word to Markdown

Upload a DOCX file and convert it to clean Markdown. Preserves headings, lists, tables, bold, italic, and links.

Drop a Word document here or click to upload
Accepted formats: .docx
Output — Markdown

To convert a Word document to Markdown, drop the .docx file onto the box above. The Markdown appears below, and you can copy it or download it as a .md file. Word's Heading 1 to Heading 6 styles become # headings, bulleted and numbered lists become Markdown lists, and bold, italics, links and footnotes are kept. Layout such as fonts, colours and page margins is dropped.

What does the output look like?

Headings, bold, italics and a nested list

In Word
[Heading 1] Project brief
[Normal]    The launch is June 3 (bold). Budget is fixed (italic).
[Heading 2] Goals
            • Ship the beta
                ◦ Collect feedback
Markdown out
# Project brief

The launch is **June 3**. Budget is _fixed_.

## Goals

*   Ship the beta
    *   Collect feedback

A link, strikethrough, underline, subscript and an image

In Word
See the style guide (linked to https://example.com/style).
The old deadline (struck through) is gone.
Underlined (underlined) text and H2O (2 in subscript) stay as plain text.
[1×1 PNG image, alt text "Team logo"]
Markdown out
See the [style guide](https://example.com/style). The ~old deadline~ is gone. Underlined text and H2O stay as plain text.

![Team logo](image-1.png)

Images become a numbered placeholder with the Word alt text. The image file itself is not extracted.

A table with two lines in one cell

In Word
┌──────┬──────────┐
│ Name │ Notes    │
├──────┼──────────┤
│ Ada  │ line one │
│      │ line two │
└──────┴──────────┘
(no header row marked)
Markdown out
| Name | Notes |
| --- | --- |
| Ada | line one<br>line two |

The first row is always used as the header, since a Markdown table needs one. Paragraphs inside a cell are joined with <br> so the row stays on one line.

A footnote

In Word
Churn fell¹.
───
¹ Source: 2025 survey.
Markdown out
Churn fell[\[1\]](#footnote-1).

1.  Source: 2025 survey. [↑](#footnote-ref-1)

Footnotes become a numbered list at the end, with links back and forth. They are not Markdown [^1] footnotes.

What happens to images in my Word document?

Each image becomes a placeholder with its alt text, numbered in order: ![Q3 chart](image-1.png), image-2.jpg and so on. The image file is not extracted, so the Markdown stays small and easy to edit. Save the pictures from Word (right-click, Save as Picture) under those names, or change the paths to wherever your images live. The alt text comes from the image's Alt Text in Word.

How are Word tables converted?

Each Word table becomes a Markdown table. The first row is used as the header row whether or not it is marked as one in Word, because a Markdown table must have a header. Word stores every cell's text as paragraphs, so a cell with several paragraphs is joined with <br> to keep the row on one line.

Markdown tables are simpler than Word tables. Merged cells are not merged, and a list or a nested table inside a cell will not survive cleanly. For those, tidy the result in the Table Generator.

Are tracked changes and comments included?

The output reads as if every change was accepted: inserted text is kept and deleted text is left out. Comments are dropped. If you need the deleted text, reject the changes in Word (Review, Reject All) and convert again. If you need the comments, Pandoc can keep them; see the comparison below.

Can I go the other way?

Yes. Markdown to Word builds a .docx with real Word headings and tables from Markdown. A round trip will not give you the original file back byte for byte, but the structure survives.

How are tables, images, styles and other Word features handled?

InputWhat you get
Heading 1 to Heading 6 styles# to ######
Title, Subtitle and custom stylesPlain paragraph
Bold, italic**bold**, _italic_
Strikethrough~text~ (single tilde)
Underline, superscript, subscriptFormatting dropped, text kept
Bulleted and numbered lists* and 1. lists, nested up to five levels
TablesMarkdown table; first row is the header; paragraphs in a cell joined with <br>
Images![alt](image-1.png) placeholder; the file is not extracted
Hyperlinks[text](url)
Footnotes and endnotesNumbered list at the end, linked both ways
Tracked changesInsertions kept, deletions dropped
CommentsDropped
Text in a monospace fontPlain text; Word has no code style to map to code blocks
Equations (Word equation editor)Not converted to LaTeX
EmojiKept
Headers, footers, page numbersNot included
.doc (Word 97-2003)Not supported; save as .docx first

How does this compare with Pandoc and the Mammoth command line?

MDConvert (this page)PandocMammoth CLI
Install neededNo, runs in the browserYes, command-line programYes, npm or pip package
OutputGitHub-flavored MarkdownMany Markdown flavours, plus other formatsHTML; its Markdown output is deprecated
ImagesPlaceholder path; files not extractedSaved as files with --extract-mediaSaved as files with --output-dir
Tracked changesAcceptedAccepted by default; --track-changes=all keeps bothAccepted (this page uses Mammoth)
CommentsDroppedKept with --track-changes=allDropped unless you add a style mapping
Custom style mappingNoYes, with filtersYes, style maps
Many files / scriptingNoYesYes

For a book, a batch of files or anything with lots of images, Pandoc with --extract-media is the better tool. This page is for converting one document without installing anything.

Maintained by Ankit Aglawe. Last updated .

Related Tools

Need a different format? See every tool on the Markdown converter page, or go back to the MDConvert home page.

Word to Markdown questions

Can I convert an old .doc file?
No. The converter only reads the newer .docx format, so the file picker only offers .docx files. Open it in Word or LibreOffice, save as .docx and try again.
Does it work with Google Docs or Pages files?
Yes, once exported. In Google Docs use File, Download, Microsoft Word (.docx). In Pages use File, Export To, Word. Then drop the .docx here.
Are headers, footers and page numbers included?
No. Only the main body, footnotes and endnotes are read. Page headers, footers and page numbers are left out.
What happens to text boxes?
Their text is kept and placed as a separate paragraph right after the paragraph that holds the text box.
My title is not a heading. Why?
Word's Title and Subtitle styles, and any custom style, are converted as normal paragraphs. Only Heading 1 to Heading 6 become # to ######. Apply a Heading style in Word, or add the # yourself.
Is my document uploaded?
No. The .docx is unzipped and converted by JavaScript in this page. It never leaves your computer.