Skip to content
FeaturesPricingBlogDownload

← All posts

Google Docs to Markdown: download, copy or convert with Pandoc

Google Docs to Markdown in three ways: File > Download > Markdown (.md), Copy as Markdown, or Pandoc from .docx, plus what does not carry over.

Diagram of three ways to turn a Google Doc into a Markdown file

To turn a Google Doc into Markdown, open it on a computer and choose File > Download > Markdown (.md). Google Docs saves the whole document as a .md file you can open in any Markdown editor. For part of a document, turn on Tools > Preferences > Enable Markdown, select the text, right-click and choose Copy as Markdown. Comments and suggestions are not part of Markdown, so resolve them before you convert.

The menu names below are from Google's help page Use Markdown in Google Docs, Slides, & Drawings and the Workspace Updates announcement, both checked November 2026.

How do you download a Google Doc as a Markdown file?

Use the Download menu. Google's steps, written for a computer, are:

  1. Open the document in Google Docs.
  2. Click File > Download.
  3. Select Markdown (.md).

The browser saves the .md file to your downloads. According to the Workspace Updates post, import and export are on by default, so you do not need to change any setting for this route. It works with personal Google accounts as well as Workspace accounts.

Google's help page does not say how images inside the document are handled in the .md download. If your document has images, download a test copy and open it before you rely on it, or use the Pandoc route below, which saves images as separate files.

How do you copy part of a doc as Markdown?

Turn on Markdown in Preferences once, then use the right-click menu. The Workspace Updates post says the copy and paste options are "OFF by default and can be enabled in Docs by going to Tools > Preferences > Enable Markdown."

  1. In any Google Doc, open Tools > Preferences.
  2. Check Enable Markdown and click OK.
  3. Select the text you want.
  4. Right-click and choose Copy as Markdown.
  5. Paste into your Markdown editor or .md file.

The same setting adds Paste from Markdown to the right-click menu, which goes the other way: it turns Markdown on your clipboard into formatted Docs content. Google's help describes the copy and paste steps for a computer with a right-click menu and does not describe them for the mobile apps.

How do you convert a Google Doc with Pandoc?

Download the document as Word, then convert the .docx with Pandoc. This route gives you control over images, the Markdown flavor and what happens to tracked changes.

  1. In Google Docs, click File > Download > Microsoft Word (.docx).
  2. Install Pandoc if you do not have it.
  3. In a terminal, in the folder with the download, run:
pandoc report.docx -t gfm --extract-media=media -o report.md

What each part does, per the Pandoc manual (checked November 2026):

Option Effect
-t gfm Writes GitHub-Flavored Markdown, the flavor GitHub uses
--extract-media=media "Extract images and other media contained in or linked from the source document" into a media folder, and links them from the Markdown
-o report.md Names the output file

The Markdown links to the images with relative paths. For a .docx the files often land in media/media/ rather than directly in media/, so move the whole media folder with the .md file.

What happens to comments and suggestions?

They do not survive as comments or suggestions, because Markdown has no syntax for either. Accept or reject them in Google Docs first, so the text you convert is the text you mean.

To clear all suggestions at once, Google's suggested edits help (checked November 2026) says to click Tools > Review suggested edits, then Accept all or Reject all.

If you take the Pandoc route without doing that, two facts matter:

  • Google says "Any suggestions in Google Docs editors become tracked changes in Microsoft Office," so open suggestions arrive in the .docx as tracked changes.
  • Pandoc's --track-changes option decides what happens to them. Its manual says "Both accept and reject ignore comments," and accept is the default, so by default insertions are kept, deletions are dropped and comments disappear. With --track-changes=all, insertions, deletions and comments are kept as marked spans, which is useful for review but clutters the Markdown.

What formatting does not carry over?

Anything Markdown cannot express is simplified or dropped, whichever route you use. Structure survives; page design does not.

In Google Docs In Markdown
Headings, bold, italic, strikethrough, links Carry over as Markdown
Bulleted and numbered lists Carry over as Markdown lists
Fonts, colors, highlight, font sizes No Markdown syntax; lost
Page size, margins, headers, footers, page numbers Lost
Comments and suggestions Lost (see above)
Merged table cells, cell colors, column widths No Markdown syntax; tables flatten
Lists or several paragraphs inside a table cell Not allowed in Markdown tables; content is simplified
Images Depends on the route; Pandoc extracts them as files

The limits on lists inside cells and on merged cells come from the GitHub Flavored Markdown spec (checked November 2026), which says "Block-level elements cannot be inserted in a table" and defines no syntax for merged cells. If a table in your doc relies on merged cells, split it into two simpler tables before converting. The tables page shows what Markdown tables can do.

Which method should you use?

Pick by what is in the document and how often you convert. All three work with a personal Google account.

Situation Method
A text document, once File > Download > Markdown (.md)
A section or a few paragraphs Copy as Markdown with Enable Markdown turned on
Images you want as files, or many documents .docx download plus Pandoc with --extract-media
You want to keep comments for reference Pandoc with --track-changes=all

After converting, open the .md file in an editor with a preview and scan the headings and tables. If the file type itself is new, the .md file page explains what is inside one.

How do you clean up the converted Markdown?

Check three things: heading levels, blank lines and tables. Converters keep what the document said, including its inconsistencies.

  1. Heading levels. A doc that used "Heading 3" for visual size under a "Heading 1" converts to ### under #. Change it to ## so the outline makes sense.
  2. Empty lines. Extra blank paragraphs in the doc become extra blank lines. Collapse them.
  3. Escaped characters. Characters that mean something in Markdown, such as * or _ in plain text, may come out with a backslash in front (\*). That is correct, and it renders as the plain character.
  4. Links. Links to other Google Docs still point to Google Docs, so the reader needs access to them.

Google Docs to Markdown in Noteline

Noteline converts on paste: select the content in Google Docs, copy it normally, and paste it into an empty Noteline note, and the formatted text becomes clean Markdown. Pasting into a note that already has text pastes plain text instead. Noteline shows the result formatted as you type, saves it as a plain .md file, and its desktop app can export it back to Word or PDF offline when you need to send it on.

Start with one note. Keep the file.

Open a folder and write. Every note is a plain .md file, with no account to create.

Try desktop free for 14 days ↓Free on iPhone, iPad and Android →

Desktop: 14-day trial, then $9.99 once. Mobile apps: free. No account.

Keep reading

  • The .md file
  • Markdown tables
  • Live preview
  • How to keep AI meeting notes as Markdown files you own
  • AI memory files: what your assistant should remember, kept in Markdown
  • An AI research workflow in Markdown: sources, summaries and claims

A Markdown note editor with everything you need

We’re listening

Tell us what you need or what gets in your way. If something isn’t working, write to us any time.

contact@noteline.io→

Product

  • Download
  • Pricing
  • Features
  • Changelog

Learn

  • Markdown syntax
  • Use cases
  • Blog

Compare

  • vs Obsidian
  • vs Notion

Support

  • Help
  • Support
  • Privacy
  • Terms

© 2026 Notelinecontact@noteline.io