Skip to main content

Markdown to PDF

Paste Markdown or open a .md file and get a clean, printable PDF with headings, lists, code blocks, tables and bookmarks.

Free, no sign-up. Everything runs in your browser.

358 characters. Nothing is uploaded.

Page size
Text size
Margins

Step by step

How to use Markdown to PDF

  1. 1

    Add your Markdown

    Paste or type it in the box, or open a .md or .markdown file such as a README, notes or documentation.

  2. 2

    Choose the page

    Pick A4, Letter, A5 or Legal, a text size and margins.

  3. 3

    Convert

    Press Convert to PDF. The file downloads with your first heading as its title, and every heading as a bookmark.

Overview

About Markdown to PDF

Markdown is plain text with a few symbols for formatting: # for headings, ** for bold, - for lists, backticks for code. It is how README files, notes apps and a lot of documentation are written. It reads well in an editor, but you cannot hand it to someone who needs a document. This tool turns it into a neat PDF you can print, email or attach.

Headings become real headings, and each one is added to the PDF's bookmarks, so long documents are easy to move around in. Bold, italics and inline code keep their style. Code blocks and tables are set in a fixed-width font so their columns line up. Pages are numbered.

The conversion happens in your browser. Your text is not uploaded, so it is safe for private notes, internal docs and drafts.

When it helps

  • Sharing a GitHub README or project docs with someone who does not use GitHub
  • Printing study notes written in Obsidian, Notion export, Typora or VS Code
  • Sending meeting notes or a plan written in Markdown as a PDF attachment
  • Turning a Markdown CV or cover letter into a PDF to apply with

Specs

Supported files and limits

Input
Pasted text or a .md, .markdown or .txt file, up to 2 MB
Supported
Headings, bold, italics, inline code, links, nested and numbered lists, task lists, quotes, code blocks, tables and horizontal rules
Output
A PDF with selectable text, page numbers and a bookmark for every heading
Pages
A4, Letter, A5 or Legal; text size 10 to 14 pt; narrow, normal or wide margins
Where it runs
In your browser. Nothing is uploaded.

Good to know

  • Pictures are not placed in the PDF, because a Markdown file only links to them; the picture's description is shown instead.
  • Links keep their text and show the web address in brackets after it. They are not clickable in the PDF.
  • The PDF uses standard fonts, so English and other Latin-script text converts fully. Emoji, Hindi, Chinese and similar characters show as ?, and the tool tells you how many.
  • Raw HTML inside the Markdown is removed, and maths (LaTeX) and diagrams (Mermaid) are shown as their source text.

Fix a problem

Troubleshooting

Some characters show as ?

They are emoji or letters the standard PDF fonts do not have. Remove or replace them; the rest of the document is not affected.

My table looks squashed

Wide tables are set in a fixed-width font so the columns line up. Choose a smaller text size or Narrow margins, or shorten long cells.

A list is not indented

Indent nested items by two or four spaces under the item above, as in most Markdown editors.

FAQ

Frequently asked questions

How do I convert a Markdown file to PDF?

Open the .md file with Open a file, or paste its text into the box, then press Convert to PDF. The PDF downloads straight away.

Does it keep headings, code blocks and tables?

Yes. Headings stay headings and become PDF bookmarks, code blocks and tables are set in a fixed-width font, and bold, italics and inline code keep their style.

Can I convert a GitHub README to PDF?

Yes. Open the README on GitHub, click Raw, copy the text and paste it here, or download README.md and open it.

Are images included?

No. A Markdown file only links to its pictures, so the tool shows each picture's description in its place.

Is my Markdown uploaded?

No. The PDF is made in your browser and the text never leaves your device.

Is it free?

Yes, free with no sign-up and no watermark.