HTML to Markdown Converter
Paste HTML, get clean Markdown — GitHub-flavored tables included.
This free online HTML to Markdown converter handles headings, lists, links, tables, and code blocks. No signup, runs entirely in your browser.
Heading style
Bullet marker
Code blocks
What does an HTML to Markdown converter do?
An HTML to Markdown converter rewrites HTML markup as Markdown syntax — turning <strong> into **bold**, <h1> into # Heading, and so on. It's the reverse of a Markdown-to-HTML renderer, useful whenever you have HTML content (copied from a web page, exported from a CMS or rich text editor) and need it as clean Markdown source instead.
ATX vs Setext headings
ATX style prefixes headings with # characters (# H1, ## H2) — this is the far more common convention and supports all six heading levels. Setext style underlines the heading text with = or - characters on the next line, but only supports H1 and H2 — anything deeper falls back to ATX automatically.
GitHub-flavored Markdown support
Plain Markdown has no native table syntax — this converter adds the GitHub-flavored Markdown (GFM) extension for tables, so an HTML <table> becomes a proper pipe-delimited Markdown table. Strikethrough (<del>/<s>) and task-list checkboxes are supported the same way.
Fenced vs indented code blocks
Fenced code blocks wrap code in triple backticks (```` ``` ````), which also lets you specify a language for syntax highlighting and is the format almost every modern Markdown renderer expects. Indented code blocks use four leading spaces instead — an older convention from the original Markdown spec, still supported everywhere but with no language annotation.
Frequently asked questions
How do I convert HTML to Markdown?
Paste your HTML into the input — the converted Markdown appears automatically on the right. Adjust heading style, bullet marker, and code block style from the options panel.
Does it support tables and GitHub-flavored Markdown?
Yes — HTML tables convert to Markdown pipe tables, and strikethrough (<del>/<s>) and task list checkboxes convert correctly, using the same GitHub-flavored Markdown extensions most editors and platforms support.
What HTML elements does it handle?
Headings, paragraphs, bold/italic/strikethrough text, links, images, ordered and unordered lists, blockquotes, inline code and fenced code blocks, horizontal rules, and tables — the common set of elements that map cleanly onto Markdown syntax.
Is my content sent to a server?
No. The conversion runs locally in your browser using Turndown's client-side library — nothing you paste is ever sent anywhere.
Related tools: HTML Formatter · JSON Formatter · Diff Checker