How To Convert Markdown Files to Word Documents on Windows, and Vice Versa

1

Markdown is a markup language for creating formatted text. Well, so does Microsoft Word. A well-formatted Microsoft Word file should be structured in a way just like a well-written Markdown file. So in some cases, it works even better, if possible, that you start with markdown and then convert it to a word document. This way, the result will be almost perfect.

So here is how.

First, head over to Pandoc’s website and download the latest installer for Windows. It’s a .msi file that can be installed easily on Windows.

Once installed, there are two ways to convert a Markdown file.

If you use Typora, a light-weighted Markdown editor, you can now open the file and go to File > Export > Word (.docx).

image 25 600x521 - How To Convert Markdown Files to Word Documents on Windows, and Vice Versa

A file-save dialog box pops up for you to select where to save the word document. The result would be lovely.

Now, what if I don’t use Typora or any other Markdown editor?

Let’s open a command prompt window, and simply type the following command.

pandoc "path\document.md" -f markdown -o "path\output.docx"
image 26 600x263 - How To Convert Markdown Files to Word Documents on Windows, and Vice Versa

It works like a charm too.

Here is a piece of additional information about Pandoc. It’s a universal document converter that not only converts a Markdown file to a word documents but vice versa as well.

Simply run the following command and you will get a Markdown file from a word document in a second.

pandoc "path\file.docx" -f docx -o "path\file.md"

Was this article Helpful?

Thank you for the feedback!

1 COMMENT

  1. Actually, there is also another possibility to convert Markdown files to Word documents. I can suggest you have a look at the Writage plugin.

    Writage helps you to convert your Markdown files to MS Word format as well as to convert your DOCX documents to Markdown files. And what is more, you will be able to directly open and edit your Markdown files in Microsoft Word.

LEAVE A REPLY

Please enter your comment!
Please enter your name here