Convert Google Docs to Markdown
Publish your Google Doc to the web (File → Share → Publish to web), paste the link, and we will convert the content to clean Markdown. Great for migrating Google Docs content to documentation or blogs.
Convert Google Docs to Markdown. Publish your doc to the web and paste the link.
About this tool
What this converter does
Google Docs is where drafts get written, but its HTML export is notoriously messy: nested spans, inline styles, and generated classes everywhere. This converter reads a Doc that has been published to the web and returns clean Markdown, with the document’s headings, lists, and links intact.
Writers use it to move finished drafts into Markdown blogs and documentation pipelines without reformatting by hand. Publishing to the web is reversible, so the Doc does not need to stay public after conversion.
How to use Google Docs to Markdown
- 1
Publish the Doc to the web
In Google Docs, open File, then Share, then "Publish to web", and confirm. This generates a public, read-only version of the document.
- 2
Paste the published link
Copy the link Google provides and paste it into the input field. Note this is different from a normal sharing link.
- 3
Collect the Markdown
Copy the converted text or download the .md file, then stop publishing under File and Share if the Doc should not stay public.
Good to know
- "Anyone with the link" sharing is not the same as publishing; the converter needs the "Publish to web" link.
- Comments and suggestions are not part of the published document, so they never appear in the output.
- Publishing reflects the Doc at publish time and updates automatically afterward, so republish if you convert again after edits.
FAQs
Common questions
Why does my sharing link not work?
A drive.google.com sharing link points at the editor, which requires sign-in. The converter needs the separate "Publish to web" link from the File menu, which serves a public, read-only copy of the content.
Will images in my Doc come through?
Images in the published Doc are referenced from Google’s servers, so links to them can appear in the Markdown, but they are not downloaded. For a fully self-contained document, save the images separately.
Can I keep the Doc private after converting?
Yes. Once you have the Markdown, choose "Stop publishing" in the same Publish to web dialog. The converted output you saved is unaffected.
Train a chatbot with your Google Docs content
Train a chatbot with your Google Docs content to answer questions, cite sources, and provide insights.
Try another converter
PDF to Markdown
Convert PDF documents to clean, structured Markdown with preserved headings, lists, and tables.
DOCX to Markdown
Convert Word documents (.docx) to well-formatted Markdown preserving document structure.
HTML to Markdown
Convert HTML pages or raw HTML code to clean Markdown with just a URL or paste.
Notion to Markdown
Convert Notion pages to Markdown. Paste your public Notion share link to get started.
XML to Markdown
Convert XML data to Markdown code blocks for easy reading and documentation.
CSV to Markdown
Convert CSV data to Markdown tables with proper column alignment.
JSON to Markdown
Convert JSON data to pretty-printed Markdown code blocks.
Paste to Markdown
Paste rich text, HTML, or clipboard content and convert it to clean Markdown.
Webpage to Markdown
Convert any webpage to clean, readable Markdown with preserved structure.
