Skip to content

HTML and Markdown converter

ConvertExperimentalLimited support. Verify anything critical.

HTML and Markdown conversion moves content between explicit document markup and a compact plain-text authoring syntax. In the HTML-to-Markdown direction, executable elements are removed before Turndown creates headings, lists, links, emphasis, and fenced code. In the reverse direction, Marked parses the Markdown and DOMPurify sanitizes the resulting preview. Both transformations run locally and expose the generated source for copying or download rather than silently publishing it.

Skip to the tool

This tool processes the values or files you choose on your device. They are not uploaded.

Output

Limits

  • Input is limited to 1 MB
  • complex styling and layout are intentionally discarded.

Warnings

  • Conversion is semantic rather than pixel-perfect; review tables
  • nested lists
  • and custom HTML.

Steps

Choose a direction

HTML to Markdown for authoring cleanup, or Markdown to HTML for a sanitized preview.

Paste the source

Drop HTML or Markdown up to 1 MB. Scripts and unsafe markup are stripped on the way through.

Run and inspect the preview

Check headings, lists, links, and tables, then copy or download the generated source.

How to use HTML and Markdown converter

Deterministic conversion

The converter uses deterministic parsers, not an AI service. Example: <h2>Local report</h2> becomes a ## Local report Markdown heading.

Inspect before reusing

Copy the source only after checking heading levels, links, code fences, tables, and nested lists in the preview or destination renderer.

How it works

  1. Enter what you haveType or pick your HTML, Markdown. Nothing is submitted anywhere.
  2. It runs in this tabThe calculation happens on your device, using your browser's own data.
  3. Take the resultRead the Markdown, sanitized HTML, live preview, then copy or download.

Worked example

Given: <h2>Local report</h2><p><strong>Private</strong> data stays in this tab.</p>

Result: ## Local report **Private** data stays in this tab.

Reuses the bundled, locally executed Markdown conversion and sanitization stack.

Basis
ported-mit
Licence
MIT
Last reviewed

Frequently asked questions

Why are styles removed?

Markdown represents document meaning rather than arbitrary visual CSS, so unsafe or non-semantic styling is intentionally not preserved.

Will nested lists and tables survive round-trips?

Often yes for simple structures, but complex nesting and custom HTML need a visual check in the destination renderer.

Navigation

Type to search…

↑↓ navigate↵ selectEsc close