logo

Developer

Markdown ↔ HTML

Convert Markdown to HTML and HTML back to Markdown locally in your browser. Supports code fences, lists, links, images, tables, smart punctuation, and optional sanitization.

Markdown ↔ HTML Converter
Client-side onlyFast & private
Direction

Pick conversion direction. Options below adapt to the chosen mode.

Options

GitHub-style soft breaks

“Quotes”, … ellipsis, and –— dashes

Removes scripts/inline events, filters URLs

Actions
Tip

Use the selector to switch direction. Preview renders HTML output.

Input

MarkdownNo input

Output

Converted HTML will appear here…

How to Use the Markdown ↔ HTML Converter

This free, privacy-first converter runs entirely in your browser. Convert Markdown to HTML for publishing, or HTML back to Markdown for editing. Code fences, headings, lists, links, images, blockquotes, and basic tables are supported.

  1. Choose direction: Select Markdown → HTML or HTML → Markdown.
  2. Paste or upload: Use the input area or the Upload button (no data ever leaves your device).
  3. Options: Enable Smart punctuation; for Markdown → HTML you can also turn on Single newline → <br> and Sanitize HTML (recommended for embeds).
  4. Preview & export: Copy the output or download as .html / .md.

What’s supported

  • Headings # … ######, paragraphs, line breaks
  • Bold/italic/strike, inline code, code fences with language
  • Lists (ordered/unordered), blockquotes, horizontal rules
  • Links and images
  • Basic tables (HTML → Markdown pipes)

Sanitization

When enabled, scripts and inline event handlers are removed and only safe attributes/URLs are kept. External links receive rel="noopener noreferrer nofollow".