OnlineTextLab
Esc

DOCX to Markdown Converter

Move a Word document into Markdown with its headings, links, lists, tables and footnotes intact.

Drop your Word file here

Or paste it with Ctrl V

or drop it here

Accepts .docx. Heading styles, bold, links, lists and tables become Markdown.

Runs on your device. Your files and text are not uploaded.

About DOCX to Markdown

Moving documentation from Word into a Git repository, a static site or a knowledge base means rebuilding its structure by hand, unless something can read that structure for you. Headings need to become # marks, links need their real addresses, and tables need pipes. Doing that for forty pages is nobody's idea of a good afternoon.

This reads the structure Word actually stored and writes standard Markdown from it. What you get is close to what a careful person would type: emphasis only where the author added it, list nesting preserved, tables in GitHub form, and footnotes as [^1] references. You can read it on screen, copy it, or download a .md file.

How it works

A heading is recognized by what its style means, not its name on the surface. The reader checks the style's English name, any outline level, and the styles it inherits from, so a heading in a German copy of Word, where the style ID is berschrift1, is still found because its stored name is heading 1. Title style maps to a level one heading.

Word splits text into runs for reasons invisible to you, such as a spell-check pass, so neighboring runs with the same formatting are merged before anything is written. That is why you get up to date and not up to date. Spaces at the edge of a bold run are moved outside the markers, because Markdown ignores word . Characters that would otherwise be read as formatting, such as a literal asterisk or a line starting with 1., get a backslash. A paragraph set entirely in a monospaced font becomes a fenced code block, and a Quote style becomes a block quote.

How to use DOCX to Markdown

  1. Press Select a Word file or drop a .docx here.
  2. Read through the Markdown shown, along with the counts of headings, list items and tables it found.
  3. Press Download .md, or Copy to paste it into your editor.

From the sample Word file

Input
Word document: heading styles, bold and italic text, a link, a numbered list, a table and a Quote-style paragraph
Output
# Field trip plan

The **science club** visits the river on *Friday 14 May*. Read the [safety page](https://example.com/safety) first.

## Schedule

1. Meet at the main gate
2. Walk to the river

| Time | Activity | Lead |
| --- | --- | --- |
| 09:00 | Registration | Priya |

> Permission slips are due on Wednesday.

The link keeps its real address, which plain copying often loses, and the first table row becomes the Markdown header row with its Word bold dropped because headers are bold already.

When it helps

  • Migrating a policy manual or handbook from Word into a documentation site
  • Putting a document under version control so changes show up as readable diffs
  • Reusing a Word report's text in a blog that takes Markdown
  • Giving a text-based writing workflow a starting point from someone else's document

Tips for a better result

  • Use real heading styles in Word before converting. Text that merely looks like a heading (large and bold) has no heading style to read, so it stays a bold paragraph.
  • Save the images from the Word file separately. The Markdown refers to each by its file name, such as image1.png, so a ZIP file list can pull them out of the .docx directly, since a .docx is a ZIP.
  • Accept tracked changes in Word first if you do not want to review them after the fact. Deleted text is left out and inserted text kept.

Good to know

  • Images are referenced by file name, not embedded, because Markdown is a text format. A notice tells you how many there are.
  • Underline, text color, font changes and page layout have no Markdown form and are dropped.
  • Merged table cells are flattened to fit a plain grid. A cell spanning two columns leaves the second one empty.
  • Letter and roman list numbering becomes plain 1., 2., because Markdown lists only number with digits.
  • Headers, footers and comments are not converted.

Questions people ask

Which Markdown flavor does it produce?

CommonMark for the basics, with GitHub-style tables, footnotes and strikethrough. Almost every modern renderer handles those. Some simpler ones do not render footnotes and show the [^1] as text.

My headings came out as plain text. Why?

They were formatted by hand rather than with a heading style. In Word, apply the Heading 1 or Heading 2 style to them, save, and convert again.

Does it keep nested lists?

Yes. Each level is indented four spaces, which renders properly under both bullets and numbers. Word's own list levels decide the depth.

Can I convert the Markdown back to Word later?

Yes, with Markdown to DOCX. Structure comes through, while fonts and any custom styling from the original do not.

What to use next

Last reviewed . Read our editorial policy.