Markdown to Google Docs
Paste Markdown below, copy it as rich text, and paste into your document — headings, lists and tables arrive formatted rather than as raw syntax. No sign-in, no Drive permission, and nothing is uploaded.
Preview
Converted in this tab. The file is never uploaded.
Why copying beats pasting the raw Markdown
Paste Markdown straight into Google Docs and you get exactly what you typed: hashes at the start of lines, asterisks around words, pipes where a table should be. Docs has no reason to interpret them.
Copying as rich text puts two versions on the clipboard — the plain text
and an HTML version carrying the structure. Docs takes the HTML, maps
## onto Heading 2 and a pipe table onto a real table, and you
get a document whose outline pane works.
Three routes, and when each is right
- Copy as rich text (this page) — best for putting content inside a document that already exists, at a particular place.
- Import a .md file — Google Docs opens Markdown files directly, creating a new document. Best when the Markdown is the document. Export one from the editor first.
- Paste-as-Markdown — Docs has a setting that converts Markdown syntax as you paste. Convenient, but it is Docs' interpretation rather than yours, and it covers less than this does.
What does not survive
Syntax colouring in code blocks, because Docs has nothing to apply it to — the monospace font and the line breaks do survive. Front matter is dropped rather than pasted as a stray table of keys. Footnotes and task-list checkboxes have no Docs equivalent and arrive as ordinary text.
Going the other way
To pull an existing document out of Docs, see Google Docs to Markdown — the same clipboard trick in reverse, and equally free of any Google authorisation.
Common questions
- How do I convert Markdown to a Google Doc?
- Paste your Markdown below, check the preview, then press Copy for Google Docs and paste into the document. Headings arrive as real Google Docs headings rather than as visible hashes, so the outline pane works immediately.
- Do I need to sign in or grant Drive access?
- No. Nothing here talks to Google — there is no OAuth screen and no Drive permission. The conversion happens in this tab and the result goes to your clipboard, which only you can paste.
- Google Docs can import Markdown itself. Why use this?
- Use whichever fits. Docs can import a .md file as a new document and has a paste-as-Markdown setting. This is faster when you want the content inside an existing document, at a specific place, without creating a new file first.
- Will the headings become real headings?
- Yes. The clipboard carries HTML alongside the plain text, and Google Docs maps HTML headings onto its own Heading 1, 2 and 3 styles. That is what makes the document outline and any table of contents work.
- What about tables and code blocks?
- Tables paste as real Google Docs tables. Code blocks keep a monospace font and their line breaks, though syntax colouring does not survive — Docs has no equivalent to apply it to.
- Nothing pastes, or it pastes as plain text. What went wrong?
- Some browsers refuse programmatic rich-text copying, in which case the preview is selected for you instead — press Ctrl or Cmd+C to copy that, then paste as normal. Pasting with Ctrl+Shift+V forces plain text, so use a plain Ctrl+V.