HTML to Markdown Converter

Convert HTML to clean Markdown instantly. Runs entirely in your browser — no data leaves your device.

HTML Input
Markdown Output
Conversion Reference
Headings
<h1> → # Heading <h2> → ## Heading <h3> → ### Heading
Emphasis
<strong> → **bold** <em> → *italic* <del> → ~~strike~~
Links & Images
<a href> → [text](url) <img> → ![alt](src)
Lists
<ul><li> → - item <ol><li> → 1. item
Code
<code> → `inline` <pre> → ```block```
Other
<blockquote> → > quote <hr> → --- <table> → | GFM table |

What is HTML to Markdown Conversion?

HTML to Markdown conversion transforms HTML markup into the lightweight Markdown syntax created by John Gruber. Markdown is widely used on platforms like GitHub, Stack Overflow, Reddit, and static site generators (Jekyll, Hugo, Astro). Converting HTML to Markdown makes content portable, easier to read in plain text, and simpler to maintain in version control.

When to Convert HTML to Markdown

  • Blog migration: Moving content from WordPress or other CMS platforms to Markdown-based static site generators.
  • Documentation: Converting HTML docs to Markdown for GitHub wikis, README files, or documentation sites.
  • Content cleanup: Stripping HTML formatting to get clean, readable text with lightweight markup.
  • Email to Markdown: Converting rich HTML emails or newsletters into Markdown for archiving or editing.
  • API responses: Transforming HTML content from APIs into Markdown for rendering in Markdown-aware applications.

Supported HTML Elements

HTML Element Markdown Output Notes
<h1> – <h6># HeadingATX-style headings with corresponding # count
<strong>, <b>**bold**Double asterisks for bold text
<em>, <i>*italic*Single asterisks for italic text
<a href="...">[text](url)Inline link format
<img>![alt](src)Alt text toggle available
<ul>, <ol>- item / 1. itemNested lists supported
<code>`code`Inline code with backticks
<pre>```code block```Fenced code blocks
<blockquote>> quoteNested blockquotes supported
<table>GFM tableRequires GFM toggle enabled
<hr>---Horizontal rule
<del>~~strikethrough~~GFM strikethrough

Frequently Asked Questions

What is an HTML to Markdown converter?

An HTML to Markdown converter is an online tool that transforms HTML markup into clean Markdown syntax. It parses HTML tags like headings, bold, italic, links, images, lists, tables, and code blocks, and outputs the equivalent Markdown — making it easy to migrate content to Markdown-based platforms like GitHub, Jekyll, or Hugo.

How do I convert HTML to Markdown?

Paste your HTML into the input panel on the left and the Markdown output appears instantly on the right. The conversion is live — every change you make is reflected in real time. You can also toggle GitHub Flavored Markdown for tables and strikethrough support.

What HTML elements are supported?

The converter handles headings (h1–h6), bold and italic text, links, images, ordered and unordered lists, code blocks and inline code, blockquotes, tables, horizontal rules, strikethrough, and line breaks. It covers all common HTML elements used in web content.

What is GitHub Flavored Markdown (GFM)?

GitHub Flavored Markdown (GFM) is an extension of standard Markdown used on GitHub. It adds support for tables, strikethrough (~~text~~), task lists, and fenced code blocks with syntax highlighting. Enable the GFM toggle in this converter to output GFM-compatible Markdown.

Can I convert Markdown back to HTML?

Yes. Use the Reverse Mode toggle to switch the converter direction. In reverse mode, paste Markdown on the left and get HTML output on the right. This is useful for previewing how your Markdown will render as HTML.

Is my data safe when using this converter?

This converter runs entirely in your browser using JavaScript. No data is sent to any server. Your HTML and Markdown content never leaves your device, making it completely safe for converting sensitive or proprietary content.

How does this compare to Turndown or other converters?

This tool provides the same core HTML-to-Markdown conversion as libraries like Turndown, but runs entirely in the browser with a live two-panel interface. It also includes reverse mode (Markdown to HTML), GFM support, and options for preserving line breaks and image alt text — all without installing anything.

Related Tools