Skip to content

Rich Text to Markdown Converter

Paste formatted text from Google Docs, Microsoft Word, or any rich text application. Get clean, readable Markdown output instantly.

📄 Rich Text Input — paste from Docs, Word, or any formatted source
💡 How to use: Open Google Docs or Word → Select text (Ctrl+A) → Copy (Ctrl+C) → Click the white area above → Paste (Ctrl+V). The Markdown appears below instantly.

Related Tools

Strip HTML Tags Markdown Editor HTML to Markdown Converter Markdown to Rich Text Rich Text to HTML Converter

How to Use

  1. 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.
  2. 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.
  3. 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:

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 HTMLResult
<b style="font-weight:normal" id="docs-internal-guid-…"> around everythingRemoved
<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

Practical tips

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: ![alt text](image URL). 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.