HTML to Markdown

Paste HTML source or open an .html file — the converter turns it into clean Markdown: headings become # lines, links become [text](url), tables become pipe tables, code becomes fenced blocks. The conversion runs entirely in this tab; nothing is uploaded.

What converts, element by element

HTML elementMarkdown output
<h1> to <h6># to ###### (ATX headings)
<p>Paragraph text
<strong>, <b>**bold text**
<em>, <i>*italic text*
<a href="...">[link text](url) — bracket + parenthesis
<img src="...">![alt text](src) — exclamation reference
<table>Pipe table: | A | B | with separator row
<pre><code>Fenced code block: triple backtick fences
<ul><li>- item
<ol><li>1. item
<blockquote>> quoted text
<hr>---

Known limits, stated plainly

The reverse direction exists too

This page converts HTML → Markdown. If you need the opposite — Markdown → HTML — that's a different converter on the Markdown to HTML page. The two share the same zero-upload design but solve different problems: this one reads an HTML file and gives you editable Markdown text; that one reads Markdown and gives you a standalone HTML page for sharing.

Convert HTML to MD: paste or open a file

Whether you say "convert html to markdown" or "convert html to md" — same job, same page. Paste the HTML source or open a file; the output is clean Markdown text.

Two input routes

  1. Open an .html file — click Import HTML → MD and pick a file from your device. The converted Markdown fills the paste box, rendered and ready.
  2. Paste HTML source — copy HTML from any page (view-source, an email, a CMS export), paste it here, and the conversion runs the same way.

After conversion, the Markdown is editable — adjust it, then export as PDF, Word, HTML or PNG using the toolbar above.

FAQ

How do I convert HTML to Markdown for free?

Open this page, click Import HTML → MD and pick your .html file, or paste HTML source directly. The converter runs in your browser and outputs clean Markdown text — free, no account, no limits.

Does the converted Markdown keep tables?

Yes — HTML tables convert to Markdown pipe tables with proper column separators. Nested tables flatten to text because Markdown has no nested table syntax.

Does it work without uploading my file?

Yes — the converter runs entirely by JavaScript inside this tab. Your HTML file and the generated Markdown both stay on your device; no server sees either.

Do links and images survive the conversion?

Links become Markdown bracket-and-parenthesis syntax: [text](url). Images become ![alt](src) references. The image itself is not embedded in the .md file.

What happens to CSS styling?

Inline styles (colors, fonts, alignment) are discarded — Markdown has no style syntax. The content structure (headings, lists, tables, code) is preserved; the visual styling is not.

Can I convert in the opposite direction?

Yes — the Markdown to HTML page handles that direction: paste Markdown, export a standalone HTML file. Same zero-upload design, opposite conversion.

Opposite direction: Convert Markdown to HTML · Markdown to Word · Markdown to PDF

MD File Viewer home · About