Paste or Upload Your HTML
Paste HTML into the left box or upload an .html file from your device. Conversion starts immediately.
Free online tool
Paste HTML or upload an HTML file to turn headings, links, images, and supported tables into Markdown. Copy or download the result, free and private in your browser.
THE CONVERTER
HTML to Markdown conversion turns headings, paragraphs, lists, links, images, and other supported HTML elements into editable Markdown. Paste HTML code into the editor, or upload an .html file, and the converted Markdown appears instantly. Headings, lists, links, images, simple tables, blockquotes, and code blocks are supported, though complex layouts may need review.
The conversion runs in your browser, so the HTML you paste or upload is not sent to our server. Choose how headings, lists, links, and images are handled, then copy or download the result as a .md file. From there you can export an editable draft with Markdown to Word or a shareable document with Markdown to PDF.
THREE SHORT STEPS
Paste HTML into the left box or upload an .html file from your device. Conversion starts immediately.
The Markdown appears on the right as you type. Check headings, lists, tables, links, and code blocks, and adjust the conversion options if needed.
Copy the result or download an .md file for notes, documentation, or GitHub.
EVERYTHING INCLUDED
Convert HTML into Markdown that is easier to read, edit, copy, or download.
Headings, lists, task lists, and strikethrough come out as Markdown you can paste into GitHub, docs, or a CMS.
Simple HTML tables become Markdown tables. Merged cells and visual styling may need manual edits.
Keep clickable links and image descriptions, or choose text-only links and remove images.
Keep short code snippets and longer code blocks readable in Markdown.
Remove scripts, styles, comments, and empty elements. Optional AI cleanup also removes page clutter.
Everything runs locally in your browser. Your HTML never leaves your device.
BEFORE AND AFTER
See HTML and Markdown side by side, then load an example into the converter to try it.
HTML
<article>
<h1>Getting Started</h1>
<p>Install the package, then read the <a href="https://example.com/docs">docs</a>.</p>
</article>MARKDOWN OUTPUT
# Getting Started
Install the package, then read the [docs](https://example.com/docs).HTML
<h2>Features</h2>
<ul>
<li>Fast</li>
<li>Private</li>
</ul>MARKDOWN OUTPUT
## Features
- Fast
- PrivateHTML
<ol>
<li>Export the page</li>
<li>Check:
<ul><li>Links</li><li>Images</li></ul>
</li>
</ol>MARKDOWN OUTPUT
1. Export the page
2. Check:
- Links
- ImagesHTML
<table>
<tr><th>Name</th><th>Age</th></tr>
<tr><td>John</td><td>32</td></tr>
</table>MARKDOWN OUTPUT
| Name | Age |
| ---- | --- |
| John | 32 |HTML
<blockquote>
<p>Keep the source readable.</p>
</blockquote>
<pre><code class="language-javascript">const ready = true;</code></pre>MARKDOWN OUTPUT
> Keep the source readable.
```javascript
const ready = true;
```HTML
<figure>
<img src="/images/chart.png" alt="Quarterly chart">
<figcaption>Q4 traffic by channel</figcaption>
</figure>MARKDOWN OUTPUT

Q4 traffic by channelHTML
<ul><li>First<ul><li>Nested</li></ul></li><li>Second</li></ul>MARKDOWN OUTPUT
- First
- Nested
- SecondHTML
<p>See <a href="https://example.com">the guide</a>.</p><img src="/photo.png" alt="Photo">MARKDOWN OUTPUT
See [the guide](https://example.com).
HTML
<ul><li><input type="checkbox" checked> Done</li><li><input type="checkbox"> Next</li></ul><p><del>Old</del> New</p>MARKDOWN OUTPUT
- [x] Done
- [ ] Next
~~Old~~ NewTABLE CONVERSION
Simple tables can be converted into Markdown tables. Tables with cells that span several rows or columns, such as rowspan and colspan cannot keep the same layout in Markdown.
Table colors, borders, and other visual styling are not preserved. Use the Markdown Table Formatter to tidy column spacing or the Markdown Table Generator to edit table cells after converting.
CONVERSION GUIDE
See how common HTML elements appear in Markdown. Results may vary with your HTML and settings.
| HTML | Markdown | Notes |
|---|---|---|
<h1> | # Heading | Heading |
<strong> | **bold** | Bold text |
<em> | *italic* | Italic text |
<a> | [text](url) | Link |
<img> |  | Image reference, not the file |
<ul><li> | - Item | Bullet list |
<blockquote> | > Quote | Quotation |
<pre><code> | Fenced code | Code block |
<table> | Markdown table | Simple tables only |
TROUBLESHOOTING
Markdown cannot keep merged table cells or the original table styling. Check any tables using rowspan, colspan, or nested content after converting.
The converter keeps links to images, but does not copy the image files. Image addresses such as /images/photo.png may not work on another website. Use an accessible image URL.
Scripts, styles, comments, and empty elements are removed by default. Clean Markdown for AI can also remove navigation, forms, and hidden content. Review your cleanup settings.
Nested HTML and whitespace can introduce extra line breaks. Remove unnecessary blank elements from your HTML and try again.
No. Paste HTML code or upload a file. This tool cannot fetch a URL or load content that appears only after a page opens.
Not exactly. Markdown keeps text and basic formatting, but not colors, page layouts, animations, or interactive controls.
SUPPORT AND LIMITS
Paste HTML from an article, email, or website export. Keep the readable text and supported formatting, without the original page design.
| Area | Status | Details |
|---|---|---|
| Input methods | Supported | Paste HTML, use the clipboard, or upload an .html, .htm, or .txt file. |
| File size | Limited | Uploaded files are capped at 2 MB so conversion stays fast and responsive in the browser. |
| HTML structure | Supported | Headings, paragraphs, bold and italic text, lists, links, images, simple tables, quotes, and code are supported. Check complex content after converting. |
| Page URLs | Not included | This page converts HTML code that you provide. It does not open web pages or convert content that only appears after a page loads. |
| Visual styling | Limited | Markdown keeps readable text and basic formatting, not the original page design. Colors, layouts, forms, and interactive elements may be removed or simplified. |
| Privacy | Supported | Conversion runs entirely in your browser. Your HTML is not uploaded or sent to a server. |
AI CLEANUP
Clean Markdown for AI removes common page clutter and simplifies headings. No AI model is used. This option can remove useful content, so review the result.
Remove navigation menus, footers, forms, hidden text, and embedded media when you only need the main content.
Make headings easier to follow and remove extra blank lines.
Keep supported links, images, lists, tables, and code while removing unnecessary page details.
Check the converted text before using it with an AI assistant, especially if you need content from menus, forms, or hidden sections.
COMMON USES
Turn existing website content or exported HTML into Markdown for your documentation.
Convert HTML into Markdown for GitHub README files, release notes, or project guides.
Move blog posts or help articles into Markdown while keeping supported headings, links, lists, and simple tables.
Prepare Markdown content for blogs and websites that accept .md files.
Remove unwanted page elements before using the converted text with an AI assistant.
REVERSE CONVERSION
Use this converter when you have HTML and want Markdown for notes, GitHub, or documentation. Have Markdown and need HTML instead? Try our Markdown to HTML Converter.
Neither converter keeps every part of a web page's appearance. Check tables and images after converting.
MORE CONVERTERS
COMMON QUESTIONS
Paste your HTML into the left pane or upload an .html file. The converter turns it into Markdown as you type, preserving headings, lists, tables, links, images, and code blocks. Copy the result or download it as an .md file.
Yes. This is a free online converter that runs entirely in your browser. There is nothing to install and no account or signup is required.
Simple HTML tables can become Markdown tables. Merged cells and complex layouts may need manual changes. You can turn table conversion off in the options.
Yes. Links become Markdown [text](url) references and images keep their alt text. The options let you keep text only or remove images when you want a cleaner document.
Not on this page. The HTML to Markdown converter works with HTML code that you paste or upload. It does not open URLs, sign in to websites, or convert content that only appears after a page loads.
Markdown represents document structure, not every visual detail from a web page. Layout, colors, scripts, forms, embedded widgets, and some custom components may be removed or simplified while the readable content is kept.
It removes menus, forms, hidden content, and extra blank lines. It also tidies headings. The cleanup does not use an AI model, and it may remove useful information.
Markdown cannot keep merged table cells or the original table styling. Check tables with rowspan or colspan after converting.
The converter keeps image links but does not copy the image files. Images using addresses such as /photo.png may not show on another website.
No. It removes selected page elements automatically in your browser. It may remove menus, forms, or hidden text that you wanted to keep.
No. The conversion runs locally in your browser, so your HTML never leaves your device. Nothing is stored or sent while you type.