What Is the HTML to Markdown Converter?
Convert HTML markup to clean Markdown syntax. Paste HTML and get equivalent Markdown output for documentation, README files, and content migration.
Why Use This Tool?
Migrating content from HTML-based systems (CMSes, email templates, web pages) to Markdown-based platforms (GitHub, static site generators, documentation tools) requires converting HTML tags to Markdown equivalents.
How to Use This HTML To Markdown
- Paste your HTML — Enter the HTML content you want to convert — from a full page, a blog post, or a rich-text editor output.
- Read the Markdown — The output updates as you paste or type: headings, paragraphs, bold, italic, strikethrough, links, images, blockquotes, nested and numbered lists, fenced code blocks (keeping a language-xxx class as the fence language) and tables.
- Review the output — Check the converted Markdown for accuracy, especially complex elements like nested lists and tables.
- Copy the Markdown — Grab the clean Markdown text for use in documentation, README files, static site generators, or CMS platforms.
Worked example: 14 tricky inputs, checked by round trip
On October 12, 2026 we ran 14 edge-case snippets through the tool in Chromium, rendered its Markdown back to HTML with markdown-it 14.1 (CommonMark + GFM tables) and compared, and ran the same snippets through Turndown 7.2 with its GFM plugin, the most widely used JavaScript converter.
| Input | Tool Markdown | Turndown 7.2 | Round trip (tool) |
|---|---|---|---|
| Text with * _ [ ] | 2 \* 3, file\_name, \[x\] | Same | Same text |
| Paragraph starting "# " or "1. " | \# not a heading | Same | Stays a paragraph |
| Table cell containing | | x \| y | x | y (splits the cell) | Tool correct; Turndown adds a column |
| Text <div> | \<div> | <div> | Tool correct; Turndown output becomes a live tag |
| Link to …/Foo_(bar) | [Foo](<…Foo_(bar)>) | [Foo](…Foo_\(bar\)) | Both correct |
| Code with a backtick | ``a`b`` | Same | Same |
| pre with blank lines + language-js | ```js fence, blank line kept | Same | Same |
| del / sup / u | ~~old~~ 2 u | ~old~ 2 u | sup and u lost (x² becomes x2) |
| th colspan="2" | | AB | | | | AB | (2-column body) | span lost; tool pads with an empty cell |
| ol start="3" | 3. c / 4. d | Same | Numbering kept |
- 12 of 14 came back identical. Escaping is the part most converters get wrong; here asterisks, underscores, brackets, a leading # or 1., a pipe inside a table cell and a literal < all round-trip as text.
- Formatting with no Markdown equivalent becomes plain text. sup, sub, u, mark, span styles, classes and IDs are dropped with their text kept. Keep those as inline HTML in the Markdown by hand if they carry meaning (exponents, chemical formulas).
- GFM tables have no cell spanning. colspan and rowspan cannot be expressed; the tool pads the row with empty cells so the table stays valid, but merged headers need rewording.
- Only script, style, noscript, template and head are removed. Navigation, footers and forms are converted like any other content, so paste the article body rather than a whole page.
- Check your renderer's flavour. Strikethrough (
~~) and tables are GitHub Flavored Markdown extensions; plain CommonMark shows them as text.
Sources
Checked on .
Related tools
- When the source is a Word file rather than an HTML page, the DOCX to Markdown converter reads the .docx in-browser and emits the same clean Markdown output.
- Starting from a CSV rather than an HTML table? The CSV to Markdown Table converter produces the same clean GFM output from the CSV side with full column-width padding.
- Working from a PDF instead of HTML? The PDF to Markdown converter produces the same flavored output from the PDF side.
Frequently Asked Questions
📖 Learn More
Related Article The Complete Guide to Markdown →📖 Learn More
Related Article How to Convert HTML to Markdown →Built by Derek Giordano · Part of Ultimate Design Tools