1. Home
  2. Tools
  3. HTML to Markdown

Free · no sign-up · runs in your browser

HTML to Markdown Converter

Convert HTML to clean Markdown for READMEs, docs, static-site generators, Notion or AI prompts — tables, code blocks and links included.

HTML input
Markdown

In shortPaste HTML and get GitHub-flavoured Markdown instantly: headings become #, links become [text](url), lists, tables, code blocks, blockquotes and images are converted, and scripts and styles are dropped.

How to use the HTML to Markdown

  1. Paste HTML. Paste an HTML snippet or a whole page, or open an .html file.
  2. Pick a style. Choose heading style, bullet character and code-block style.
  3. Copy the Markdown. Copy it or download converted.md.

How HTML maps to Markdown

HTMLMarkdown
<h2>Title</h2>## Title
<strong>bold</strong>**bold**
<em>italic</em>*italic*
<a href="url">text</a>[text](url)
<img src="x.png" alt="A">![A](x.png)
<ul><li>item</li></ul>- item
<pre><code>…</code></pre>fenced ``` block
<table>GFM pipe table
<blockquote>> quote

What Markdown can't express

Markdown has no colours, fonts, column layouts, forms or classes, so those are dropped. Tables with merged cells (colspan/rowspan) can't be represented as pipe tables and are kept as HTML. If you need the reverse, use Markdown to HTML.

HTML to Markdown for AI and LLM prompts

Markdown uses far fewer tokens than HTML for the same content and models read it well, which is why many AI tools ask for it. Convert a page here, then paste the Markdown into your prompt or knowledge base.

Conversion uses the open-source Turndown library with its GitHub-flavoured Markdown plugin.

Private by design: this tool runs entirely in your browser. Nothing you paste or open is uploaded to a server.

Frequently asked questions

How do I convert HTML to Markdown?

Paste the HTML on this page; the Markdown appears on the right immediately. Copy it or download a .md file.

Does it convert tables?

Yes, simple tables become GitHub-flavoured Markdown pipe tables. Tables with merged cells stay as HTML, which most Markdown renderers accept.

Can I convert a whole web page?

Yes. Paste the page source; the head, scripts and styles are ignored and the body content is converted.

Which Markdown flavour is produced?

GitHub-flavoured Markdown (GFM), which works on GitHub, GitLab, most static-site generators, Obsidian and Notion.

Is it free?

Yes, free with no sign-up, and nothing is uploaded.

Related tools & guides

Updated 2026-10-22 · by the htmlonline.dev team