About Markdown to PDF
FreeToolr Markdown to PDF turns GitHub style Markdown into a PDF with real, selectable text. Use it for README files, project notes, study guides, reports, technical documents and AI-generated Markdown. Paste your content or choose a local Markdown file, set the page size, margins and text size, then download the result. The PDF can include headings, paragraphs, bold and italic text, inline code, code blocks, links, lists, quotes, tables and horizontal rules. Images remain in the document only when they use data URLs. The tool runs in your browser, so your Markdown and files are never uploaded. The finished PDF downloads straight to your device. Standard PDF fonts cover Western European letters only, so some other writing systems may not display as expected.
How to use it
- 1Paste your Markdown or select a local Markdown file.
- 2Set the page size, margins and text size.
- 3Check headings, lists, tables, links, quotes and code in the result.
- 4Download the PDF to your device.
Worked example
Input: ## Weekly plan Finish the **report** by Friday. 1. Review the data 2. Send the draft With A4 paper, 20 mm margins and 12 pt text, the result is a PDF containing the heading, bold text, numbered list and selectable body text.
How it works
Markdown source
to Markdown parser
to document AST or HTML
to CSS, template or theme
to pagination and layout engine
to PDF objects, fonts and images
to PDF file
Conceptual process: parse(markdown, dialect) gives document_astrender(document_ast, theme, CSS, page_size, margins) gives html_or_layoutpaginate_and_write(html_or_layout, page_size, fonts, images, page_break_rules, metadata) gives pdfsave(pdf)Source: CommonMark specificationGitHub Flavored Markdown specificationISO PDF 2.0 standard. Last checked 4 November 2026.
What it is good for
- Keeps PDF text selectable and searchable.
- Runs locally in your browser with no upload.
- Supports common GitHub style Markdown elements.
- Images are kept only when embedded as data URLs.
- Standard PDF fonts cover Western European letters only.
Questions people ask
How do I convert Markdown to PDF?
Paste your Markdown or choose a local .md file. Set the page size, margins and text size, then download the PDF.
Is my Markdown uploaded?
No. FreeToolr runs this conversion in your browser. Your Markdown and selected file stay on your device, and the result downloads directly.
Is the PDF text selectable?
Yes. The tool creates real PDF text rather than a screenshot. You can select and search headings, paragraphs, lists, tables, links and code.
Can I convert a GitHub README?
Yes. Paste the README Markdown or select its local file. GitHub style elements such as tables, task lists, quotes and fenced code are supported.
Should I choose A4 or US Letter?
Choose US Letter for most documents in the United States. Choose A4 for the UK, Europe, Nigeria and Gulf markets, unless a recipient requests another size.
Can Markdown images appear in the PDF?
Images are kept only when they are embedded as data URLs. Relative file paths and ordinary remote image links are not promised to appear.
Help keep every tool free
FreeToolr stays free because people help it grow. Share a tool you like, tell us what to build next, or support us on Ko-fi.