Markdown Converter
Markdown Converter supports bidirectional conversion between Markdown and HTML with live preview, making it useful for docs, blog posts, rich email, and content migration.
Input
Character
0 / 500,000
Converted result will appear here…
Input
Character
0 / 500,000
Converted result will appear here…
Quick Start
Common Scenarios
Blog/Docs preview
quickly check Markdown rendering and colors
Email delivery
paste exported HTML into the email body (prefer inline styles)
Rich text → Markdown
clean webpage/CMS rich text into version‑controlled Markdown
Tech docs
render formulas/diagrams and export in one step
Editor migration
reconcile differences across Markdown flavors
Wiki/Knowledge base
convert HTML pages to Markdown for import
API changelog
turn HTML/descriptions into Markdown for review/PR
Conversion Parameters & Rendering
Usage Advice
Limitations & Compatibility
Privacy & Security
FAQ
Identify the target flavor (CommonMark/GFM/custom). Avoid raw HTML and private extensions. Use standard line breaks (blank lines or two trailing spaces). Reduce to a minimal example, verify on the target platform, then expand.
This tool doesn’t execute <script>, but it also doesn’t auto‑sanitize. Sanitize on the server/publish pipeline with a whitelist library (e.g., DOMPurify), disallow on* handlers and dangerous URI schemes, and enforce CSP for external/inline scripts.
Prefer portable semantics: convert nested tables/lists into pipe tables and flatter lists; paste as plain text to strip span/style/class before converting; isolate a minimal case and adjust the source.
Syntax: KaTeX $$…$$ or inline $…$; Mermaid fenced as ```mermaid. Large inputs may degrade (show source/disable highlighting). Reduce density, convert in parts, and use minimal examples to pinpoint syntax issues. Recovery: KaTeX can be recovered from rendered HTML; Mermaid recovery only works for diagrams generated by this tool with embedded source.