Markdown in, clean HTML out
Markdown is wonderful to write in and still needs to become HTML before a browser can show it. This converter uses the marked parser with GitHub-flavoured extensions, then runs every result through DOMPurify so nothing executable sneaks into the output. The typical use cases: drafting a blog post, writing README content for a site builder that only accepts HTML, or turning meeting notes into a shareable page.
What is supported
- Headings, paragraphs, bold, italic, strikethrough and inline code
- Ordered, unordered and nested lists, including GFM task lists
- Fenced code blocks with language hints, blockquotes and horizontal rules
- Links, autolinks, images and reference-style links
- GFM tables with alignment, footnotes-free but predictable
Copy the snippet or export a whole page
Copy HTML gives you the converted fragment for pasting into a CMS, an email template or a component. Download .html wraps that fragment in a complete document with a small, readable stylesheet — headings, tables, code blocks and a dark-mode colour scheme are all handled, so the downloaded file looks presentable the moment you open it.
About the sanitising step
Raw HTML inside Markdown is a classic XSS vector: paste a snippet from an untrusted source and it
can carry a <script> tag. Output here is stripped of scripts, event-handler
attributes and inline styles by default. If you genuinely need embedded HTML (a video iframe, for
example), enable “Keep embedded HTML” — scripts and on* handlers are still removed.
Compatibility notes
The generated HTML is plain, standards-compliant markup with no framework classes. That means it
drops cleanly into WordPress (use a Custom HTML block), Ghost, Hugo, Jekyll, Astro, Next.js or a
plain .html file. Code blocks come out as
<pre><code class="language-js">, which is exactly the shape Prism,
highlight.js and Shiki expect if you want syntax colouring later.
Privacy
Your draft never touches a server. Parsing, sanitising and export all run locally, so unpublished articles, internal documentation and confidential notes stay on your machine. If you also format code, the Code Prettifier works the same way.