Skip to content

Markdown to PDF converter

Paste Markdown — a README, your notes, or an answer from ChatGPT, Claude or Gemini — and save a PDF with highlighted code, tables, task lists, links and bookmarks. Nothing is uploaded.

Markdown to PDF

Settings appear once you add a Markdown file.

Your Markdown
Look
Text size
Advanced 5
Start each top-level heading on a new page
Orientation

Ctrl + Enter runs it ·

Bytes sent anywhere: 0 B

Keyboard shortcuts

Ctrl K
Search all tools
Ctrl V
Paste files to add them
Ctrl Enter
Run the tool
?
Show this list
Esc
Close this list or the search
  • 100% private Your Markdown file never leaves this device. Everything runs in your browser.
  • No limits No file-size cap, no watermark, no sign-up and no daily quota. Free.
  • Works offline Once this page has loaded, the tool keeps working without a connection.

How to convert Markdown to PDF

  1. Add your Markdown file: Paste your Markdown, or import a .md file. From ChatGPT, Claude or Gemini, use the Copy button under the answer — it copies Markdown, not plain text.

  2. Check the settings: Check it on the Preview tab and pick a look: GitHub for READMEs and code, Document for reports and letters, Compact to fit more on a page.

  3. Save the result: Save as PDF. Code keeps its colors, tables keep their borders, links stay clickable, and every heading becomes a bookmark.

Why it doesn’t upload

The Markdown people turn into PDFs is often work in progress: internal documentation, meeting notes, a conversation with an AI assistant about a real problem. Online converters keep a copy on their server. This one reads the Markdown and writes the PDF inside your browser tab, and keeps your draft only in this browser.

Check it in your browser’s Network tab

Worth knowing

  • Pictures linked from the web (![](https://…)) are left out, because fetching them would contact other servers. Pictures embedded as data are kept.
  • Math written in LaTeX ($x^2$ or $$…$$) is shown as the raw formula text, not typeset as equations.
  • Mermaid diagrams, footnotes and raw HTML beyond simple formatting tags are not drawn; the code of a diagram appears as a code block.
  • Emoji come out in plain, single-color symbols where the fonts have them.
  • Chinese, Japanese and Korean text is not supported by the embedded fonts yet.

Under the hood

What happens to your file

Markdown is parsed by marked with GitHub’s extensions (tables, task lists, strikethrough), code blocks are colored by highlight.js, and the HTML is cleaned by DOMPurify. Your browser lays it out, and every word, border and colored box is painted into the PDF with pdf-lib as real text in embedded Noto fonts, with links and heading bookmarks.

Runs on markedhighlight.jsDOMPurifypdf-lib

Reference: GitHub Flavored Markdown spec · pdf-lib documentation

Why convert Markdown to PDF?

Markdown is how developers write READMEs and how ChatGPT, Claude and Gemini format their answers. Sharing it as raw text loses the headings, tables and code formatting. This converter typesets it into a PDF with highlighted code, tables, task lists, links and bookmarks.

It runs in your browser, so notes and private conversations aren’t uploaded.

Common reasons to save Markdown or an AI answer as PDF

  • README files

    Turn a project README into a shareable document.

  • ChatGPT, Claude or Gemini answers

    Copy an answer and save it as a formatted PDF.

  • Notes from Obsidian or similar apps

    Export notes written in Markdown.

  • Code snippets with syntax highlighting

    Put code in a fenced block with its language name and it is colored for 36 languages, with long lines wrapped instead of cut off — see code to PDF with syntax highlighting.

  • Markdown tables

    Pipe tables become bordered tables: colons in the separator row align the columns, rows never split across pages, and the header row repeats — see Markdown table to PDF.

  • Meeting notes

    Share notes written in Markdown as a clean document.

Tips for Markdown to PDF

  1. Use the copy button in ChatGPT, Claude or Gemini — it copies Markdown, not plain text.
  2. Pick the GitHub look for code-heavy documents.
  3. Start each top-level heading on a new page for chapter-style documents.
  4. LaTeX math shows as raw formulas, not typeset equations.
  5. Pictures must be embedded; web links to images aren’t fetched.

Questions

How do I save a ChatGPT conversation as a PDF?

Under each answer, press ChatGPT’s Copy button — it copies Markdown — and paste it here. Paste several answers one after another to keep a whole conversation, adding a heading like “## My question” between them. Press Save as PDF and the code blocks, tables and lists come through formatted. The same works with Claude, Gemini and Copilot.

Can I convert a GitHub README to PDF?

Yes. Open the README on GitHub, switch to Raw (or open the README.md file), copy it and paste it here, or import the file. The GitHub look matches GitHub’s own styling, with highlighted code and bordered tables.

Is the text in the PDF selectable?

Yes. The PDF is typeset, not a screenshot: text can be selected, searched and copied, links click through, and headings appear as bookmarks in the viewer’s sidebar.

Which Markdown features are supported?

GitHub-flavored Markdown: headings, bold, italic, strikethrough, links, lists, task lists, block quotes, tables, horizontal rules, inline code and fenced code blocks with syntax highlighting for common languages.

Where does my Markdown go?

Nowhere. It is rendered and turned into a PDF inside this tab. The draft is kept in your browser’s own storage so a reload doesn’t lose it; Clear removes it.

Read more about this

More web & code tools

All web & code tools