Skip to main content

Markdown to PDF

Browser-only
Page
Layout
Font
Code

Start typing markdown to see a live preview.

Preview opens the formatted document in a modal. Download PDF generates and saves the file directly — no print dialog, no upload, runs entirely in your browser.

How to Convert Markdown to PDF

Turn any markdown document into a shareable PDF in seconds. Paste a ChatGPT or Claude export, drop in a README, or open an Obsidian / Notion markdown file — the tool parses GFM (tables, task lists, fenced code blocks) and renders a clean PDF with syntax-highlighted code, optional table of contents, and page numbers. Everything runs in your browser; your markdown never leaves your device.

  1. 1

    Paste or upload markdown

    Switch between the Paste tab (type or paste markdown) and the Upload tab (drop a .md or .markdown file). A live preview updates as you type.

  2. 2

    Pick your layout

    Choose A4 or US Letter, portrait or landscape, and a font size (10/12/14pt). Toggle syntax highlighting, a dark code theme, a table of contents, and page numbers.

  3. 3

    Download your PDF

    Click Download PDF. The document is generated in your browser as a true vector PDF and downloaded immediately — no upload, no signup, no watermark.

Pro Tips

  • Perfect for exporting ChatGPT, Claude, Gemini, Notion and Obsidian markdown into a polished shareable PDF.
  • Turn on the table of contents for long docs — it's built from your h1/h2/h3 headings.
  • Use fenced code blocks with a language hint (```ts, ```python) to get accurate syntax highlighting.
  • The dark code theme pairs well with technical documentation; the light theme reads better on paper.
  • For the crispest result on long documents, keep the font size at 12pt and let the tool handle pagination automatically.

Convert ChatGPT and Claude responses to PDF

ChatGPT, Claude, Gemini and most other AI assistants format their responses in markdown — that's why your code blocks, headings and tables look so clean in the chat. Copying that response into Word or Google Docs usually mangles the formatting. This tool keeps it intact.

To save a ChatGPT or Claude response as a PDF, copy the assistant's reply (or use the share/export feature to download it as markdown), paste it into the editor on the left, and click Download PDF. The output is a true vector PDF — text stays sharp at any zoom, code keeps its syntax highlighting, tables stay aligned, and you can prepend a clickable table of contents for longer responses.

Convert GitHub README files to PDF

Open the README on GitHub, click the Raw button and save the file. Drop the resulting README.md onto the upload area and click Download PDF. The converter handles GitHub Flavored Markdown out of the box — fenced code blocks with language hints (```ts, ```python, ```rust), GFM tables, task lists, strikethrough and autolinks all render correctly.

Relative image paths (./screenshot.png) won't resolve because the file is now isolated from the repo. Inline images using https URLs or data URIs work fine. For a long README, turn on the Table of Contents option to generate a clickable index from your h1/h2/h3 headings.

Markdown to PDF with code highlighting and table of contents

Both syntax highlighting and the table of contents are on by default. Highlighting uses highlight.js with auto-language-detection plus full coverage for the popular languages (JavaScript, TypeScript, Python, Go, Rust, Java, C++, SQL, Bash, JSON, YAML, and many more). You can switch between a light theme that reads cleanly on paper and a dark theme that pairs well with technical documentation — or turn highlighting off for a plain monospace look.

The table of contents is rebuilt from your document each time you click Download PDF. Headings at h1, h2 and h3 levels become clickable TOC entries with their page numbers. Page numbers themselves are added to the footer of every page and can be turned off in the options bar.

Markdown to PDF on Mac, Windows, Linux and mobile

Because everything runs in your browser, the tool works identically on macOS, Windows, Linux, ChromeOS, iOS and Android. There's nothing to install — no Pandoc, no Node, no command-line setup, no Microsoft Word license. Drag a .md or .markdown file onto the upload area, or just paste markdown directly into the editor.

On mobile, the upload tab opens your device's file picker (including iCloud, Google Drive and Dropbox via the system sheet). The downloaded PDF is saved to your default downloads location and can be shared straight from the browser to email, Slack, Notion or any other app.

Frequently Asked Questions