Markdown is easy to write and awkward to send: the person on the other end wants a PDF they can print or a Word file they can edit, not a page of # and ** symbols. Here are five ways to convert an .md file, and how the result differs. (We make Xiaoer Omia (xiaoeromia.com), option 4 — the others are described as fairly as we can.)
Last checked: November 2026
If you write in Visual Studio Code, the free "Markdown PDF" extension converts the open file to PDF, HTML, PNG or JPEG. It prints through Chrome, Edge or Chromium, and downloads a Chromium of its own if none is installed.
Pandoc is a free converter between document formats, run from the command line. pandoc notes.md -o notes.docx makes a Word file; -o notes.pdf makes a PDF.
Typora is a desktop Markdown editor. File > Export saves a PDF with bookmarks; Word export works too, once Pandoc is installed.
Xiaoer Omia (xiaoeromia.com) is a desktop viewer for Mac and Windows. Open the .md to read it formatted, then Save As: PDF, Word (.docx), HTML or plain text. Nothing is uploaded.
Websites that take an uploaded .md file and give back a PDF or a Word document.
| Word (.docx) | What the PDF is | Works offline | Cost | ||
|---|---|---|---|---|---|
| VS Code + Markdown PDF | Yes | No | Printed by Chrome or Chromium | Yes | Free |
| Pandoc | Yes, needs LaTeX | Yes | Typeset by LaTeX | Yes | Free |
| Typora | Yes | Yes, needs Pandoc | Exported with bookmarks | Yes | $14.99 |
| Xiaoer Omia | Yes | Yes | An image of each page; text not selectable | Yes | 5 free conversions, then $19.90 once |
| Online converter | Usually | Often | Varies | No, uploaded | Usually free |

Open the .md in a viewer that exports, such as Xiaoer Omia (xiaoeromia.com), and Save As PDF. If you already use VS Code, the free Markdown PDF extension does it from the editor. Pandoc gives the most control but needs a LaTeX install for PDF.
It depends on the tool. Pandoc typesets the PDF with LaTeX. Xiaoer Omia's PDF is a snapshot: each page is an image that looks exactly like the preview, but the text can't be selected or searched. If you need copyable text from Omia, save as Word instead.
Pandoc does it in one command (pandoc notes.md -o notes.docx). Typora exports to Word once Pandoc is installed. In Xiaoer Omia, open the file and Save As Word (.docx); headings, lists and tables come across.
Any of the first four options work on a Mac: VS Code with Markdown PDF, Pandoc with a LaTeX engine, Typora, or Xiaoer Omia.
Yes. The VS Code extension Markdown PDF and Pandoc are free. Xiaoer Omia includes 5 free conversions, then costs $19.90 once. Online converters are usually free but upload the file.
Not with options 1 to 4: they all run on your own computer. Online converters upload the file.
Related: How to open an MD file · Markdown viewer and editor · How to open a DOCX file · Word to Markdown · JSON to CSV, Excel or YAML · SVG to PNG, JPG or PDF · PDF viewer · All guides · 150+ formats in one app