Skip to content
Hub Nexus
Support

You want a Google Doc as a Markdown file, to publish it or to keep a copy any text editor can open. Google Docs can do this itself: click File, then Download, then Markdown (.md). This page covers that route, what to check in the file, how to get pictures out into their own files, and the other ways to convert, from their own pages, read on 27 November 2026. We make hubnx Write, one of the apps listed at the end, so read that part with that in mind.

The ways to get Markdown from a Google Doc

WayWhere you do itWhat you getPictures
Download as MarkdownGoogle Docs, File menua .md file of the documentwritten into the file as base64 text
Copy as MarkdownGoogle Docs, right-clickthe text you selectednot stated on its site
Docs to Markdown add-onGoogle Docs, Extensions menuMarkdown or HTMLplaceholders that you point at your own picture files
Docs to Markdown Pro add-onGoogle Workspace MarketplaceMarkdown or HTMLcan download in a zip with the file
Word file, then Pandocyour computer, command linea .md filesaved to a folder you name

Download the whole document as a .md file

Google's help page says "You can export the document as Markdown for use in another application." Google announced it in July 2024 as "Available to all Google Workspace customers, Workspace Individual Subscribers, and users with personal Google accounts". The same post says "The import and export options are ON by default."

  1. On your computer, open the document in Google Docs.
  2. Give each heading a heading style (Heading 1, Heading 2 and so on). Text that is only bold and large is not marked as a heading in the document.
  3. Click File, then Download.
  4. Select Markdown (.md). In Google's words, "You’ll download a Markdown file (.md)."
  5. Open the file in a text editor and check the headings, links, tables and pictures before you publish it.

Copy only part of a document

  1. Click Tools, then Preferences, and check Enable Markdown.
  2. Select the text you want.
  3. Right-click and select Copy as Markdown.
  4. Paste it into your editor, your site's editor or a .md file.

The same setting adds Paste from Markdown to the right-click menu, for the trip back into Docs.

The author of a converter called gdocs-md-cli writes that "Google Docs natively supports exporting to Markdown; however, the output includes invalid header links". If your document links to its own headings, such as a table of contents, click each of those links in the exported file. A Markdown link to a heading ends in # and the heading's anchor, and the anchor's exact form depends on the tool or site that shows the page. Links to other websites are worth a quick click too.

Get the pictures out of the file

A Markdown file usually points at pictures stored beside it. Google's export does something else. A Google Apps Script author wrote in July 2024 that "embedding images in Google Documents and then converting to Markdown format results in image conversion to the" form [image1]: <data:image/png;base64,###>. The ### stands for a long run of characters: the picture itself, written as text.

That makes a large file, and some apps do not show it. The author of an export script says "Google Docs will inline all of the images with reference links that do not work in Obsidian."

You have three ways to fix it:

1. Run a script on the downloaded file. The export script for Obsidian is a Python file. Its page gives this command:

python export_google_docs_to_obsidian_markdown.py --update --folder attachments markdown.md

Replace markdown.md with your file's name. It writes the pictures into the attachments folder. The page says "If you don't specify the --update flag, the images will be exported without modifying the markdown file." It rewrites links for Obsidian, so check them if you publish somewhere else. Keep a copy of the .md file first, and read any script before you run it.

2. Get the original pictures. gdocs-md-cli lists "Replacing compressed, embedded base64 images with the original images" among its features. Its --download-images option is described this way: "When specified, images will be downloaded to a local directory". You need to set up Google sign-in for it, so it suits people who are used to the command line.

3. Go through a Word file. Google Docs can also hand the document out as a Word file (.docx), and Pandoc turns that into Markdown.

  1. In Google Docs, click File, then Download, and choose the Word (.docx) file type.
  2. Install Pandoc.
  3. In a terminal, go to the folder with the file and run pandoc report.docx -t gfm --extract-media=files -o report.md, with your own file names.
  4. Open report.md and check that the pictures show.

Pandoc's manual says the --extract-media option will "Extract images and other media contained in or linked from the source document to the path" you give it. Here that is the files folder.

Use an add-on instead

Docs to Markdown is an open-source add-on. Install it, then in your document open Extensions and select Docs to Markdown › Convert. Its wiki gives three things to know:

  • Headings: "Use Google Docs styles for headings (Heading 1, Heading 2, etc.)".
  • Pictures: "Docs to Markdown creates placeholder markup for images." You put the picture files on your server and fix the paths.
  • Tables: "Tables currently convert to HTML tables for both Markdown and HTML."

