HTML to Markdown Converter
Paste HTML and get clean Markdown back — headings, links, images, lists, code blocks and blockquotes, ready for a docs site, wiki or CMS. Scripts and styles are dropped; tables become plain text.
Runs in your browser — your code and data never leave this device
How do I convert HTML to Markdown?
Paste your HTML here: this free online HTML to Markdown converter turns it into clean Markdown — headings, paragraphs, bold and italic, links, images, lists, code blocks and blockquotes. Scripts and styles are dropped entirely, and the result copies to the clipboard or downloads as a file.
Related tools
How to use the HTML to Markdown Converter
- Paste your HTML into the Input box on the left, or click Sample to load an example article.
- Click Convert to Markdown. Headings, paragraphs, bold and italic text, links, images, lists, code and quotes are converted; scripts and styles are dropped.
- Read through the output — tables become plain text and need rebuilding by hand, and relative links stay relative.
- Click Copy output or Download to save the Markdown, then paste it into your docs, wiki or CMS.
For the full picture — what survives the move, and the cleanup pass after — read our guide: How to Convert HTML to Markdown.
What converts, and what is dropped
Headings become # markers, paragraphs stay paragraphs, bold and italic become ** and *, links become [text](url), images become , and lists become - or numbered items. Code becomes backticks, a pre block becomes a fenced code block, and a blockquote gains its > markers. The result is Markdown you can paste straight into a docs site or a CMS.
Two things are dropped on purpose. Scripts and styles are removed entirely — Markdown has no place for them, and carrying them over would be a security risk in most destinations. Tables, div wrappers and span elements are not dropped, but their structure is: their text passes through as plain paragraphs, so a table becomes its cell text in reading order. If the table matters, rebuild it as a Markdown table by hand.
Why turn HTML into Markdown?
The usual reason is a move: content written for a website has to live in a documentation system, a wiki, a static site generator or a CMS that speaks Markdown. Copying the rendered text loses the links and the structure; copying the HTML keeps the structure but in the wrong format. Converting gives you the content in the format the new home expects, with links and headings intact.
It is also a cleaning step. HTML copied from a web page carries classes, inline styles and tracking attributes that you do not want. Converting to Markdown strips all of that away and leaves the words, the links and the structure — a clean source you can edit, version-control and publish anywhere.
Big migrations work the same way, one page at a time. Moving a WordPress site to a static generator, a Confluence space to a docs site, or a pile of old help articles into a new knowledge base all come down to the same loop: take the HTML, convert it, tidy the result, publish. The conversion is the fast part; the tidying — fixing relative links, rebuilding tables, checking images — is where the time goes, so budget for it.
Cleaning up after conversion
Three checks are worth doing on every conversion. First, links: relative links like /about stay relative, so if the new home lives on a different domain, make them absolute or re-point them. Second, images: the converter keeps the src and the alt text, but a relative image path needs the same treatment as a relative link. Third, tables: they arrive as plain text, so find them in the output and rebuild them as Markdown tables before publishing.
Nested lists survive the conversion with two-space indentation, which most Markdown renderers understand. Deeply nested structures and multi-paragraph list items are the edge cases — read them once in the output and tidy the indentation if your renderer complains.
Convert HTML to Markdown online free: what survives the move
To convert html to markdown online free, paste the HTML and the converter maps each element to its Markdown form: headings become hash markers, bold and italic become asterisks, links keep their text and address, images keep their alt text and source, and code blocks become fenced code. A html to md converter free is the same tool — md is just the short name for Markdown — and it is the quick way to move content out of a web page and into a document.
Two honest limits belong here. Scripts and styles are dropped entirely, which is usually what you want — Markdown has no place for them — and tables, div wrappers and span elements lose their structure: their text comes through as plain paragraphs in reading order, so a table has to be rebuilt by hand afterwards. Convert webpage html to markdown when you are migrating content to a Markdown-based site, and check the result before you publish it.
Frequently asked questions
Are links kept?
Yes, with their destinations. A link becomes Markdown link syntax with the same address. Relative links stay relative, so re-point them if the content moves to a different domain.
What happens to tables?
They become plain text. The table structure is lost and the cell text appears in reading order. Rebuild important tables as Markdown tables by hand after converting.
Does it keep images?
Yes. Images become Markdown image syntax with their alt text and source address. Like links, relative image paths stay relative.
What about scripts and styles?
They are dropped entirely. Markdown has no place for scripts or styles, and carrying them over would be a security risk in most destinations.
Is my HTML uploaded anywhere?
No. This tool runs entirely in your browser using JavaScript. Your code is never uploaded, stored or sent anywhere — everything stays on this device.
Do tables survive the conversion?
Their structure does not: the text comes through as plain paragraphs in reading order, so a table has to be rebuilt by hand afterwards. Headings, lists, links, images and code blocks all convert cleanly.
Does it keep links and images?
Yes — links keep their text and address, and images keep their alt text and source. Scripts and styles are dropped entirely, because Markdown has no place for them.
Can I convert Markdown back to HTML?
Not with this tool — it converts one way, from HTML to Markdown. For the opposite direction there is a separate converter on this site that turns Markdown into HTML.