HTML to Markdown Converter

The HTML to Markdown Converter transforms HTML content into clean Markdown text. This is useful for migrating content from HTML-based systems to Markdown-based platforms, extracting text from web pages, or simplifying rich text for plain text contexts. The converter handles all common HTML elements including headings, lists, links, images, emphasis, code blocks, and tables, producing clean, readable Markdown output.

Formula

HTML to Markdown conversions:
- <h1> → #
- <strong> → **
- <em> → *
- <a href> → [text](url)
- <img src> → ![alt](src)
- <ul><li> → - item
- <ol><li> → 1. item
- <code> → `code`
- <blockquote> → > quote

Example

Input: <h1>Title</h1> <p>This is <strong>bold</strong>.</p> <ul><li>Item 1</li><li>Item 2</li></ul> Output: # Title This is **bold**. - Item 1 - Item 2

How to Use

  1. Paste your HTML into the input field
  2. The converter transforms it to Markdown
  3. Review the Markdown output
  4. Clean up any formatting issues
  5. Copy the Markdown for your use

Frequently Asked Questions

Why convert HTML to Markdown?

Markdown is simpler, more readable, and easier to edit than HTML. Converting HTML to Markdown is useful for migrating content to Markdown-based platforms (GitHub, GitLab, Notion, Jekyll), simplifying rich text, or creating plain text versions of web content.

What HTML elements are supported?

The converter handles headings (h1-h6), paragraphs, bold/strong, italic/em, links, images, lists (ul, ol), code blocks, blockquotes, horizontal rules, and tables. Unsupported elements are typically stripped or converted to plain text.

How are HTML tables converted?

HTML tables are converted to Markdown pipe tables. The converter extracts headers and cell content, creating the pipe syntax. Complex tables with merged cells (colspan, rowspan) may not convert perfectly as Markdown tables do not support cell merging.

What happens to unsupported HTML tags?

Unknown or unsupported HTML tags are typically stripped, leaving only their text content. For example, <div class="wrapper">text</div> becomes just 'text'. This ensures the Markdown output is clean and focused on content.

Can I convert a full web page?

Yes. Paste the HTML of a web page (or just the body content) and the converter extracts the Markdown. For very large pages, consider extracting just the main content area first to avoid converting navigation, footer, and other non-content elements.