Markdown to PDF & Word (DOCX)
Convert Markdown or a ChatGPT, Claude or Gemini answer to PDF or Word (.docx). Tables, task lists, highlighted code and headings kept. In your browser.
Still loading. If the tool doesn’t appear, reload this page.
About this tool
Markdown to PDF & Word (DOCX) Converter
Convert Markdown or an AI chat answer to a clean PDF or Word (.docx) file with tables, task lists, highlighted code and a heading outline. Runs in your browser.
Markdown to PDF & Word turns GitHub-flavoured Markdown into a downloadable PDF or an editable Word .docx file in your browser. Paste a README, notes or an AI chat answer and the converter keeps tables, task lists, highlighted code blocks, links and images, and maps # to ###### headings to Word's Heading 1–6 styles, so the navigation pane shows an outline. You choose A4 or US Letter, margins, font and text size. Parsing follows the GitHub Flavored Markdown spec (via the marked library), every piece of HTML is sanitised with DOMPurify before it is shown or exported, and nothing is uploaded.
How to use Markdown to PDF & Word (DOCX)
- 1
Paste Markdown or an AI chat answer into the Markdown box, or press Open .md file to load a .md or .txt file from your device.
- 2
Check the preview: tables, task lists, highlighted code blocks and headings render as they will appear on the page.
- 3
Under Page settings choose A4 or US Letter, the margins (Narrow 12.7 mm to Wide 38.1 mm), the font and a 10, 11 or 12 pt text size.
- 4
Press Download PDF for a PDF that matches the preview, or Print / Save as PDF for selectable text.
- 5
Press Download Word (.docx) for an editable Word file whose headings appear in Word's navigation pane.
Why use Markdown to PDF & Word (DOCX)
Word outline that works
Markdown headings become Word's built-in Heading 1–6 styles, so the navigation pane, table of contents and outline view all pick them up.
Two kinds of PDF
Download PDF keeps the preview's layout as page images (linked images from sites that block cross-origin access may be missing); Print / Save as PDF uses the browser's print engine and keeps text selectable and searchable.
Safe with pasted HTML
Raw HTML inside Markdown is sanitised with DOMPurify: scripts, event handlers, iframes, forms and javascript: links are removed.
Private by design
Conversion runs in this tab. The text is never sent to a server; only images you link to are fetched, directly from their own hosts.
Common use cases
- Save a long ChatGPT, Claude or Gemini answer with its tables and code as a tidy PDF to share or print
- Hand a README or technical note to someone who works in Word, as an editable .docx with a real heading outline
- Print meeting notes or a study sheet written in Markdown on A4 or Letter paper with your own margins
Frequently asked questions
How do I convert Markdown to PDF?
Paste your Markdown, pick A4 or Letter and the margins, then press Download PDF. The file keeps the preview's layout, including tables, task-list checkboxes and highlighted code. If you need selectable text, use Print / Save as PDF and choose "Save as PDF" in the print dialog.
Can I convert Markdown to a Word document?
Yes. Download Word (.docx) builds a native Word file: headings use Heading 1–6 styles, lists are real Word numbering, tables are Word tables and code keeps a monospaced font with its colours. You can edit everything afterwards in Word, LibreOffice or Google Docs.
How do I save a single ChatGPT or Claude answer as a PDF?
Copy the answer (the copy button under it usually copies Markdown), paste it here and download the PDF or Word file. If you copied the page text instead, the tool turns "•" bullets into list items, drops stray "Copy code" labels and closes a code block that was cut off. For a whole conversation export, use ChatGPT Chat Export.
Is the text in the PDF selectable?
It depends on the button. Download PDF stores each page as an image, so it keeps the preview's look but the text cannot be selected. Print / Save as PDF uses the browser's print engine and produces selectable, searchable text.
Which Markdown features are supported?
GitHub Flavored Markdown: headings, bold, italics, strikethrough, links, autolinks, images, block quotes, nested ordered and bulleted lists, task lists, tables with column alignment, fenced code blocks and horizontal rules. Footnotes and maths (LaTeX) are not rendered and stay as plain text.
Which languages get syntax highlighting?
JavaScript, TypeScript, JSON, Python, Ruby, SQL, shell, HTML/XML, CSS, YAML and C-style languages such as Java, C, C++, C#, Go, Rust, Kotlin, Swift and PHP. Name the language after the opening ``` fence; code in other languages is kept unhighlighted.
How do I add a page break?
Put \pagebreak (or <!-- pagebreak -->) on a line of its own. It becomes a page break in the PDF, the print view and the Word file. You can also tick "Start each H1 heading on a new page" to break before every top-level heading.
Is my Markdown uploaded anywhere?
No. Parsing, sanitising and building the PDF and Word file all happen in your browser. The only network requests are for images your Markdown links to, which your browser fetches from their own servers.