Rich Text to Markdown Converter
Paste formatted text from Google Docs, Microsoft Word, or any rich text application. Get clean, readable Markdown output instantly.
Related Tools
How to Use
- Paste Your Formatted Text — Open Google Docs, Word, or any document. Select the text you want to convert (Ctrl+A to select all). Copy it (Ctrl+C). Then click the white input area below and paste (Ctrl+V). The formatting will appear visually — bold stays bold, headings stay headings.
- View the Markdown — The Markdown tab instantly shows your clean Markdown output. All Word/Docs junk formatting is stripped. Headings, bold, italic, links, lists, tables, and code blocks are properly converted to Markdown syntax. The Source HTML tab shows the raw HTML that was pasted.
- Copy or Download — Click Copy Markdown to copy the output, or Download .md to save as a Markdown file. Use the Clear button to reset and paste new content.
About the Rich Text to Markdown Converter
Rich Text to Markdown takes formatted text you paste from Google Docs, Microsoft Word, a web page or an email and writes it out as clean Markdown. Headings, bold, italics, links, nested lists and tables come through as Markdown syntax, and the fonts, colors and wrapper markup are left behind. It saves retyping when a document written in a word processor has to become a README, a docs page, a static-site post or a Markdown note.
What happens to your paste
Your browser hands the paste box HTML. The converter parses it into an inert document (nothing in it runs), cleans it, and then writes Markdown. The cleaning steps target what Word and Google Docs produce:
- Comments, scripts, styles, form fields and embedded objects are removed. Word's namespaced tags such as
<o:p>are unwrapped. - Word's list paragraphs (
mso-listwith a level number) are rebuilt as real nested lists. The marker decides the type:1.,a)oriv.make a numbered list, and bullets make a bulleted one. - The
<b style="font-weight:normal">wrapper Google Docs puts around a copy is removed, so the whole document does not turn bold. - Formatting set through styles becomes real formatting: font-weight 600 or more or
boldbecomes bold, italic or oblique becomes italic, line-through becomes strikethrough, and superscript and subscript are kept as<sup>and<sub>tags. - Lists that Docs nests directly inside another list are moved under the previous item. Empty paragraphs and stray line breaks are dropped, and adjacent bold or italic runs are merged.
The Markdown writer then escapes characters that would accidentally become syntax (*, [, backticks, a # or 1. at the start of a line). Spaces stay outside the markers, so "bold " followed by "text" becomes **bold** text.
Worked example
HTML in the style Google Docs produces, run through the converter:
| In the pasted HTML | Result |
|---|---|
<b style="font-weight:normal" id="docs-internal-guid-…"> around everything | Removed |
<h2 id="h.x1"><span style="font-size:16pt">Launch plan | ## Launch plan (font size and the generated ID dropped) |
<span style="font-weight:700">Owner:</span> | **Owner:** |
| A link whose text is an underlined span | [the brief](https://example.com) |
<span style="font-style:italic"> today</span> | *today* with the space kept before it |
<ul><li>Draft copy</li><ul><li>Legal review… | A nested list |
<span style="text-decoration:line-through"> | ~~Fax it~~ |
Output:
## Launch plan
**Owner:** Dana, see [the brief](https://example.com) *today*
- Draft copy
- Legal review
~~Fax it~~
Limitations
- Markdown has no underline, color, font or text-size syntax, so those are dropped.
- Text that is only large and bold is not a heading. A line set in 14 pt bold comes out as
**Q3 Report**, not## Q3 Report. - Images are kept only when their address is http, https, a site path starting with
/, or embedded PNG, JPEG, GIF or WebP data. Images that Word references from a file on your computer are removed. Upload them and add them back. - Tables: the first row becomes the header row. Merged cells are padded with empty cells so the columns line up, but the merge itself is lost.
- Footnotes, comments and tracked changes are not converted.
- The converter only sees what your browser puts into the paste box, and browsers clean pasted HTML differently. Check the Source HTML tab if a result looks wrong.
Practical tips
- Apply real heading styles (Heading 1, Heading 2) in Word or Docs before copying, so the structure survives as
#headings. - Copy only the part you need. Ctrl+A also selects document titles, headers and anything else on the page.
- If you want cleaned HTML instead of Markdown, use Rich Text to HTML. If you already have HTML source code, the HTML to Markdown Converter is a better fit. To go back to formatted text, use Markdown to Rich Text.
The paste is converted by JavaScript on this page; your document never leaves your device.
Frequently Asked Questions
How do I paste from Google Docs or Word?
Open your document in Google Docs or Microsoft Word. Select the content you want to convert (Ctrl+A for all, or select specific sections). Copy it with Ctrl+C (or Cmd+C on Mac). Then click the white input area on this page and paste with Ctrl+V (or Cmd+V). The tool captures the rich formatting from your clipboard and converts it to Markdown.
What formatting is preserved in the conversion?
The converter preserves document structure: headings (H1-H6), bold, italic, strikethrough, links with URLs, images, ordered and unordered lists (nested lists are indented), task lists with checkbox state, tables with a header row and column alignment, blockquotes, code blocks (keeping the language when the source marks it), superscript and subscript, and horizontal rules. Spaces next to formatting are kept outside the markers, so "bold " followed by "text" becomes **bold** text. Underline is dropped because Markdown has no underline syntax, and purely visual formatting like font colors, sizes, and custom spacing is stripped since Markdown doesn't support these.
Does it handle Word's messy HTML?
Yes. Microsoft Word generates notoriously messy HTML with proprietary XML namespaces (o:p, w:sdt), excessive inline styles, and unnecessary wrapper elements. This converter uses DOMParser to build a proper document tree, reads bold and italic from inline styles, rebuilds Word's bullet and numbered paragraphs as real lists, and then walks the tree, converting meaningful elements to Markdown while ignoring Word-specific junk. The result is clean, readable Markdown.
What happens to images in my document?
Images whose address is http or https, a site path starting with /, or embedded PNG, JPEG, GIF, or WebP data are converted to Markdown image syntax: . Images that Word references from a file on your computer, and images with any other kind of address, are left out because those paths would not work anywhere else — upload the images and add them back to the Markdown.
Can I paste from other applications?
Yes. The converter works with any application that puts HTML on the clipboard during copy: Google Docs, Microsoft Word, Apple Pages, LibreOffice, Notion, Confluence, web pages (select text in your browser and copy), email clients, and more. Any rich text paste is converted to Markdown.
Is my pasted content sent to a server?
No. All processing happens in your browser. When you paste formatted text, the browser provides the HTML representation on your local clipboard. The JavaScript converter parses this HTML locally using DOMParser and converts it to Markdown — entirely on your device. Nothing is transmitted, stored, or shared.