Markdown → HTML Converter
Different from the live preview tool: this one gives you the raw HTML that Markdown produces, so you can paste it into a CMS, an email template, or anywhere that wants HTML rather than a rendered view. GitHub-flavored Markdown (tables, task lists, strikethrough, autolinks) is on by default, and DOMPurify sanitization is optional so embedded HTML stays safe.
How to use
- Paste Markdown in the input.
- Switch between rendered preview and raw HTML in the output.
- Toggle GFM, soft line breaks, or sanitization as needed.
- Copy the raw HTML for your CMS / email / template.
Frequently asked questions
- How is this different from Markdown Preview?
- Markdown Preview shows you how the Markdown renders. Markdown → HTML gives you the actual HTML source as text so you can paste it into a system that needs HTML.
- Why is sanitization on by default?
- Markdown allows raw HTML, which can include scripts. DOMPurify strips dangerous tags / attributes while keeping links, formatting, and basic structure. Turn it off only if you trust the source.
- What does 'soft breaks → <br>' do?
- By default, a single newline in Markdown becomes a space. With the toggle on, every newline becomes a <br>, which matches how chat apps like Slack and Discord render Markdown.
- Which Markdown dialect?
- marked's GitHub-flavored Markdown — tables, task lists, fenced code blocks, autolinks, strikethrough. Turn GFM off for stricter CommonMark.
Related tools
Markdown Table Generator
Paste CSV, TSV, or pipe-delimited data and get a properly aligned GitHub-flavored Markdown table.
Markdown Table to CSV Converter
Convert a GitHub-flavored Markdown table into CSV, TSV or semicolon-separated rows, in your browser.
Markdown Link Extractor
Pull every link and image out of a Markdown document — inline, reference-style, autolinks — into a CSV/JSON/MD list with text, URL, and title.
Markdown → Plain Text
Strip all Markdown formatting and keep readable plain text — useful for previews, summaries, email, character counts.
CSV → HTML / Markdown / JSON Table
Convert CSV to an HTML `<table>`, a Markdown table, or a JSON array of objects — auto-detects the delimiter.
HTML → Markdown Converter
Convert HTML to clean Markdown — headings, lists, links, tables, code blocks all preserved. Useful for migrating CMS content or scraping articles.