Google Doc to Markdown
Select everything in your Google Doc, copy, and paste it below. You get clean Markdown with smart quotes straightened and Google’s invisible spacing removed , ready for GitHub, your static site, or an LLM prompt.
Google Docs to Markdown that stays clean in Git
Google Docs is not a plain-text editor, so what it puts on the clipboard is full of smart quotes, non-breaking spaces and zero-width characters that look fine in the Doc but create noisy diffs and rendering quirks once they land in Markdown. This tool converts the document structure to GitHub-Flavored Markdown and straightens those characters, so the result is portable text that reads the same on GitHub, a static site or an LLM prompt.
It fits the moment a doc that was drafted or reviewed in Google Docs needs to become the version of record in a repo. Copy the whole document, paste it here, and take the Markdown. When that export is not a one-time move but an ongoing loop, md2gd keeps the Doc and the Markdown file in two-way sync instead.
How to use it
- In Google Docs, select all (⌘/Ctrl+A) and copy (⌘/Ctrl+C).
- Paste into the left panel here.
- Copy the clean Markdown from the right panel.
FAQ
What gets converted?
Headings, bold and italic, links, ordered and unordered lists, tables, code and blockquotes are converted to GitHub-Flavored Markdown. Images and comments are not included in a copy-paste.
Why is this cleaner than other converters?
Google Docs injects smart quotes, non-breaking spaces and zero-width characters. This tool straightens them so the Markdown is plain, portable text that diffs cleanly in Git.
Is anything uploaded?
No, conversion runs entirely in your browser. Your document never leaves your machine.
I want this to happen automatically, not by copy-paste.
md2gd keeps a Google Doc and a Markdown file in continuous two-way sync, so edits flow both ways without any manual export.
Do headings and nested lists survive?
Yes. Heading levels, ordered and unordered lists including nesting, tables, links and code all map to GitHub-Flavored Markdown.
Why do other converters leave odd characters behind?
They copy the text as-is. Google Docs inserts smart quotes and invisible spacing, so without a cleanup pass those characters end up in your Markdown and show in diffs.
Converting the same doc over and over?
md2gd keeps your Markdown and the real Google Doc in two-way sync, edit in either, no copy-paste, no re-formatting.