HTML → Markdown Converter

Convert HTML markup to Markdown syntax — headings, lists, tables, and code blocks.

Category: Converters

When to use?

Use it to move web content into a blog or document, or to convert HTML-format writing into Markdown for a GitHub README, Notion, or a static site.

How to use

  • Paste HTML code into the input.
  • Headings, paragraphs, emphasis, lists, links, tables, and code blocks become Markdown.
  • Copy the converted Markdown into your document.

Input Explanation

Paste the HTML to convert. It supports h1–h6, p, strong, em, ul/ol, a, img, blockquote, pre/code, table, and more.

Calculation Basis

It recursively traverses the DOM tree and converts each HTML element to the matching Markdown syntax. Tables become GitHub-format tables; code blocks become fences (```).

Usage Examples

  • Migrate web content - Move web page HTML to Markdown for blogs/documents.
  • Write a README - Convert HTML descriptions to Markdown for a GitHub README.
  • Input to Notion/wiki - Convert an HTML document to paste into Markdown-supporting tools.

Examples

  • <h1>Title</h1> → # Title
  • <ul><li>Item</li></ul> → - Item

Cautions

  • Malformed source data can cause parsing errors or broken output.
  • A mismatched encoding standard or complex nested data may break or drop the structure.

Guides

Converted elements

It converts headings (h1–h6), paragraphs, bold/italic, lists, links, images, quotes, code blocks, and tables into matching Markdown syntax.

Tables and code blocks

<table> becomes a GitHub-format table and <pre><code> becomes a fenced (```) code block. Inline <code> is wrapped in backticks.

FAQ

Are tables converted?

Yes. <table> becomes a GitHub-format Markdown table.

How are code blocks handled?

<pre><code> becomes a fenced code block (```), inline <code> becomes backticks.

Are nested lists supported?

Yes. Nested lists are expressed with indentation.

What happens to images?

<img> becomes Markdown image syntax ![alt](src).

Related Tools