Migrate documentation
Retrieve HTML pages to integrate them into a repository or Markdown site generator.
Transform HTML headings, paragraphs, links, lists, quotes and code into Markdown without sending content to a server.
Convert HTML to readable Markdown to retrieve the content of a web page, email or CMS export in a format that is easy to edit, version or publish in documentation. Titles, paragraphs, lists, links, images, quotes and blocks of code are included; layout tags are removed. Everything happens in your browser.
The converter first removes <script> and <style> tags together with their contents. Blocks inside <pre>, with or without <code>, become fenced code blocks delimited by ```. Their content is decoded and preserved: <div> in a code example becomes <div> rather than being removed as a tag.
Headings <h1> through <h6> become # through ######. <strong> and <b> become **bold**, <em> and <i> become *italic*, and <code> becomes inline code. Links use [text](address), while images use , even without an alt attribute. <ul> lists use “-” bullets; <ol> lists start at 1 or the value of their start attribute. <blockquote> becomes a quotation, <hr> a horizontal rule and <br> a line break.
Containers such as div, section, article and table are removed and replaced with paragraph breaks. HTML entities (&, , é…) are decoded. Tables are not rebuilt as Markdown tables: their cell contents become text that needs manual formatting.
Enter or import the code in the “HTML Source” field.
Run the conversion to obtain the corresponding Markdown.
Check the links, images and any tables, then copy the result.
Retrieve HTML pages to integrate them into a repository or Markdown site generator.
Remove text from its layout tags while keeping titles, lists and links.
Keep the content of a page in a light, readable text file.
Input
<h2>Summary</h2><p>A <strong>text</strong> with a <a href="https://example.com">link</a>.</p><ul><li>Point A</li><li>Point B</li></ul>Result
## Summary
A **text** with a [link](https://example.com).
- Point A
- Point BThe numbering resumes at 3 thanks to the start attribute and the HTML code of the example is preserved.
Input
<ol start="3"><li>Check</li><li>Publish</li></ol><pre><code><p>Hello</p></code></pre>Result
3. Check
4. Publish
```
<p>Hello</p>
```No. The table tags are removed and the contents of the cells are kept as text: the Markdown table must be recreated by hand.
The <script> and <style> tags are deleted with their content; the class, id or style attributes disappear with the tags.
The elements are all included, but the nesting is not restored by indentation: reread the lists at several levels.
Yes. Common named entities (&, <…) and numeric entities (é, é) are decoded into characters.
No. The conversion takes place in your browser, without loading the images or links present in the code.
Related tools
Tools similar or complementary to this one.
Convert Markdown into clean HTML directly in your browser.
Write Markdown and instantly preview the rendered HTML.
Generate Lorem Ipsum placeholder text for mockups, prototypes and layout tests.