Free HTML to Markdown Converter
Convert HTML code to clean Markdown. Handles headings, paragraphs, lists, links, bold, italic and code blocks. Free, with no sign-up required — everything happens right in your browser, so nothing you enter is sent to a server.
🔄 HTML to Markdown Converter
How the HTML to Markdown Converter Works
Paste HTML and press Convert. The tool applies a series of text replacements: headings (h1 to h6) become hash marks, strong and b become double asterisks, em and i become single asterisks, links and images use the bracket syntax, list items become dash bullets, paragraphs are separated by blank lines, blockquotes get an angle bracket, horizontal rules become dashes and inline code gets backticks. Common HTML entities such as the ampersand are turned back into characters.
This is a lightweight converter, not a full HTML parser. Tags it does not recognise are removed and their text is kept, and CSS styles and attributes are dropped. It works best on simple, single-line elements. Ordered lists come out as dash bullets, nested lists are not indented, tables lose their structure, and elements spread over several lines may be left unconverted, so review the output and tidy it by hand.
Practical Use Cases
- Move a simple blog post or snippet from HTML into a Markdown-based site, README or note app.
- Clean up copied web content before adding it to documentation.
- Turn a short HTML email or text block into portable Markdown.
- Learn how common HTML elements map to Markdown syntax.
Tips for Best Results
- Paste only the article or content area you want to convert, not the whole page. Navigation, scripts and styling cannot be represented in Markdown.
- Put each element on its own line before converting. The converter works best on single-line tags and can miss tags that span several lines.
- Rebuild tables and numbered lists by hand after converting, since these are the two structures that this lightweight converter does not carry over.