Markdown to Google Docs

Paste Markdown, check the preview, then copy it as formatted text for a Google Doc, or download a .docx with tables, footnotes and Mermaid diagrams to open in Google Docs.

Input — Markdown
Preview — Document
Document preview will appear here...

To get Markdown into Google Docs with its formatting, paste the Markdown into the editor above, click Copy for Google Docs and paste into your Doc. The clipboard then holds formatted text (HTML) instead of Markdown, so headings, lists, links and tables paste as formatting rather than as # and **. If the document has Mermaid diagrams or footnotes, click Download DOCX instead and open it in Google Docs with File > Open > Upload.

What can Google Docs do with Markdown by itself?

According to Google's help page, Google Docs can:

  • format Markdown as you type, once Tools > Preferences > "Enable Markdown" is ticked (headings, bold, italics, strikethrough, links);
  • convert Markdown on the clipboard with right-click > Paste from Markdown;
  • copy a selection out as Markdown with right-click > Copy as Markdown;
  • download a Doc as Markdown with File > Download > Markdown (.md);
  • open an uploaded .md file as a Google Doc.

If those work for your document, you do not need this page. It is useful when you want to see the result before it lands in the Doc, when you are on a device or editor without Paste from Markdown, or when the Markdown has Mermaid diagrams or footnotes.

What does Copy for Google Docs put on the clipboard?

Two versions of the same document: formatted HTML, which Google Docs, Word and email editors use on a normal paste, and the original Markdown as plain text, which code editors and plain-text fields use. Mermaid diagrams and LaTeX math are copied as their source text; use the .docx for diagrams. The same copy pastes into Word, Outlook and Gmail.

How do I get ChatGPT or Claude output into Google Docs?

Use the copy button on the reply, which copies Markdown, paste it here, then use Copy for Google Docs. If the reply has stray citation markers or extra blank lines, run it through the AI output cleaner first.

How are tables, code, front matter and other edge cases handled?

InputWhat you get
Headings # to ######Copied as HTML headings h1 to h6; in the .docx, Word's Heading 1 to 6 styles
GFM tablesCopied as an HTML table; a real table in the .docx
Fenced codeCopied as a preformatted block; a monospace block in the .docx
Task listsCheckbox elements in the copy, which some editors drop; ☒ and ☐ in the .docx
```mermaidSource text in the copy; a picture in the .docx
FootnotesA numbered notes list in the copy; real footnotes in the .docx
$...$ mathLaTeX source text in both
ImagesLinked by URL in the copy; alt text as a link in the .docx

Maintained by Ankit Aglawe. Last updated .

Related Tools

Need a different format? See every tool on the Markdown converter page, or go back to the MDConvert home page.

Markdown to Google Docs questions

Does Google Docs support Markdown?
Yes. Under Tools > Preferences, "Enable Markdown" formats headings, bold, italics, strikethrough and links as you type. Google Docs also has Paste from Markdown and Copy as Markdown on the right-click menu, can download a Doc as Markdown (.md), and opens an uploaded .md file as a Doc.
How do I paste Markdown into Google Docs with the formatting?
Either right-click in the Doc and choose Paste from Markdown, or paste your Markdown here, click Copy for Google Docs, and paste into the Doc with Ctrl+V (Cmd+V on a Mac). The second route puts already-formatted text on the clipboard, so a normal paste works.
How do I import a .md file into Google Docs?
In Google Docs, click File > Open > Upload and pick the .md file. In Google Drive, upload it, right-click it and choose Open with > Google Docs. Or download a .docx here and upload that the same way.
When is the .docx route better?
When the Markdown has Mermaid diagrams or footnotes. The .docx built here has the diagrams as pictures and the footnotes as real Word footnotes, and Google Docs opens .docx files with File > Open > Upload.
Why did my pasted Markdown show up as # and ** characters?
A normal paste of Markdown text pastes the characters as they are. Use Paste from Markdown in the right-click menu, or copy the formatted version from this page instead.
Is my text uploaded anywhere?
Not by this page. The formatted copy and the .docx are made in your browser. Google Docs stores the document once you paste or upload it, as it does with any Doc.