Skip to content
CantOpen

Convert Markdown (MD) to PDF or Word

Turn a Markdown file into a PDF or a Word document (.docx) with its headings, tables, code, formulas and diagrams, or copy it formatted into Google Docs or an email. Everything happens in your browser; nothing is uploaded.

Drop your .md file here, or a folder or ZIP of them

or

Your file stays on this device: it is read here, in your browser, and never uploaded.

Markdown (.md, .markdown), Mermaid (.mmd), a folder, a ZIP or an Obsidian vault. Up to 20 MB per Markdown file.

How it works

  1. Drop the .md file

    Or paste the Markdown text. It is read by code running in this page and shown formatted, so you see what you will get.

  2. Choose PDF or Word

    PDF keeps the headings as bookmarks and the links working; Word gets real heading styles and lists you can keep editing. Or use Print for the browser’s own PDF, or copy as rich text.

  3. Many files? Convert them in one go

    Drop a folder, a ZIP or an Obsidian vault to get one PDF or Word file per note in a ZIP, or every note in one PDF with a table of contents. Single files are free; whole folders are paid.

Markdown to PDF and Word, explained

What gets converted

Markdown is plain text with formatting symbols, used for README files, notes, documentation and the answers AI assistants such as ChatGPT and Claude write. People who receive it usually need a document anyone can open: a PDF to send or print, or a Word file to keep editing. To only read one, use the Markdown viewer.

  • Headings, paragraphs, bold, italic, strikethrough and links (live links in the PDF).
  • Bullet, numbered and task lists, nested.
  • Tables, with the header row repeated when a table runs onto the next page.
  • Code blocks in a monospace font on a gray background; quotes; footnotes.
  • Math formulas (KaTeX) and Mermaid diagrams, drawn as pictures.
  • Pictures stored next to the file, when you drop the folder or a ZIP with them.

The PDF

A4 or US Letter paper, chosen from your browser’s language region, with page numbers. Each heading becomes a bookmark, so the PDF can be navigated from the side panel of any PDF reader, and links to headings inside the document jump to them.

The PDF’s fonts cover Western and Central European languages, Greek, Cyrillic and Vietnamese (in code blocks, Western European letters only). Characters outside them (Chinese, Japanese, Korean, Arabic, Hebrew, emoji) print as “?”; the page says so, and Print with “Save as PDF” keeps every character, because the browser draws the page itself.

The Word file

The .docx uses Word’s built-in heading styles, so the navigation pane and Word’s own table of contents work, and lists are real Word lists. It opens in Microsoft Word, LibreOffice, Pages and Google Docs (upload it to Google Drive and open it with Google Docs).

Copy as rich text

“Copy as rich text” puts the formatted document on the clipboard: paste it into Google Docs, Word, Outlook or Gmail and the headings, lists, tables and code keep their look. Formulas and diagrams are pasted as pictures.

Whole folders, ZIPs and Obsidian vaults (paid)

Drop a folder or a ZIP of Markdown files, several files at once, or an Obsidian vault, and convert every note in one go: a ZIP with one PDF or Word file per note (or both), keeping the folders, or one PDF with every note, a table of contents and bookmarks, in which [[links]] between notes jump to the right page. Files that cannot be read are listed in the ZIP. Reading every note and saving them one at a time stay free.

What can look different

  • Layout is the document’s structure, not a copy of any website’s style: fonts are standard, colors of code are not kept in the PDF or Word file.
  • Raw HTML in the Markdown is shown in the viewer after cleaning; in the PDF and Word file it becomes its text.
  • Pictures from the web are never put into the file (Print keeps them once loaded).

Nothing is uploaded

Most online converters upload the file to a server. Here the PDF and the Word file are made by code running in your browser; no code on the page sends the file, its name or its contents anywhere, not even to our own domain. Pictures from the web load only if you choose “Load pictures”, and never go into the PDF or Word file.

Microsoft, Word and Outlook are trademarks of Microsoft Corporation; Google Docs, Google Drive and Gmail are trademarks of Google LLC; Pages is a trademark of Apple Inc.; LibreOffice is a trademark of The Document Foundation; ChatGPT is a trademark of OpenAI; Claude is a trademark of Anthropic; Obsidian is a trademark of its owner. CantOpen is not affiliated with or endorsed by any of them.

Frequently asked questions

How do I convert Markdown to PDF?

Drop the .md file on this page and press PDF. The PDF keeps the headings (as bookmarks), lists, tables, code, formulas and diagrams. For every character of any language, use Print and choose “Save as PDF”.

How do I convert Markdown to Word?

Drop the file and press Word (.docx). The document uses Word’s heading styles and real lists, so you can keep editing it in Word, LibreOffice, Pages or Google Docs.

How do I get Markdown into Google Docs?

Open the file here and press “Copy as rich text”, then paste into Google Docs: the formatting comes along. Or save it as Word and open the .docx with Google Docs.

Is it free?

Converting one file at a time to PDF or Word is free, with no account and no watermark. Converting a whole folder, ZIP or vault in one go is paid.

Is my file uploaded?

No. The conversion runs in your browser; the file never leaves your device. No code on the page sends the file, its name or its contents anywhere, not even to our own domain. Pictures from the web load only if you choose “Load pictures”, and never go into the PDF or Word file.

Are formulas and Mermaid diagrams kept?

Yes, as pictures: formulas are set with KaTeX and diagrams drawn with Mermaid in the page, then placed in the PDF or Word file. If one cannot be drawn, its source text is written instead and the page says so.

Can I convert an Obsidian vault to PDF?

Yes, with the paid conversion: drop the vault (or a ZIP of it) and choose one PDF per note or one PDF with every note, a table of contents and working [[links]] between notes.

Sources