Omia

How to convert Markdown to PDF or Word

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

1. VS Code with the Markdown PDF extension (free)

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.

2. Pandoc (free, command line)

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.

3. Typora ($14.99)

Typora is a desktop Markdown editor. File > Export saves a PDF with bookmarks; Word export works too, once Pandoc is installed.

4. An offline viewer: Xiaoer Omia

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.

5. An online converter

Websites that take an uploaded .md file and give back a PDF or a Word document.

Side by side

PDFWord (.docx)What the PDF isWorks offlineCost
VS Code + Markdown PDFYesNoPrinted by Chrome or ChromiumYesFree
PandocYes, needs LaTeXYesTypeset by LaTeXYesFree
TyporaYesYes, needs PandocExported with bookmarksYes$14.99
Xiaoer OmiaYesYesAn image of each page; text not selectableYes5 free conversions, then $19.90 once
Online converterUsuallyOftenVariesNo, uploadedUsually free
A Markdown file open in Xiaoer Omia on a Mac, with the Save As / Convert menu listing Markdown, HTML, Word, plain text and PDF (snapshot)
Option 4: 18-Notes.md in Xiaoer Omia on a Mac; Save As offers Markdown, HTML, Word (.docx), plain text and PDF (snapshot)
Try Omia · Apple Silicon Mac · IntelWindows More about the Markdown viewer

FAQ

How do I convert Markdown to PDF without installing anything big?

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.

Can I select and copy text in the 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.

How do I convert Markdown to Word?

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.

How do I convert MD to PDF on a Mac?

Any of the first four options work on a Mac: VS Code with Markdown PDF, Pandoc with a LaTeX engine, Typora, or Xiaoer Omia.

Is there a free Markdown to PDF converter?

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.

Are my files uploaded?

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