Google Docs to Markdown converter
Copy from a Google Doc and paste here to get Markdown with the headings, lists, tables and links in place.
Converter
Click here and press Ctrl+V (Cmd+V on a Mac).
The Markdown appears here when you paste.Jotura, a free notes app, saves every note as a plain Markdown file, including text you paste in with its formatting. Download Jotura
How to use it
- Copy from Google Docs. Select the text in your document and press Ctrl+C, or Cmd+C on a Mac.
- Paste it here. Click the box above and press Ctrl+V. The box shows the text you pasted and the Markdown appears beside it.
- Copy or download. Copy Markdown puts the result on the clipboard and Download .md saves a file named after the first heading.
Questions
How do I convert a Google Doc to Markdown?
Open the document, select the part you want (Ctrl+A selects all of it) and copy it. Click the box at the top of this page and paste. The Markdown appears on the right, ready to copy or download as a .md file. Google Docs can also save a whole document as Markdown from File > Download > Markdown (.md), which suits a full document when you do not need to pick a section.
Will the whole document turn bold?
No. Google Docs wraps copied text in a bold tag and switches it off with a style, which makes everything bold in converters that read tags alone. This converter reads the styles Google Docs writes, so bold, italics and strikethrough come only from text you formatted that way. Headings also lose the bold their style adds.
Does it keep tables, images and links?
Tables become pipe tables, with the first row as the header. Links keep their real address: the google.com/url?q= wrapper that Google Docs adds to copied links is removed. Images keep the address Google Docs gives them on googleusercontent.com, which can stop working later, so save the pictures you need with File > Download > Web page and point the links at those files.
What happens to lists, checklists and code?
Bulleted and numbered lists keep their nesting, read from the indent level Google Docs records for each item. Checklist items become - [x] and - [ ] task items. Text in a monospace font such as Courier New, Consolas or Roboto Mono becomes inline code, and several monospace lines in a row become a code block.
How do I convert a Google Doc to Markdown on the command line?
Download the document as Word with File > Download > Microsoft Word (.docx), then convert it with pandoc. The --extract-media option saves the images next to the Markdown file.
pandoc -f docx -t gfm --extract-media=. notes.docx -o notes.mdIs my document uploaded?
No. The text you paste is converted by JavaScript in your browser. Nothing is sent to a server or saved, and the page never asks for access to your Google account.
Other converters: HTML to Markdown, Rich text to Markdown, Word to Markdown and Evernote to Markdown.