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.
Pick conversion direction. Options below adapt to the chosen mode.
GitHub-style soft breaks
“Quotes”, … ellipsis, and –— dashes
Removes scripts/inline events, filters URLs
Use the selector to switch direction. Preview renders HTML output.
Input
MarkdownNo inputOutput
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.
- Choose direction: Select Markdown → HTML or HTML → Markdown.
- Paste or upload: Use the input area or the Upload button (no data ever leaves your device).
- Options: Enable Smart punctuation; for Markdown → HTML you can also turn on Single newline → <br> and Sanitize HTML (recommended for embeds).
- 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"
.