Skip to main content

HTML to Markdown Converter

Convert HTML to GitHub Flavored Markdown instantly in your browser. Perfect for creators moving content between platforms.

How to use

Paste your HTML into the input area and click Convert to get GitHub Flavored Markdown instantly. Supports headings, bold, italic, links, images, lists, tables, and code blocks. Use Clear to reset, and Copy to copy the Markdown result to your clipboard.

What does an HTML to Markdown converter do?

Markdown is the plain-text format used by GitHub, GitLab, static site generators (Hugo, Jekyll, Astro), note apps like Obsidian and Notion, and most documentation tools. HTML is what web pages, CMS editors and e-mail templates produce. Converting HTML to Markdown lets you move content from a website or a WYSIWYG editor into a README, a docs site or a notes app without rewriting it by hand.

How it works

The converter reads your HTML in the browser and walks through its elements, turning each one into its Markdown equivalent. It uses the open-source Turndown library with the GitHub Flavored Markdown (GFM) plugin, so tables, strikethrough and task lists are supported as well as the basics:

HTML Markdown
<h2>Title</h2> ## Title
<strong>bold</strong> **bold**
<em>italic</em> _italic_
<a href="https://example.com">link</a> [link](https://example.com)
<ul><li>item</li></ul> - item
<pre><code>code</code></pre> a fenced code block
<table> a GFM pipe table

Your HTML is processed locally; nothing is uploaded.

Example

<h2>Release notes</h2>
<p>Version <strong>2.1</strong> adds <a href="https://example.com/docs">dark mode</a>.</p>
<ul>
  <li>Faster start-up</li>
  <li><del>Old export</del> removed</li>
</ul>

becomes

## Release notes

Version **2.1** adds [dark mode](https://example.com/docs).

-   Faster start-up
-   ~Old export~ removed

Limitations

  • Markdown has no equivalent for layout and styling, so CSS, classes, inline styles, colours and <div> structure are dropped.
  • Scripts, forms, iframes and other interactive elements are not converted.
  • Tables with merged cells (colspan, rowspan) or nested tables cannot be expressed as GFM tables and may come out simplified or as HTML.
  • The converter works on HTML you paste. It does not fetch a page from a URL.

Frequently asked questions

What is GitHub Flavored Markdown?

GitHub Flavored Markdown (GFM) is the Markdown dialect used on GitHub and widely supported elsewhere. It extends standard Markdown with tables, strikethrough (~text~), task lists (- [ ] todo) and fenced code blocks.

Can I convert a whole web page?

Yes: open the page, view or copy its HTML source, and paste it in. You will usually get better results by copying only the main content (the article), since menus, footers and scripts add noise.

Are images kept?

Yes. An <img> becomes ![alt text](image-url). The image itself is not downloaded, so the Markdown still points to the original URL.

Why is some formatting missing in the output?

Markdown only describes structure (headings, emphasis, lists, links, tables, code). Fonts, colours, alignment and spacing come from CSS and have no Markdown form, so they are left out on purpose.

Is my HTML sent to a server?

No. The conversion runs in your browser with JavaScript; the HTML you paste is not uploaded, logged or stored.