Skip to content
Sealpaste

Delete all recent work?

This removes the 0 items saved in this browser. Your settings stay.

Stop saving recent work?

New work won't be saved in this browser. The 0 items already saved can stay or go.

HTML to Markdown Converter

HTML

Paste HTML, or

CtrlV paste · Ctrl↵ run now

Markdown
Ready
Ln 1, Col 1
Runs in your browser. Nothing you paste is uploaded unless you share it.

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

  1. Paste HTML or open an .html file.
  2. Read the Markdown as it is written.
  3. Copy it or download it as converted.md.
  4. 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

Headings, paragraphs, bold, italic, links, images, lists, block quotes and code become their Markdown forms. A code block’s language class (language-js) becomes the name after its ```.

Tables become GitHub tables. Checkboxes in list items become task list items, and del or s becomes ~~struck~~.

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.

Related tools