GreyScript AI

Markdown to PDF Converter

Convert Markdown to a clean PDF with styled headings, tables and code blocks. Preview it live, then save it as a PDF from your browser's print dialog. Nothing is uploaded.

1. Your Markdown
2. Export
Used for the file name, the Word document properties and the HTML title.
Supports GitHub-flavoured Markdown: headings, bold, italics, strikethrough, links, lists, task lists, tables, block quotes and code blocks. The HTML is sanitised, so scripts in the Markdown never run. Word files list images as placeholders because the browser cannot fetch most images from other sites. PDF export uses your browser's print dialog; choose "Save as PDF".

How Markdown to PDF conversion works

The Markdown is rendered to HTML, cleaned with DOMPurify, and laid out with a print stylesheet: readable body text, heading rules, shaded code blocks, bordered tables, and page-break rules that avoid splitting tables, code blocks and images where possible. Save as PDF then opens your browser's print dialog for that document.

Using the browser's own PDF engine keeps text selectable and searchable, uses proper fonts, and means the document never has to be uploaded to a conversion server.

Getting the PDF you want

Questions and answers

Why does it use the print dialog instead of downloading a PDF directly?

The browser's print engine produces a high-quality PDF with selectable, searchable text and proper fonts, and it works without uploading your document anywhere. Choose Save as PDF as the destination.

How do I remove the date and URL from the PDF pages?

In the print dialog, turn off the Headers and footers option before saving.

Can I change the page size or margins?

Yes. Set the paper size, margins and scale in the print dialog before you save.