HTML to Markdown Converter · convertit2md
convertit2md — html

HTML to Markdown Converter

Convert HTML files to clean, readable Markdown instantly. Free, no sign-in required, and files are not stored after conversion. Useful for migrating web content to a static-site generator, stripping markup from scraped pages, or preparing HTML articles for use in a plain-text pipeline.

› convert an HTML file now

Drag & drop a file here, or click the button below

## why convert HTML to Markdown?

HTML is designed for browsers. Markdown is designed for people. While HTML carries semantic meaning, it also carries noise: dozens of attributes, class names written for styling, accessibility annotations, and inline scripts that have nothing to do with the content. Markdown cuts through all of that and gives you the words and structure — nothing more.

Static-site migrations are one of the most common reasons to convert HTML to Markdown. When moving a site from a CMS that stores content as HTML blobs to a generator like Hugo, Jekyll, or Astro that uses Markdown source files, bulk conversion is essential. This tool handles individual files — drop in a page, get Markdown out, review and commit.

## what structure is preserved

Heading tags h1 through h6 map to Markdown headings. Paragraphs, strong and em tags, anchor links, ordered and unordered lists, blockquotes, pre and code elements, and HTML tables all survive the conversion with their Markdown equivalents. Attributes like class and id are dropped since Markdown has no concept of them.

## known limitations

JavaScript-rendered content is not executed — only the static HTML you upload is processed. Inline SVG produces no output. IFrame content is skipped. If a page relies on client-side rendering to display its content, save the rendered DOM (using browser developer tools) rather than the raw HTML source before uploading.

## frequently asked questions

Q. Which HTML elements are mapped to Markdown?
A. Headings (h1–h6), paragraphs, bold and italic text, links, unordered and ordered lists, blockquotes, inline code, code blocks, and tables are all converted to their Markdown equivalents. Nav, header, footer, and script elements are stripped.
Q. What happens to CSS and JavaScript?
A. Style sheets and script tags are removed entirely. Only the semantic HTML content is extracted. Inline styles have no effect on the output — structure comes from the HTML tags, not the visual presentation.
Q. Can I convert an entire web page saved as HTML?
A. Yes. If you save a page as 'Web Page, Complete' or 'Single File' and upload the .html file, convertit2md will extract the main content. Navigation menus and sidebars may appear in the output alongside the main body.
Q. Is the .htm extension also accepted?
A. Yes. Both .html and .htm files are accepted — they are treated identically by the converter.