katlab tools/html-to-md

HTML Markdown Converter

Paste HTML on the left to get clean Markdown on the right — or type Markdown on the right to get HTML. GitHub-flavored tables, strikethrough and task lists supported.

Everything runs locally in your browser. Nothing is sent to a server.
HTML
Markdown

How to convert HTML to Markdown

  1. Paste your HTML into the left pane — clean Markdown appears on the right instantly.
  2. Adjust heading style, bullet marker or code-block style if you like — the Markdown updates live.
  3. Use copy or download above the Markdown pane to take the result.

Markdown back to HTML

Type or paste Markdown into the right pane and the HTML source appears on the left. GitHub-flavored Markdown is parsed, so pipe tables, ~~strikethrough~~, fenced code and task lists all render to their HTML equivalents. The left pane shows HTML source as text — nothing is executed as a live page.

What survives the conversion

Headings, paragraphs, bold/italic, links, images, blockquotes, ordered and unordered lists, inline and block code, horizontal rules and tables all map cleanly between the two formats. Markdown has no way to express <script>, <style>, arbitrary attributes or nested layout <div>s, so those are dropped or unwrapped to their text content when going HTML → Markdown.

Is anything uploaded?

No. Both directions run entirely in this page using self-hosted libraries. Paste internal documentation or draft content freely — it never leaves your device, and the tool works offline once loaded.

Which libraries does it use?

HTML → Markdown uses Turndown with its GitHub-flavored-Markdown plugin. Markdown → HTML uses marked. The HTML is parsed with the browser's own DOM parser, which does not run scripts or load remote resources.