Guide · Google Docs → Markdown
Getting Markdown out of a Google Doc
There are two routes and they're not equivalent. Paste is two seconds and drops images; the .docx export takes a few clicks and keeps them.
Both run entirely in your browser, and neither asks for your Google account. Nothing here can see your Drive.
Copy the content, not a link to it
This catches people first. Copying the document's URL, or using "Copy link", gives you an address — there's nothing to convert in that.
What you want is the content on your clipboard. Selecting text in a Doc and copying puts a rich-text HTML version there alongside the plain text, and that HTML carries the headings, lists and tables.
- 01Open the Doc and select what you want. Ctrl+A if it's the whole thing.
- 02Copy with Ctrl+C.
- 03Press Ctrl+V anywhere on the converter page. There's no box to find and no button to press — the paste is caught by the page itself.
What the clipboard HTML arrives looking like
Google's clipboard HTML is not tidy. Almost every element carries a generated class name like c1 or c17, list items get lst-kix_ names, and the whole selection is wrapped in a <b> tag that sets font-weight to normal — a bold tag that turns bold off, which is how the editor tracks document-level formatting internally.
None of that reaches the Markdown. Classes, ids and style attributes are stripped by the sanitiser, because Markdown can't express any of them and clipboard HTML from an arbitrary web page isn't something to trust. The <b> wrapper is unwrapped separately: left in place it would produce a stray ** at the top and bottom of your document.
Links get unwound too. Google routes outbound links through google.com/url?q=… for click tracking inside the editor, and tracking parameters like utm_source often ride along. Both are removed so the link points where it says it points. The output tells you when this happened — changing a link's destination is worth mentioning.
<a href="https://www.google.com/url?q=
https://example.com/a%3Futm_source%3Ddocs">figures</a>[figures](https://example.com/a)Why pasting loses images
Images in a Doc live on Google's servers. The clipboard HTML references them by URL rather than carrying the bytes, and those URLs are tied to your session — they expire, and they don't resolve for anyone else.
So a pasted document comes through with its text intact and its pictures missing. That's the format's limit, not a setting.
If the images matter, take the other route.
The .docx export, for images and long documents
This is the more complete route and it's worth using for anything long. The .docx carries real style information, so headings come from Word styles rather than from a clipboard's best effort, and long documents hold their structure better.
It also means the Google Docs page and the Word page are running the same converter on the same kind of file. Anything true of one is true of the other.
- 01In the Doc: File → Download → Microsoft Word (.docx).
- 02Drop that file onto the box on the converter page. Several at once is fine — they come back as one zip.
- 03Pick how images should be handled before you copy the result: embedded in the file, left as ./images/ references, or dropped.
What doesn't come across either way
Comments and suggested edits are dropped — you get the document, not its margins. Resolve or accept them before exporting if they matter.
Charts, drawings and smart chips come through as plain text at best. They're objects rendered by the editor, and there's no text equivalent for most of them.
Headers, footers and page numbers go. They belong to a printed page, and Markdown doesn't have pages.
Why there's no Drive integration
Connecting to Drive would mean asking for access to your files and running a server that holds a token for them. That's a real ongoing risk to you in exchange for saving you one Ctrl+C.
A copy-paste hands over exactly the paragraphs you selected and nothing else. There's no account, no OAuth screen and no add-on to install, and there's nothing on our side that could leak, because there is no our side — the conversion happens in your browser.
Google Docs can also export Markdown itself now. If that output suits you, use it. This exists for the cases where you want to choose the bullet character, the fence style or what happens to images, and for pasting a fragment rather than exporting a whole document.
Select, copy, paste — or export the .docx if you need the images. The clipboard is read in your browser and nothing is sent anywhere.
Google Docs → MD