iLoveMD
100% in your browser

Convert HTML to Markdown

Turn HTML into clean Markdown, entirely in your browser. Styling and scripts are stripped, the structure stays.

  • Always free
  • No uploads
  • No sign-up
  • No tracking

← All conversion tools

Drop an HTML file here or click to upload .html · .htm
No files selected

HTML Input

Markdown Preview

Export Your Results

HTML to Markdown Docs

iLoveMD strips an HTML snippet or full document down to clean structural Markdown, removing styling, scripts, and presentational markup while preserving the structure that maps to Markdown equivalents.

What converts

The structural HTML tags map to Markdown 1:1:

  • <h1><h6>#######
  • <strong>/<b>, <em>/<i>, <del>/<s>**, *, ~~
  • <ul>, <ol>, <li> with arbitrary nesting
  • <table>, <thead>, <tbody>, <tr>, <th>, <td>
  • <a href>[text](url) (scheme allowlist: http/https/mailto)
  • <img src alt>![alt](src)
  • <blockquote>, <pre>, <code>, <hr>

What gets stripped

Everything that is purely presentational or executable:

  • <script>, <style>, <link>, <meta> — Markdown has no analog and they're security risks anyway.
  • Inline style="..." and class-based styling — Markdown is structural, not visual.
  • <div> / <span> wrappers — flattened.
  • <form>, <input>, <button> — interactive, no Markdown equivalent.
  • <iframe>, <object>, <embed> — embedded content, dropped.

Privacy

HTML parsing happens in your browser via DOM APIs. No network call. Once the page has loaded, the converter works offline.

How to convert HTML to Markdown

1

Paste or drop your HTML

Paste an HTML snippet into the editor, or drop a .html file onto the upload strip.

2

We convert it in your browser

iLoveMD strips styling and scripts and maps the structure to Markdown locally. Nothing is uploaded.

3

Copy or download the Markdown

Copy the Markdown to your clipboard or download it as a .md file.

Frequently asked questions

Does my HTML get uploaded anywhere?

No. The conversion runs entirely in your browser. Your HTML never leaves your device.

What happens to inline styles and scripts?

They are stripped. Markdown is a structural format, so styling, scripts, and presentational markup are removed, leaving clean text and structure.

Are tables and links preserved?

Yes. Headings, lists, tables, links, images, code blocks, and blockquotes map to their Markdown equivalents.

Does it work offline?

Once the page has loaded, yes. Conversions run locally without an internet connection.

Can I convert Markdown back into HTML?

Yes. Use the Markdown to HTML tool to render Markdown as HTML.