Google Docs to Markdown & PDF
Select everything in your Doc, copy it and paste it below. You get Markdown you can copy, and a PDF in a style made for paper, with page numbers. Free, and nothing is uploaded.
Download PDF opens your browser's print dialog. Choose Save as PDF as the destination.
How to convert a Doc
- Select everything in the Doc and copy it. Click in the Doc, press Ctrl+A to select it all, then Ctrl+C (⌘+A and ⌘+C on a Mac). To convert only part of it, select that part instead.
- Paste it into the editor above, replacing the example. md2pdf.me turns the Doc's formatting into Markdown as you paste, and the note above the editor says Pasted as Markdown.
- Take the Markdown or the PDF. For Markdown, click in the editor, select everything and copy it. For a PDF, choose a style, click Download PDF and choose Save as PDF in the print dialog.
Docs can also save a Doc as Markdown itself, with File › Download › Markdown (.md). That file keeps pictures, which a paste leaves out, and footnotes, which a paste keeps only when you copy in Chrome. You can open the file here too. See Docs' own downloads.
What comes through
We copied a test Doc with every kind of formatting below and pasted it here. This is what you get.
| In your Doc | What you get |
|---|---|
| Headings | Headings, at the same level |
| A Title and Subtitle at the top | The title becomes a top-level heading, and the subtitle a line in italics under it |
| Bold, italic and strikethrough | Kept |
| Links | Kept, and clickable in the PDF |
| Bulleted and numbered lists | Kept, nested lists included |
| Checklists | Kept; ticked items stay ticked |
| Tables | Kept. The first row becomes the table's header row. |
| Horizontal lines | Kept |
| Text in a monospace font, such as Courier New, among text in other fonts | Code. A code block keeps its lines but loses its language. |
| Images | Left out, and the note above the editor says how many. Docs' Markdown download keeps them. |
| Footnotes | Copied in Chrome: kept as Markdown footnotes, with their formatting and links. Each number stays where it was, and the footnotes are listed at the end of the PDF. If the note above the editor says some weren't pasted, or you copied in Safari, which leaves them out, use Docs' Markdown download. |
| Page breaks | Left out. Put <div class="page-break"></div> on its
own line where a new page should start. |
| Subscript and superscript | Ordinary text: H₂O comes out as H2O |
| Underline, text color, highlight, font, size and alignment | Plain text. The style you choose here sets the look. A first line in a much larger font becomes the title, as above. |
| Comments | Left out |
md2pdf.me or Docs' own downloads?
Docs' File › Download menu can save a Doc as Markdown or as a PDF. Which to use depends on the Doc and on what you want the PDF to look like.
Docs' Markdown download is the better choice when the Doc has pictures, or footnotes that a
paste leaves out.
Its .md file keeps both, with each picture written into the file itself. Open it here with
Open file, or drop it on the page, and the pictures and footnotes come through to the preview
and the PDF. Each picture makes the file larger, though, and md2pdf.me opens files of up to 5 MB, so a
Doc with more than a few photos may be too big.
Docs' PDF download is the better choice when the PDF should look exactly like the Doc: its fonts, colors, pictures, footnotes and page breaks. It has page numbers only if you added them to the Doc.
md2pdf.me is the better choice when you want a PDF that looks like a finished document rather than your Doc on screen:
- Styles made for paper. Thirteen designs, from a book-like Classic and a business-like Modern to a Résumé that fits one page, with margins, spacing and headings set for print.
- Page numbers in most styles, and the Report style repeats the document's first Heading 1 at the top of every page after the first.
- Part of a Doc. Select a section, paste it, and the PDF holds only that section.
- Markdown to use elsewhere, such as a README, a wiki or a notes app, from any part of the Doc.
Other formatted text
The editor converts formatted text from other places as you paste it too, such as a web page or an article. For answers from ChatGPT, Claude or Gemini, see AI answers to PDF. Text copied from the Word app on a computer pastes as plain text: the troubleshooting guide explains what to do.
Frequently asked questions
Do I need to know Markdown?
No. Paste the Doc, choose a style and download the PDF; the Markdown is written for you. If you want to change something before downloading, the Markdown guide shows every mark on one page.
Is my Doc uploaded anywhere?
No. md2pdf.me makes the Markdown and the PDF in your browser, so the text never leaves your computer. It's kept only in your browser's local storage so it survives a reload, unless it's over about 5 MB, as a Doc with many pictures can be. Click Clear to remove it.
Why are my Doc's pictures missing?
A paste leaves a Doc's pictures out, and the note above the editor says how many. Download the Doc with File › Download › Markdown (.md) and open that file here instead: it keeps the pictures, as long as the file is no bigger than 5 MB. Or put a picture online and add its address, as the troubleshooting guide explains.
Can I put several Docs in one PDF?
Paste them one after another. To start each on a new page, put
<div class="page-break"></div> on its own line between them. The
page breaks guide has more.
Related pages
- AI answers to PDF: answers from ChatGPT, Claude and Gemini
- Page breaks: start a new page where you want one
- PDF styles: every style on one sample
- Troubleshooting: fixes for common problems with the PDF