Frontend tools

HTML to Markdown converter

Paste source, choose a direction and dialect, then inspect the converted text and safe preview.

HTML to Markdown converter

HTML input

Markdown output

Conversion runs locally in this browser. Preview blocks scripts and external resources.

Conversion options

Changes detected. Updating the result…

A CMS export can leave you with HTML when your README needs Markdown. This HTML to Markdown converter keeps the document structure visible while you move text between those formats.

Use the HTML to Markdown converter to inspect the source and a static preview side by side. A Markdown to HTML converter direction is included for publishing a cleaned fragment, with no URL fetching or account. It also covers HTML to Markdown online without sending your text to a converter server.

Why use this HTML to Markdown converter

Structure before appearance

The HTML to Markdown converter carries headings, links, code and simple tables into readable syntax. It reports styling or embedded elements that cannot make the trip.

Document structure kept across HTML and Markdown

Preview without running page code

The preview shows the converted document inside a scriptless frame. Even if the source includes an image URL or script, the preview does not fetch or execute it.

Static preview with active content excluded

Three choices that affect the result

01

Choose the source format

The page starts with HTML input and a working example. Changing direction reinterprets the current input; it never replaces your source with the previous output.

02

Set the destination dialect

GFM is on by default for pipe tables and task lists. Switch to basic Markdown when your destination does not support those extensions; complex tables remain safe HTML.

03

Check before exporting

Automatic conversion waits 350 ms after edits. Turn it off to use Convert or Ctrl/Cmd+Enter; editing either option makes the old result unavailable for copy and download.

What the conversion keeps

Two directions in one place

Move HTML into Markdown for a README, or use the Markdown to HTML converter direction to produce a sanitized HTML fragment.

Links, code and GFM tables

Semantic links, fenced code blocks and simple tables survive conversion; the preview lets you check their shape before publishing.

Source and isolated preview

Switch between exact output text and a static rendering. The preview has no script permission, form submission or external resource loading.

Where structure changes

Styles do not round-trip
CSS, classes, IDs and layout wrappers have no direct Markdown equivalent. The HTML to Markdown converter keeps text and structure, not visual design.
Merged cells stay as HTML
GFM pipe tables cannot express rowspan, colspan or nested tables. The converter keeps those tables as cleaned HTML and reports the structure change.
Basic mode leaves tables as HTML
Basic Markdown has no GFM pipe table syntax. Choose GFM if your destination accepts pipe tables; otherwise review the preserved HTML.
No page fetching or files
Paste source text. A URL is not fetched, relative links are not rebased, and this page does not process a folder or ZIP.
Static preview is deliberately limited
Scripts, forms, embedded frames and unsafe URLs are removed. The preview also strips navigable links and image sources to avoid network requests.

HTML to Markdown converter questions

Does this tool convert HTML tables to Markdown tables?

Yes, simple rectangular tables become GFM pipe tables. Merged or nested tables remain cleaned HTML with a warning because pipe tables cannot represent that structure.

Can I choose between ATX and Setext heading styles?

This version uses ATX headings with # marks. It does not offer a Setext switch; the fixed style keeps heading levels visible across both directions.

How does it handle inline links and formatting?

Links become Markdown link syntax, and bold, emphasis and inline code use their usual markers. Unsafe addresses are removed rather than copied into output.

Can I convert Markdown back to HTML?

Yes. Change direction to Markdown → HTML, then paste Markdown or load that direction’s example. The result is a sanitized HTML fragment, not a complete page template.

Can I paste a whole web page source?

You can paste HTML source, but navigation and footer content may appear in the result. This tool does not extract the main article or fetch a page by URL.

Need a different case covered?

Use the HTML to Markdown converter

Use the HTML to Markdown converter for a single document fragment, then inspect any warning before sharing the result.

Keep this page handy when you need Markdown to HTML, HTML table to Markdown, or a quick Markdown preview.