Markdown → HTML Converter
Text
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
URL Slug Generator
Turn any text into a clean URL slug — strip accents, choose a separator, set a max length.
Markdown Table Generator
Paste CSV, TSV, or pipe-delimited data and get a properly aligned GitHub-flavored Markdown table.
Text Diff Viewer
Compare two pieces of text and see line-by-line or word-by-word additions and removals.
Lorem Ipsum Generator
Generate placeholder text by paragraphs, sentences, or words.
Case Converter
Convert text between UPPER, lower, Title, camelCase, snake_case and more.
Character & Word Counter
Count characters, words, sentences, lines, and bytes in real time.