Google Docs to Markdown Converter

This Google Docs to Markdown converter turns text copied from a Google Doc into clean Markdown. Select the text, copy it and paste it here: headings, bold, italic, lists, tables and links come through, with the real link addresses instead of Google’s redirects. No add-on and no setting to turn on.

  • No add-on needed
  • Stays on your device
Google Docs text

How to convert a Google Doc to Markdown

Three steps, with nothing to install.

  1. Select and copy in Google Docs

    Select the part you want, or press Ctrl+A (⌘+A on a Mac) for the whole Doc, then press Ctrl+C (⌘+C).

  2. Paste it here

    Click in the box and press Ctrl+V (⌘+V). The Markdown appears beside it.

  3. Copy or download the Markdown

    Click Copy Markdown or Download .md.

Example

This copied Doc has 3 headings, a list with a nested item and a struck-through item, a 3-column table and a link. The link’s google.com/url address is replaced with the real one, the bold header row loses its extra ** marks, and the line in Courier New becomes inline code.

Convert text copied from a Google Doc

Ways to get Markdown out of Google Docs

Google added Markdown export to Docs in July 2024. Here’s how the options compare.

WayHowGood to know
This converterCopy in Docs, paste hereWorks for any part of a Doc, with no setting to change. Tables, nested lists and code font are kept.
Download as MarkdownIn Docs: File › Download › Markdown (.md)Saves the whole Doc as a .md file.
Copy as MarkdownTurn on Tools › Preferences › Enable Markdown, then select text, right-click › Copy as MarkdownOff until you turn it on.
Docs to Markdown add-onInstall it from the Google Workspace MarketplaceNeeds access to your Google account.

Why pasted Google Docs text needs converting

When you copy from Google Docs, the clipboard gets HTML in which every piece of formatting is a style: bold is font-weight:700, italic is font-style:italic, and the whole selection is wrapped in a <b> tag that isn’t bold at all. Links point to google.com/url?q=… instead of the page itself.

Most HTML-to-Markdown tools turn that wrapper into one long bold block, or miss the formatting. This converter reads the styles, drops the wrapper and takes the real address out of each link.

Google Docs to Markdown Converter FAQ

Can Google Docs export Markdown?

Yes. File › Download › Markdown (.md) saves the whole Doc. Copy as Markdown, for a selection, works after you turn on Enable Markdown in Tools › Preferences.

Do I need an add-on?

No. Copy the text in Google Docs and paste it here.

Why are my links google.com/url addresses?

Google Docs sends links through a redirect when you copy. The converter takes the real address out of the redirect.

Are tables and nested lists kept?

Yes. Tables become Markdown tables with the first row as the header, and nested list items keep their indent.

Can I convert the whole Doc?

Yes. Press Ctrl+A (⌘+A on a Mac) in the Doc to select everything, copy it and paste it here. Comments aren’t copied with the text.

Is my text uploaded?

No. The conversion runs in your browser, on this page, so nothing you paste is sent to a server or saved. Closing the page clears it.

Sources and references

  1. Use Markdown in Google Docs, Slides & Drawings, Google Docs Editors Help
  2. Import and export Markdown in Google Docs, Google Workspace Updates