html2md
Rich text to clean Markdown
html2md is a free converter that turns rich text from a web page, Google Docs or Word into clean Markdown, tables included. It runs in your browser; what you paste never leaves it.
Updated
What you paste never leaves your browser. Only anonymous usage is counted.Privacy
How it works
Copy from a web page, Google Docs or Word and paste on the left: the formatting becomes Markdown, and the paste also copies it. Edit the Markdown if you like; Preview shows how it reads.
Copy Markdown copies plain Markdown text only. Headings, bold, italics, lists, links, code, quotes and tables stay; images become links.
What changes
| Markdown | Rich text (HTML) |
|---|---|
| <h2>Heading</h2> | ## Heading |
| <p><b>bold</b>, <i>italic</i>, <s>strike</s></p> | **bold**, _italic_, ~~strike~~ |
| <p><span style="font-weight:700">bold set as a style</span></p> | **bold set as a style** |
| <ul><li>item<ul><li>nested item</li></ul></li></ul> | - item - nested item |
| <p><a href="https://lou.tools">link</a></p> | [link](https://lou.tools) |
| <p><img src="https://lou.tools/favicon.svg" alt="logo"></p> | [logo](https://lou.tools/favicon.svg) |
| <table><tr><th>Name</th><th>Status</th></tr><tr><td>html2md</td><td>live</td></tr></table> | | Name | Status | | --- | --- | | html2md | live | |
Questions
- Is what I paste sent anywhere?
- No. The conversion runs in this page, in your browser, and what you paste never leaves it. The page only counts anonymous usage, such as which tool was opened or which button copied, never the text. You can check: open your browser's network panel while you paste. Everything the site collects
- How do I turn a Google Doc into Markdown?
- Copy the text from Google Docs and paste it into a converter that reads the formatting on the clipboard: headings, bold, italics, lists, links and tables become Markdown. html2md does it in your browser, keeps the bold Google Docs writes as a style and nests nested lists.
- How do I give a web page to ChatGPT as Markdown?
- Copy the part of the page you want and convert it to Markdown before you paste it into ChatGPT, so headings, lists, links and tables keep their structure as plain text. html2md converts it as you paste, drops scripts and styles, and keeps only http, https and mailto links.
- What becomes Markdown?
- Headings, bold, italics, strikethrough, inline code, code blocks, quotes, nested lists, links and tables. Images become links to the image.
- What happens to the styling from Google Docs and Word?
- Fonts, colours, sizes, empty lines and the extra markup those apps add are dropped. Bold and italics set as styles stay bold and italic.
Guides
More tools
PDF to Markdown
LiveA PDF's text as clean Markdown for ChatGPT or Claude: headings kept, page numbers and broken lines gone.AI text cleaner
LiveText from ChatGPT, Claude or Gemini without hidden characters, citation leftovers or broken spacing.chat-export
LiveA whole ChatGPT, Claude or Gemini conversation, saved as a PDF, a Word file or Markdown.math2word
LiveAnswers from ChatGPT or Claude with LaTeX formulas, ready to paste into Word as editable equations.md2email
LiveMarkdown from Claude, ChatGPT or your notes, ready to paste into Gmail or Outlook. Tables included.md2jira
LiveMarkdown from ChatGPT or Claude to Jira wiki markup, and back. Tables and code blocks included.