About the HTML to Markdown
Convert web pages and HTML snippets into clean Markdown for README files, documentation, wikis and static site generators. Scripts and styles are removed.
Key features
- Headings, paragraphs, bold and italics
- Links and images
- Bulleted and numbered lists, including nested ones
- Fenced or indented code blocks
- Simple tables become Markdown tables
- Scripts and styles removed
Convert HTML to clean Markdown
Moving content from a website, CMS or rich-text editor into a README, docs site, wiki or static blog? Paste the HTML and get tidy Markdown you can edit as plain text.
Example
<h2>Install</h2>
<p>Run <code>npm install</code>, then see the <a href="/docs">docs</a>.</p>
<ul><li>Fast</li><li>Free</li></ul>
becomes
## Install
Run `npm install`, then see the [docs](/docs).
- Fast
- Free
Options
| Option | Choices |
|---|---|
| Headings | # ATX style, or underlined (Setext) for h1 and h2 |
| Bullets | -, * or + |
| Code blocks | Fenced (```) or indented |
Related tools
Markdown to HTML, HTML to text, and HTML formatter.
How to use the HTML to Markdown
- Paste your code into the input box, upload a file, or click Sample to try it out.
- Choose the options you want, such as indentation, line width or dialect.
- The result appears instantly in the output panel. Syntax errors are shown with their line and column.
- Click Copy to copy the result, or Download to save it as a file.