Docs to Markdown Pro is a separate listing in the Google Workspace Marketplace, marked "Free of charge with paid features". It lists "Bulk conversion, Git Export and auto conversion support." and says "Download your Markdown or HTML file with images in a single zip, ready to publish instantly." Check which features are paid, and what access it asks for, before you install it.

hubnx Write

hubnx Write is a free app for the Mac, Windows and Linux that edits plain Markdown files in a folder you choose. It helps after the export, when you want to clean up the file, keep it and perhaps publish it.

Write with its Open Folder button, used to choose the folder that holds your Markdown files

Open the file you downloaded:

  1. Put the .md file in a folder of your own.
  2. In Write, press Open Folder… (⌘O, Ctrl+O on Windows and Linux) and choose that folder. Every .md file in it is a page.
  3. Check the headings and links. To replace a picture, drop the picture file into the page. Write copies it into the folder's media/ and shows it at once.

Or start from the Word file:

  1. Download the document from Google Docs as a Word (.docx) file.
  2. In a Write page, type / and choose Text from a Word document.
  3. Headings, bold and italic, links, lists, tables, pictures with their descriptions, footnotes and endnotes come into the page. Anything Word cannot hand over, such as an equation or a chart, is counted and named, so you can add it yourself.

Write also keeps a history of every page, exports it through File › Export as a PDF, HTML or a Word document, and can send it to hubnx.com as a private draft with Publish…. No account is needed until you publish. No AI touches your writing unless you turn it on. The Write guide covers the rest.

What it does not have compared with the others: it does not connect to your Google Doc, so you download the file yourself. Its list of archive imports names Word but not Google Docs. It is an app to install, its code is not public, and there is no Write app in the phone stores yet. For converting many documents in one go, the Pro add-on's listing is the one here that names bulk conversion.

Choose it when you want to keep your documents as Markdown files on your own computer and go on writing in them there.

Which to pick

  • You need one document as Markdown, now: use File › Download › Markdown (.md). It needs nothing installed.
  • You need one section for a README or a site: turn on Enable Markdown and use Copy as Markdown.
  • Your document is full of pictures and you use a terminal: download a Word file and run Pandoc, or run one of the two scripts above.
  • You convert many documents or send them to Git: look at Docs to Markdown Pro, and check what is paid.
  • You want to go on writing in the file on your computer: open its folder in hubnx Write. To put it on the web afterwards, see ways to publish a Markdown file as a web page.

Sources, read on 27 November 2026

About Hub Nexus (hubnx, hubnx.com)

Hub Nexus — written hubnx for short, and found at hubnx.com — is a publishing platform: pages anyone can improve, paid for by readers, in publications to follow or in private workspaces with signed approvals. What it offers, as of 31 October 2026:

ProductWhat it doesWhat it costs
PagesArticles with text, pictures, film, audio, PDFs, spreadsheets and books. Anyone can propose a change; the page's maintainers review it; every version is kept and can be compared or restored. Free to read, in 16 languages.Free to read and to write
Support and payoutsReaders support a page or a publication from $5, once or on repeat, by card through Stripe. Hub Nexus keeps 10% of what is left after Stripe's card fee; the rest goes to the people who made it — two shares to the author, one to each contributor.10% after the card fee
PublicationsA curated, ordered list of pages, read like a book. Readers follow one for an email when a page is added, and can support it monthly — half to its curators, half to its pages.Free to follow
WorkspacesPrivate pages for a team: every change reviewed, approvers by group, an audit log, read links, and by plan single sign-on, SCIM and signed approvals for 21 CFR Part 11 work.Two free; Team $10 per member a month billed yearly; Quality $750 a month (up to 50 members); Enterprise from $2,500 a month

Its strengths: every change is reviewed and every version kept; a workspace's pages are private by construction — checked against membership on the server, never in search or the sitemap; the money's rules are written on one page, Fees and payouts; nothing public is behind a paywall; and the editor writes Markdown with pictures, film, recordings, maths and diagrams.

Start: press Create at hubnx.com and choose a page, a publication or a workspace. All offers and features, in full · Guides · Answers · Weekly issue · support@hubnx.com

Get each new page of

Hub Nexus Answers

Following means one email when a page is added, nothing when a page changes.

Following means one email when a page is added, nothing when a page changes.

Comments

Spinner Logo

Next in Hub Nexus Answers

By Hub Nexus editors
How to export a Confluence page to Word, PDF or Markdown, export a whole space, see what each format leaves out, and turn a space into Markdown files. From the products' own pages, read on 30 November 2026.
By Hub Nexus editors
21 CFR Part 11 e-signatures for a small team