HTML to Markdown Converter
Convert HTML into Markdown, keeping headings, lists, links and code while dropping the wrapper markup a page editor left behind.
Browser tool
HTML
Paste HTML or upload a page. Scripts and styles are dropped; headings, lists, tables, links, images and code become Markdown.
Settings
Video, iframe, details, forms and similar elements.
More options
About HTML to Markdown
Content copied out of a page or a CMS arrives wrapped in layout markup, inline styles and wrapper divs that mean nothing once it is somewhere else. Converting to Markdown keeps the structure that matters and discards the rest. Converting is free and demands no registration. Your HTML is transformed inside the page rather than uploaded to anyone.
How to use HTML to Markdown
- Paste the HTMLA fragment copied from a page, or an entire document body. Wrapper elements are fine — removing them is the job.
- Read the MarkdownHeadings, lists, links, emphasis, code and tables survive. Presentational wrappers do not, which is the point.
- Copy the MarkdownInto a README, a documentation page or a note — anywhere the plain structure matters more than the styling it arrived with.
What survives the round trip
Headings, paragraphs, emphasis, lists, links, images, block quotes, code and simple tables all have a Markdown equivalent and come through intact. Everything else is presentation, and presentation is exactly what you were trying to leave behind when you converted.
What it does not do
- Markdown cannot express everything HTML can. Colspans, nested tables, iframes and styled spans have no equivalent and are either dropped or left as raw HTML.
- The result is a faithful conversion of the structure, not of the appearance. A layout built from divs and CSS becomes a flat document, because that is all Markdown has.
HTML to Markdown: questions people ask
- What happens to inline styles and classes?
- They are discarded. Markdown has no way to express them, and keeping them as raw HTML would defeat the reason for converting.
- Will a complex table survive?
- A simple grid will. Merged cells and nested tables have no Markdown representation, so those parts are left as HTML rather than silently flattened into something wrong.
- Why is there stray HTML left in my output?
- Because dropping it would lose information. Where an element has no Markdown equivalent the converter keeps the original tag rather than discarding content, on the grounds that markup you can see and delete is better than a paragraph that quietly vanished.
- Can I convert a web page to Markdown by entering its URL?
- No, the converter does not fetch pages from the web. Save the page as an .html file and upload it, or copy its source and paste it in. Scripts and styles are dropped, while headings, lists, tables, links, images and code come through as Markdown.
Questions about ToolsVerse itself — privacy, cost, what happens to your files — are answered in the frequently asked questions.
Related tools
The tools people most often need alongside HTML to Markdown.
Can’t find the tool you need?
Tell us what you’re looking for and we’ll consider adding it.