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

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).

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 "pathdocument.md" -f markdown -o "pathoutput.docx"

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 "pathfile.docx" -f docx -o "pathfile.md"

The post How To Convert Markdown Files to Word Documents on Windows, and Vice Versa appeared first on Next of Windows.