HTML to Markdown converter
Useful for moving an article from a web page or visual editor into a README or any platform that uses Markdown.
Loading the tool…
Processing and privacy: The result is calculated inside your browser and your data is not sent to any server.
How to use it
- Enter html code.
- The result appears straight away and updates as you edit.
- Copy the result, or copy a link that keeps the same values to share it.
How it is calculated
Supported mappings: <h1>-<h6> to #, <strong>/<b> to **, <em>/<i> to *, <code> to `, <a> to [text](url), <img> to , <li> to - or 1., <blockquote> to >, <pre> to ``` fences and <br> to a trailing \.
Example
Result: Result: ## Return policy You can return items within **14 days**. Read the [full terms](https://example.com/returns). 1. Open your order 2. Choose the item.
<h2>Return policy</h2> <p>You can return items within <strong>14 days</strong>. Read the <a href="https://example.com/returns">full terms</a>.</p> <ol><li>Open your order</li><li>Choose the item</li></ol>
## Return policy You can return items within **14 days**. Read the [full terms](https://example.com/returns). 1. Open your order 2. Choose the item
Limits and caveats
- Tables, nested lists and nested blockquotes are not supported.
- Characters like * and _ in the original text are not escaped and may be read as formatting.
Questions about this tool
What happens to unsupported tags like span and div?
The tag is dropped and its text kept, and a div becomes a line break.
How is <br> written?
As a backslash at the end of the line, the CommonMark hard line break.
Does it keep ordered list numbering?
Yes, and it honours the start attribute, so start="5" numbers from 5.
