Skip to main content
File & Data Conversion Tools

HTML to Markdown Converter

Convert HTML to clean Markdown - preserves headings, lists, links, emphasis, code blocks, and tables where practical.

Paste HTML below - this tool converts it to clean, readable Markdown, preserving structure where Markdown has an equivalent.

Your HTML is parsed into an inert, detached document (never inserted into the live page) - embedded scripts are never executed.

HTML elements with no Markdown equivalent (like complex nested tables with colspan, or inline styles) are converted as closely as practical, or preserved as raw HTML within the Markdown where no clean conversion exists.

How to Use It

  1. Paste HTML markup.
  2. Click Convert.
  3. Copy or download the resulting Markdown.

What's Preserved

Headings, paragraphs, bold/italic/strikethrough, ordered and unordered lists, links, images, blockquotes, code spans/blocks, and simple tables all convert to their direct Markdown equivalents.

Limitations

Markdown has no native equivalent for some HTML features (complex table layouts with colspan/rowspan, inline CSS styling, custom data attributes) - where no clean Markdown equivalent exists, the tool preserves the structure as closely as practical rather than silently deleting that content.

Example

<h2>Install</h2>
<p>Run <code>npm install</code> and see the <a href="https://example.com/docs">docs</a>.</p>
<ul><li><strong>Fast</strong></li><li>Free</li></ul>

becomes:

## Install

Run `npm install` and see the [docs](https://example.com/docs).

*   **Fast**
*   Free

Common Uses

  • Moving a blog from WordPress or another CMS to a static site generator such as Hugo, Jekyll or Astro.
  • Writing documentation in a GitHub README or wiki from content that exists as a web page.
  • Cleaning up copied web content for notes apps like Obsidian or Notion that work with Markdown.
  • Preparing text for AI tools, where Markdown is shorter and clearer than HTML.

Tips

  • Paste only the article body, not the whole page - navigation, footers and scripts are noise in Markdown.
  • Check tables after converting; Markdown tables cannot merge cells.
  • Relative image and link URLs stay relative, so update them if the content is moving to a new site.

Convert back with Markdown to HTML, or strip all formatting with HTML to Text.

Frequently Asked Questions

To move content from a website or CMS into Markdown-based tools such as README files, static site generators or documentation.

Markdown only has basic formatting, so classes, styles, and layout elements like divs are dropped. Headings, lists, links, emphasis, code and tables are kept where practical.

No. The HTML is converted in your browser, so unpublished content stays on your device.
Share this tool: