Command Palette

Search for a command to run...

HT

HTML to Markdown

Convert HTML to clean Markdown instantly. Turns headings, lists, links, images, blockquotes, code blocks and tables into portable GitHub Flavored Markdown. Tolerant of messy CMS markup. Runs client-side.

Bullet:
78
Words
2
Headings
1
Links
0
Images
1
Code blocks
1 min
Read time
Category:docs
Mode:Offline
Version:1.0.0
Access:Free

What is the HTML to Markdown Converter?

HTML to Markdown interface on Toolz.dev - Convert HTML to clean Markdown instantly. Turns headings, lists, links, images, blockquotes, code blocks and tables into portable GitHub Flavored Markdown. Tolerant of messy CMS markup. Runs client-side.

The HTML to Markdown Converter takes HTML - a page you copied from a CMS, the output of a rich-text editor, a chunk of a rendered article - and turns it back into clean Markdown. Headings become # lines, <strong> and <em> become bold and italics, anchors become [text](url) links, <img> becomes image syntax, ordered and unordered lists become numbered and bulleted lists, <blockquote> becomes > quotes, <pre><code> becomes fenced code blocks, and tables become GitHub Flavored Markdown pipe tables.

Converting HTML to Markdown by hand is slowest with tables, which is where an HTML to Markdown converter saves the most time. Paste <table><tr><th>Plan</th><th>Price</th></tr><tr><td>Free</td><td>$0</td></tr></table> and you get three lines back: | Plan | Price |, then the | --- | --- | divider, then | Free | $0 |. The same HTML table to Markdown step works for a pricing grid copied from a docs page or a spec table exported from a wiki, and you can check the result by pasting it into any GitHub comment preview.

Markdown is the portable format that documentation sites, static blogs, README files, note apps and AI prompts all understand. HTML is what you usually end up with when you copy from the web or export from a WYSIWYG editor, and it carries a lot of markup you do not want in a plain-text document. Converting one to the other by hand is tedious and error-prone; a rule-based converter does it consistently.

Everything runs in your browser. The parser is hand-written and dependency-free - it does not use a remote API and it does not even rely on the browser's DOM, so it is tolerant of the unclosed tags and stray attributes that real-world HTML is full of. Your drafts, internal pages and pasted content never leave the page. Paste HTML, choose your bullet style, then copy the Markdown or download an .md file.

The conversion is lossy in one direction by design, because Markdown expresses far less than HTML does. Classes, ids, inline styles, spans, data attributes and anything positional are dropped, since Markdown has no way to carry them: what survives is the structure, which is usually the point of converting. GitHub Flavored Markdown handles tables, but only simple ones, so a table with merged cells or block content inside a cell cannot be represented and comes across flattened. Nested lists convert cleanly; deeply nested combinations of lists and blockquotes are where output gets fragile. Messy CMS markup with unclosed tags is parsed rather than rejected, so pasting from a rich text editor generally works, and it is worth reading the result rather than trusting it.

How to use the HTML to Markdown Converter?

1

Paste your HTML

Type or paste HTML into the editor - copied from a web page, exported from a CMS, or produced by a rich-text field. The Markdown updates as you type; load the sample to see what is supported.

2

Choose your options

Pick the bullet character for unordered lists, keep GitHub Flavored Markdown on for tables and strikethrough, and decide whether to keep links and images or strip them down to plain text.

3

Review the Markdown

Read the output next to your source and check the stats - words, headings, links, images, code blocks and estimated reading time - to confirm the structure came across intact.

4

Copy or download

Copy the Markdown to your clipboard or download it as an .md file, ready to drop into a README, a docs site, a note app or a static blog.

Key Features

Full Block Coverage

Headings, paragraphs, ordered and unordered lists (including nested lists), blockquotes, horizontal rules, code blocks and description lists are all mapped to their Markdown equivalents

GFM Tables and Strikethrough

HTML tables become GitHub Flavored Markdown pipe tables with a header row and divider, and <del> / <s> become ~~strikethrough~~ - the extensions your README and docs already use

Links, Images and Inline Code

Anchors become [text](href "title"), images become ![alt](src), and <code> spans are wrapped in backticks with their contents left untouched so snippets survive the conversion

Tolerant of Messy Markup

Unclosed tags, uppercase tag names, unquoted attributes, comments and <script> / <style> blocks are all handled gracefully - the converter never throws on real-world HTML

Frequently Asked Questions

Paste your HTML into the editor and the Markdown appears immediately - there is no file to upload and no convert button to press. Adjust the bullet style or link handling if you like, then copy the Markdown or download it as an .md file.

Comments

0 comments

0/2000 characters

No comments yet. Be the first to share your thoughts!

html to markdownhtml to markdown converterconvert html to markdownhtml to mdweb page to markdownrich text to markdowncms to markdownhtml markdown convertermarkdown from htmlconverting html to markdownhtml table to markdown