Convert HTML to GitHub Flavored Markdown: headings, links, lists, tables, task lists and code with its language
Paste HTML from a page, a CMS or an email and get tidy Markdown for a README, docs or notes. Tables, task lists and code blocks come through.
How to use it
Paste HTML or open an .html file. Read the Markdown as it is written. Copy it or download it as converted.md. Under Options: underlined or # headings, the bullet, rule, emphasis and strong markers, fenced or indented code, the fence, and inline or reference links.
Examples
A table and a list
Input
<ul><li>Fast</li><li>Private</li></ul><table><tr><th>Key</th><th>Value</th></tr><tr><td>region</td><td>eu</td></tr></table>
Result
- Fast - Private | Key | Value | | ------ | ----- | | region | eu |
Code keeps its language
Input
<pre><code class="language-python">print("hi")</code></pre>Result
```python
print("hi")
```How HTML becomes Markdown
Questions
- What happens to scripts, styles and comments?
They leave nothing in the Markdown. Elements Markdown has no form for, like div and span, give their text without the tag. - Which Markdown does it write?
GitHub Flavored Markdown: # headings, - for lists, * for emphasis, ``` fences for code, and GitHub tables. It reads back the same on GitHub and in most editors. - Can I match my project’s Markdown style?
Yes, under Options. Headings can be underlined (=== and ---) instead of #; this works for h1 and h2 only, so h3 to h6 keep #. Lists can use -, * or +, rules ---, *** or ___, emphasis and strong * or _. Code can be fenced with ``` or ~~~, or indented four spaces; indented code still gets a fence when it names its language, since an indented block can’t carry one. Reference links write [text][1] in the text and list each address once at the end. Every choice reads back to the same page. - Is my text uploaded?
No. Everything runs in your browser, so your text stays on your device. Nothing you paste is uploaded unless you share a result, which is locked with your password first. That matters for drafts, internal docs and notes.