Dual HTML & MD Editor

Type on one side. The other side follows.

A two-pane editor that converts between HTML and Markdown live, in both directions. Edit either format and the other updates as you type.

GitHub-flavored Markdown (tables, strikethrough, task lists), a sanitized rendered preview, file open/save, drag-and-drop, and conversion options — all in a single browser tab.

Free Private No sign-up Autosaves locally

User Manual

Overview

The Dual HTML & MD Editor is a bidirectional converter between HTML and Markdown. The left pane holds HTML, the right pane holds Markdown; typing in either one converts and updates the other after a short pause. Everything runs entirely in your browser — the only network traffic is loading the open-source conversion libraries from public CDNs on first visit. Your content is autosaved to your browser's localStorage and never transmitted anywhere.

Getting Started

Loading content

Saving / exporting

The Toolbar

ButtonAction
📂 OpenOpen an .html, .htm, .md, .markdown, or .txt file into the matching pane
💾 Save .htmlDownload the HTML pane as a file
💾 Save .mdDownload the Markdown pane as a file
⇄ / → / ←Cycle the sync direction: both ways, HTML → MD only, or MD → HTML only
⚙ OptionsOpen the conversion options panel
👁 PreviewToggle the rendered preview pane
🗑 ClearEmpty both panes (also clears the autosave)

The Sync Direction

By default the editors sync both ways (⇄). Clicking the arrow button locks the conversion to one direction: in mode only HTML → Markdown runs, so you can hand-polish the Markdown output without your edits being overwritten by a re-conversion — and the reverse in mode. The locked pane still autosaves while you type.

Tip: conversion is not perfectly round-trip — HTML → MD → HTML normalizes markup and drops anything Markdown can't express. Use a direction lock when you care about preserving one side exactly.

Conversion Options (⚙)

OptionEffect
Heading styleATX (## Heading) or Setext (underlined with ===/---)
Bullet markerUnordered lists use -, *, or +
Code blocksFenced (```) or indented (4 spaces)
Keep raw HTMLElements with no Markdown equivalent (div, span, iframe, video…) stay as HTML inside the Markdown instead of being unwrapped
Clean HTMLBefore converting, strips script/style/meta elements and class/id/style/data-*/on*/aria-* attributes — pasted web pages produce tidy Markdown

Options are saved in your browser and applied immediately: changing one re-converts the HTML pane on the spot.

The Preview Pane (👁)

The preview renders the HTML pane as a readable document — headings, tables, code blocks, blockquotes, images. It is sanitized with DOMPurify, so scripts or event handlers in pasted HTML never execute. The preview updates live along with the conversion.

Keyboard Shortcuts

ShortcutAction
Ctrl+OOpen a file
Ctrl+SSave the focused pane (Markdown if neither pane has focus)
Ctrl+Shift+CCopy the focused pane to the clipboard
Ctrl+EToggle the rendered preview
Ctrl+Z / Ctrl+YUndo / redo inside an editor pane
On macOS, use Cmd instead of Ctrl.

Autosave

Both panes are saved to localStorage after every conversion. When you return to the page, your last session is restored automatically. 🗑 Clear empties the panes and the autosave.

Note: autosave lives in this browser on this device. Clearing your browser data removes it — use 💾 Save to keep a real file.

Privacy

The Dual HTML & MD Editor processes everything locally in your browser. No data is transmitted to any server — not the files you open, not the content you type. All persistent state (your two panes and your options) is stored in localStorage and never leaves your device. The conversion libraries are loaded from public CDNs on first visit, which is the only network access the page makes.

Supported File Types

.html  ·  .htm  ·  .md  ·  .markdown  ·  .txt

About this tool

Technologies used:

CodeMirror 5 Turndown 7 turndown-plugin-gfm marked 12 DOMPurify 3 File API Clipboard API localStorage Vanilla JS

Built with:

Claude Fable 5

← Back to Bunka.be