HTML to Markdown
Convert HTML fragments into readable Markdown for docs, CMS cleanup, content migration, and developer notes.
Copied visible text, lists, or tables from a page rather than its HTML source? Use Paste to Markdown
Converter overview
Use this tool for HTML source: paste a tagged fragment or import an .html, .htm, or .txt file. Put the example code in the left pane to generate the Markdown shown on the right.
For rich text copied from a browser page, use Paste to Markdown to read clipboard formatting. Review complex layouts, merged cells, and nested tables in either tool; Markdown does not preserve full web-page styling.
Input and output example
Input
<h2>Notes</h2><ul><li>First item</li></ul><p><a href="https://example.com/docs">Docs</a></p><table><tr><th>Name</th></tr><tr><td><strong>Example</strong></td></tr></table>Output
## Notes
- First item
[Docs](https://example.com/docs)
| Name |
| --- |
| **Example** |How to use this converter
- 1Paste an HTML fragment or upload an .html, .htm, or .txt file.
- 2The tool converts common HTML tags into readable Markdown syntax.
- 3Copy or download the Markdown and edit the result for your publishing system.
Best use cases
- Clean exported CMS content before moving it into Markdown.
- Turn old page fragments into lightweight documentation text.
- Remove noisy HTML while preserving headings, links, emphasis, lists, code, and tables.
Frequently asked questions
Does it keep every HTML attribute?
No. Markdown is simpler than HTML, so layout attributes and custom styles are intentionally removed.
Can I convert full web pages?
You can paste page HTML, but the best results come from article or content fragments rather than full application pages.