Paste rich text or HTML → clean Markdown, copy in one click
Paste rich text from Google Docs, Word, or any web page — formatting is preserved.
Paste or type raw HTML. Will be converted to Markdown on input.
Markdown output
Rich Text to Markdown converts content copied from Google Docs, Microsoft Word, Notion, web pages, or any rich-text source into clean, portable Markdown. Paste the content and the converter walks the underlying HTML structure — which every rich-text clipboard provides — and maps it to semantic Markdown: headings, bold, italic, lists, tables, links, code blocks, and blockquotes.
The result is plain-text Markdown you can paste directly into a .md file, a static site generator, a GitHub PR description, or any Markdown-accepting input — without the formatting garbage that accumulates when you paste rich text directly.
For Google Docs: standard copy (Cmd+C / Ctrl+C) is sufficient. For Microsoft Word: same — Word exports semantic HTML on paste. For web pages: select the text and copy; the browser provides the underlying HTML.
When you paste rich text into a browser input, the browser exposes both plain text and HTML versions via the Clipboard API. This tool reads the HTML version — which retains structural information that the plain text version discards — and walks the DOM tree recursively.
Each HTML element is mapped to its Markdown equivalent:
| HTML | Markdown output |
|---|---|
<h1>–<h6> | # through ###### |
<strong>, <b> | **bold** |
<em>, <i> | *italic* |
<del>, <s> | ~~strikethrough~~ |
<code> | `inline code` |
<pre><code> | Fenced code block |
<a> | [text](url) |
<img> |  |
<ul> / <li> | - item |
<ol> / <li> | 1. item |
<blockquote> | > quote |
<table> | GFM pipe table |
<hr> | --- |
Nested lists are handled recursively, preserving up to 3 levels of indentation. <div> and <span> elements are treated as transparent wrappers — only their children are processed, not the container itself.
Inline styles (color, font-size, margin) are stripped entirely. Only semantic structure is preserved.
Rich text is not portable. A Google Doc looks correct in Google Docs, a Word document in Word, a Notion page in Notion — but copy that content into a different system and the formatting either breaks or imports with proprietary markup that requires cleanup. This is the fundamental problem with rich text: it ties content to the rendering system.
Markdown is format-portable. The same .md file renders correctly in GitHub, Obsidian, Hugo, Docusaurus, MkDocs, Astro, VS Code, and every other Markdown-aware system. It’s plain text — it diffs cleanly in git, stores in any database, and survives format changes without data loss.
The documentation pipeline problem is where this matters most in engineering contexts. Technical documentation often originates in Google Docs (where stakeholders can comment) and needs to land in a static site generator (where developers maintain it). The conversion path — Google Docs → copy → paste into .md file — is a regular task that accumulates formatting debt unless you have a clean converter. This tool eliminates one step in that pipeline.
Prompt engineering is a newer use case. When I’m writing system prompts, I often draft them in a rich-text editor where I have spell check, history, and collaboration. Converting to plain Markdown before pasting into a prompt template keeps the output clean and avoids hidden formatting characters that occasionally confuse tokenizers.
Static site generator workflows (Astro, Hugo, etc.) need clean Markdown front matter and body. Pasting from any rich-text source without conversion creates character encoding issues, non-breaking spaces, and Microsoft-specific quotation marks that break syntax highlighting and code blocks in the rendered output.
<pre><code>, it converts to a fenced code block. If the source just has a bold monospace paragraph (a common shortcut in Google Docs), it won’t be detected as code. Use the Docs “Insert > Building blocks > Code block” feature for code that should convert correctly.For informational purposes only. Not financial, medical, or legal advice. You are solely responsible for how you use these tools.