“We noticed you may be using an ad blocker. SEO Site Checker relies on ads to keep our SEO tools free. Please consider disabling your ad blocker to support us - thank you!”“We noticed you may be using an ad blocker. SEO Site Checker relies on ads to keep our SEO tools free. Please consider disabling your ad blocker to support us - thank you!”
Quick answer: A markdown to PDF converter turns plain-text Markdown into a fixed-layout PDF. Ours is free and reads GitHub Flavored Markdown from an .md file or pasted text, then returns A4 pages with selectable text. Convert your own file in the form above.
Expect a print job, not a design tool. Headless Chromium, a browser with no window, prints the HTML that a CommonMark parser makes from your Markdown. There is no live preview, editor or page setup, and each run takes one file or one paste.
How to Convert Markdown to PDF Online
Converting md to pdf here takes one form and three actions.
Give it Markdown. Pick a file under "Upload a Markdown file" (the browser's button, usually Choose File) for an .md, .markdown or .txt file, or paste into the text box under "Or paste your Markdown". A file wins if both are filled. Guests get 3 MB per file, a free account 10 MB, and pasted text over 400,000 characters is refused.
Press Convert to PDF. The page reloads with the result: no preview, no progress bar, and the button stays clickable, so press it once. A short document took us 4 to 6.5 seconds.
Download. The Result card lists File Name, Size and a Download button. My Notes (v2).md becomes my-notes-v2.pdf. Download right away, because the link works for about two hours.
Try it: paste a heading and a short table into the form.
What the PDF Looks Like: Page Size, Margins and Fonts
We measured a 7 page A4 test file, and the page margins were the surprise.
Property
What you get
The catch
Page size
A4 paper size, portrait only: 595.9 by 842.9 points, or 210 by 297 mm
No US Letter option and no landscape.
Text and fonts
Sans-serif at 12.5 pt on a 1.65 line height
Liberation Sans, with embedded fonts. Our Unicode test rendered Cyrillic, Greek, CJK, Arabic and color emoji.
Code
Light monospace text on a dark block
Long lines are cut.
Margins
About 6 mm left and right. Page 1 starts about 15 mm down, or 26 mm if it opens with a level 1 heading. Later pages start 0 to 5 mm from the top
Our padding applies once per document. Some pages end within 5 mm of the bottom edge.
Not included
No page numbers, header and footer, table of contents or bookmarks, and no watermark on the pages
The file is untagged, so it has no accessibility structure.
Text and links
Real text you can select, copy and search, plus clickable https and mailto links
Same-page heading links are not clickable.
Printing? Check page 2 in your print preview: the top margin is nearly gone and many printers cannot print that close.
Markdown Syntax That Converts (and What Prints as Typed)
For a GitHub Markdown to PDF job the flavor matters. We parse GitHub Flavored Markdown (GFM), CommonMark plus the pipe table, task list, strikethrough and autolink, and tested no other flavor. See the GitHub Flavored Markdown spec.
Area
Converts
Prints as typed
Behaves differently
Text and lists
Headings 1 to 6, bold and italic, strikethrough, block quote, horizontal rule, nested list, task list with checkboxes
Emoji shortcodes, definition lists
Headings get no anchors, so a contents list is not clickable.
Tables and links
Pipe tables, links, bare URLs, PNG, JPEG, GIF and WebP images from public addresses
None
Every column prints left aligned: the colons in the separator row are ignored.
Code
Fenced code block and inline code
A Mermaid block shows as plain code
No syntax highlighting, so code keeps one color.
Notes and front matter
None
Footnotes and math between dollar signs
YAML front matter becomes a rule plus a heading.
Delete front matter first and turn a contents list into a plain list.
README to PDF: Images, Raw HTML and Headers
Two things break most README.md to PDF conversions: images and raw HTML.
Give images a public address. Our server downloads each image before converting, so it must be public and a PNG, JPEG, GIF or WebP. In our tests a 1600 by 750 PNG and a WebP both embedded. A relative path, a dead link, a non-public address or an SVG, which is what most README badges are, becomes the image's alt text, and the rest converts.
A silent host costs ten seconds. An image host that never answers is given 10 seconds, then its image becomes alt text and the conversion carries on.
Block-level raw HTML disappears with its text. A centered logo and an aligned HTML heading both vanished in our README sample. Inline HTML loses its tags but keeps its text, so a<br>line prints as aline. The CommonMark library security notes document the option that strips it.
Rewrite the header in Markdown. Use a Markdown heading and an image with alt text. If your source is a web page, use the HTML to PDF converter, because this one strips the markup.
Long Code Lines, Wide Tables and Page Breaks
Code does not wrap. About 100 characters fit across the page, and a clipped code line is gone, not hidden: the rest is missing from the text layer. Wrap long commands by hand.
Apart from code, one unbreakable element wider than the page shrinks the whole document to fit, down to about two thirds, and anything still wider is clipped. In our tests a table of 8 columns with seven-letter headings stayed full size, 10 columns printed at 83 percent and 14 columns hit the two thirds floor, as did a 193 character URL typed as plain text. Give a long URL short link text: the label in square brackets, the address in round brackets.
A page break does not split a table or code block that fits on one page, so the page before it can end almost empty (we saw gaps up to 169 mm). A code block taller than a page starts on a fresh page, then splits, and all 120 lines of ours arrived. Before sending, check the first and last page.
File Size Limits and Conversion Time
The limits are 3 MB for visitors, 10 MB with a free account and 400,000 pasted characters, counting each line break as two. On a busy server, 399,129 characters gave 232 pages in 37.7 seconds, and a 1 MB file gave 579 pages in 87.4 seconds. The converter quits at two minutes, so a file much over 1 MB may not finish (we tested nothing larger). Split it at a heading and join the parts with Merge PDF. A heavy result tends to come from images, and the PDF compressor can shrink it.
Why a Conversion Fails and How Long the Link Lasts
A failure reloads the form with "We could not convert this document. Please check the file and try again." Pasted text stays in the box and a chosen file must be picked again. Nothing is queued, so there is nothing to resume.
We reproduced two causes: a UTF-16 file (Notepad's Unicode option) or a Windows-1252 file with accented letters, both fixed by re-saving as UTF-8. A very large file can fail too.
If a restart leaves only the converter down, you should get the same message with your pasted text still in the box. If the whole site is down, you get an error instead of the form, so keep your Markdown in your editor until the PDF has downloaded. Press Convert again once it is back.
The link works for about two hours, then shows not found, and reloading the result page converts again, so download first.
Markdown to PDF or Markdown to Word?
Choose PDF for a final copy, because line and page breaks stay fixed and nobody reflows your tables by accident. To change the text, edit the Markdown and convert again. Choose the Markdown to Word converter when the person reading has to edit or comment.
Lock PDF: put a password on the file you just made.
all PDF tools: the full list, including a tool for adding page numbers.
Frequently Asked Questions
Frequently Asked Questions (FAQs) is a list of common questions and answers provided to quickly address common concerns or inquiries.
How do I convert a Markdown file to PDF for free?
Pick the file or paste the text into the box, press Convert to PDF, then press Download to get an A4 PDF. It is free, needs no account and puts no watermark on the pages. Use the form at the top.
Can I upload a .md file, or do I have to paste the text?
Both work. Upload a .md, .markdown or .txt file, up to 3 MB as a guest or 10 MB with a free account, or paste up to 400,000 characters. The uploaded file wins if both are filled. One file per run.
Why are the images missing from my PDF?
Images need a public address, because our server downloads them before converting, and only PNG, JPEG, GIF and WebP files are used. Relative paths, dead links, non-public addresses and SVG files become the image's alt text, and HTML image tags are removed, so use Markdown image syntax. A silent host is given 10 seconds.
Is this Markdown to PDF converter really free?
Yes. There is no paid version and no sign-up for visitors. A free account raises the file size cap from 3 MB to 10 MB. The pages carry no watermark, but the file properties name our tool as the producer.
Is the text in the PDF selectable and are the links clickable?
Yes. The PDF holds real text you can select, copy and search, and https and mailto links are clickable. Links to a heading on the same page are not. The file is untagged, so do not rely on it for accessibility.
Why does my PDF look different from the GitHub or editor preview?
We use our own fixed stylesheet on A4 pages, not the CSS that GitHub or your editor uses. Block-level raw HTML disappears with its text, unsupported syntax prints as typed, table alignment markers are ignored and long code lines are cut.
Can I use US Letter instead of A4, or change the font, margins or theme?
No. Pages are A4 portrait with one fixed stylesheet, and there are no options for paper, fonts, margins or themes. To print on Letter paper, choose the fit to page option in your PDF viewer, which scales the A4 page down.
Does it support math, Mermaid diagrams, footnotes or syntax highlighting?
No. Math, footnotes and emoji shortcodes print as typed, a Mermaid block prints as plain code, code keeps one color and YAML front matter appears as a heading. Tables, task lists, block quotes, nested lists and fenced code do convert.
Why did my conversion fail, and how long does the download link last?
Usual causes are a file not saved as UTF-8, a very large file or a briefly unavailable converter. Pasted text stays in the box, so fix the cause and press Convert again. The link lasts about two hours.
We use cookies to personalize content and ads, to provide social media features and to analyze our traffic. You consent to our cookies if you continue to use our website.
Install SEO Site CheckerFree SEO tools - always in your pocket.