HTML to Markdown Converter

Convert HTML to Markdown.

Headings
Bullet
Code blocks
0 words · 0 charactersNot uploaded

From web page to Markdown

Moving content from a website, CMS or rich-text editor into a docs site, wiki, README or note app? Paste the HTML and get tidy Markdown that keeps the structure:

  • headings (as # or underlined), paragraphs, bold and italic;
  • links and images with their URLs and alt text;
  • bullet and numbered lists, including nested lists;
  • tables (converted to GitHub-flavoured Markdown tables);
  • blockquotes, inline code and code blocks (fenced or indented);
  • strikethrough.

Scripts, styles and <noscript> content are dropped.

The conversion uses Turndown, a mature open-source HTML-to-Markdown library, with its GitHub-flavoured Markdown plugin, running in your browser.

Getting the HTML

In most browsers, select content on a page, copy it, and paste into a rich-text editor’s HTML view, or use View Source for a whole page. Then paste here. To get plain text instead, use HTML to Text.

Worked example

Here is what the HTML to Markdown Converter returns for its built-in example. Settings used: Headings: # ATX; Bullet: -; Code blocks: Fenced ```. Click Try an example in the tool above to load it, then change it as you like.

Input
<h1>Getting started</h1><p>Install the <strong>CLI</strong> and read the <a href="https://example.com/docs">docs</a>.</p><ul><li>Fast</li><li>Private</li></ul><table><thead><tr><th>Plan</th><th>Price</th></tr></thead><tbody><tr><td>Free</td><td>$0</td></tr></tbody></table><pre><code>npm install example</code></pre>
Output
# Getting started

Install the **CLI** and read the [docs](https://example.com/docs).

- Fast
- Private

| Plan | Price |
| --- | --- |
| Free | $0  |

```
npm install example
```

Related tools: Markdown to HTML Converter, HTML to Text Converter.

Questions

Does it convert HTML tables to Markdown?

Yes. Tables become GitHub-flavoured Markdown tables.

Can I choose * or - for bullets?

Yes. Pick the bullet marker, heading style and code block style in the options.

Last reviewed · How Textkiln tools work