Free online tool

HTML to Markdown Converter

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.

HTML → Markdown
HTMLPASTE OR UPLOAD · 0 chars · 0 lines
MARKDOWNAUTO-CONVERTED · 0 chars · 0 lines
Your Markdown updates as you type. The HTML you enter is converted in your browser, not uploaded to our server.

Convert HTML to Markdown Online

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.

How to Convert HTML to Markdown

01

Paste or Upload Your HTML

Paste HTML into the left box or upload an .html file from your device. Conversion starts immediately.

02

Review the Generated Markdown

The Markdown appears on the right as you type. Check headings, lists, tables, links, and code blocks, and adjust the conversion options if needed.

03

Copy or Download the Markdown

Copy the result or download an .md file for notes, documentation, or GitHub.

HTML to Markdown Conversion Features

Convert HTML into Markdown that is easier to read, edit, copy, or download.

Markdown for GitHub

Headings, lists, task lists, and strikethrough come out as Markdown you can paste into GitHub, docs, or a CMS.

HTML Tables to Markdown

Simple HTML tables become Markdown tables. Merged cells and visual styling may need manual edits.

Links and Images

Keep clickable links and image descriptions, or choose text-only links and remove images.

Code Blocks

Keep short code snippets and longer code blocks readable in Markdown.

Clean HTML Before Conversion

Remove scripts, styles, comments, and empty elements. Optional AI cleanup also removes page clutter.

Private Conversion in Your Browser

Everything runs locally in your browser. Your HTML never leaves your device.

HTML to Markdown Examples

See HTML and Markdown side by side, then load an example into the converter to try it.

<article>
  <h1>Getting Started</h1>
  <p>Install the package, then read the <a href="https://example.com/docs">docs</a>.</p>
</article>
# Getting Started

Install the package, then read the [docs](https://example.com/docs).
<h2>Features</h2>
<ul>
  <li>Fast</li>
  <li>Private</li>
</ul>
## Features

- Fast
- Private
<ol>
  <li>Export the page</li>
  <li>Check:
    <ul><li>Links</li><li>Images</li></ul>
  </li>
</ol>
1. Export the page

2. Check:

   - Links
   - Images
<table>
  <tr><th>Name</th><th>Age</th></tr>
  <tr><td>John</td><td>32</td></tr>
</table>
| Name | Age |
| ---- | --- |
| John | 32  |
<blockquote>
  <p>Keep the source readable.</p>
</blockquote>
<pre><code class="language-javascript">const ready = true;</code></pre>
> Keep the source readable.

```javascript
const ready = true;
```
<figure>
  <img src="/images/chart.png" alt="Quarterly chart">
  <figcaption>Q4 traffic by channel</figcaption>
</figure>
![Quarterly chart](/images/chart.png)

Q4 traffic by channel
<ul><li>First<ul><li>Nested</li></ul></li><li>Second</li></ul>
- First
  - Nested
- Second
<p>See <a href="https://example.com">the guide</a>.</p><img src="/photo.png" alt="Photo">
See [the guide](https://example.com).

![Photo](/photo.png)
<ul><li><input type="checkbox" checked> Done</li><li><input type="checkbox"> Next</li></ul><p><del>Old</del> New</p>
- [x] Done
- [ ] Next

~~Old~~ New

HTML Table to Markdown: What Works?

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.

Which HTML Elements Can I Convert?

See how common HTML elements appear in Markdown. Results may vary with your HTML and settings.

HTMLMarkdownNotes
<h1># HeadingHeading
<strong>**bold**Bold text
<em>*italic*Italic text
<a>[text](url)Link
<img>![alt](src)Image reference, not the file
<ul><li>- ItemBullet list
<blockquote>> QuoteQuotation
<pre><code>Fenced codeCode block
<table>Markdown tableSimple tables only

Common HTML to Markdown Problems and Fixes

Why does my HTML table look different?

Markdown cannot keep merged table cells or the original table styling. Check any tables using rowspan, colspan, or nested content after converting.

Why are my images not displaying?

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.

Why are some HTML elements missing?

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.

Why does my Markdown contain extra spaces?

Nested HTML and whitespace can introduce extra line breaks. Remove unnecessary blank elements from your HTML and try again.

Can I convert an entire website URL?

No. Paste HTML code or upload a file. This tool cannot fetch a URL or load content that appears only after a page opens.

Can I preserve the original HTML styling?

Not exactly. Markdown keeps text and basic formatting, but not colors, page layouts, animations, or interactive controls.

What This Converter Handles

Paste HTML from an article, email, or website export. Keep the readable text and supported formatting, without the original page design.

AreaStatusDetails
Input methodsSupportedPaste HTML, use the clipboard, or upload an .html, .htm, or .txt file.
File sizeLimitedUploaded files are capped at 2 MB so conversion stays fast and responsive in the browser.
HTML structureSupportedHeadings, paragraphs, bold and italic text, lists, links, images, simple tables, quotes, and code are supported. Check complex content after converting.
Page URLsNot includedThis page converts HTML code that you provide. It does not open web pages or convert content that only appears after a page loads.
Visual stylingLimitedMarkdown keeps readable text and basic formatting, not the original page design. Colors, layouts, forms, and interactive elements may be removed or simplified.
PrivacySupportedConversion runs entirely in your browser. Your HTML is not uploaded or sent to a server.

Cleaner Markdown for AI Tools

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 page clutter

Remove navigation menus, footers, forms, hidden text, and embedded media when you only need the main content.

Make headings easier to read

Make headings easier to follow and remove extra blank lines.

Remove unnecessary page details

Keep supported links, images, lists, tables, and code while removing unnecessary page details.

Review the converted content

Check the converted text before using it with an AI assistant, especially if you need content from menus, forms, or hidden sections.

Why Convert HTML to Markdown?

Documentation

Turn existing website content or exported HTML into Markdown for your documentation.

README files

Convert HTML into Markdown for GitHub README files, release notes, or project guides.

Content migration

Move blog posts or help articles into Markdown while keeping supported headings, links, lists, and simple tables.

Static sites

Prepare Markdown content for blogs and websites that accept .md files.

AI workflows

Remove unwanted page elements before using the converted text with an AI assistant.

HTML to Markdown vs. Markdown to HTML

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 Markdown Converters

Frequently Asked Questions

How do I convert HTML to Markdown?+

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.

Can I convert HTML to Markdown online?+

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.

Does the converter support HTML tables?+

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.

Are links and images preserved?+

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.

Can I convert a web page URL to Markdown?+

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.

Why does the Markdown look different from my HTML?+

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.

What happens when I turn on Clean Markdown for AI?+

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.

Why does my HTML table look different?+

Markdown cannot keep merged table cells or the original table styling. Check tables with rowspan or colspan after converting.

Why aren't my images showing after conversion?+

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.

Does Clean Markdown for AI use artificial intelligence?+

No. It removes selected page elements automatically in your browser. It may remove menus, forms, or hidden text that you wanted to keep.

Is my HTML uploaded to a server?+

No. The conversion runs locally in your browser, so your HTML never leaves your device. Nothing is stored or sent while you type.