Text tools

Markdown to HTML

Convert CommonMark and GitHub-flavored Markdown to sanitized HTML and preview it safely.

Processed locally in your browser. Your input is not uploaded to our server.

0 characters
Markdown options
Output view

Rendered preview

Enter or load Markdown to begin

How to use Markdown to HTML

  1. Paste Markdown or choose a local Markdown or text file.
  2. Set heading, line-break, raw-HTML, link, and optional highlighting preferences.
  3. Compare sanitized source and preview, then copy or download the HTML.

Supported behavior

Markdown to HTML converts CommonMark plus GitHub-flavored tables, task lists, strikethrough, fenced code, and autolinks into sanitized markup. Source, rendered preview, and split view let you inspect both the generated HTML and its appearance. Heading IDs are on by default; hard line breaks and new-tab links are optional, while syntax highlighting is loaded only when requested. Raw HTML starts disabled. Even when raw HTML is allowed, preview sanitation remains mandatory: scripts, event handlers, iframes, forms, embedded objects, javascript URLs, and dangerous data URLs cannot execute. New-tab links receive noopener and noreferrer protection. Markdown is parsed and sanitized entirely in your browser, so drafts and selected .md, .markdown, or .txt files are never uploaded. Sanitization can remove unsupported embedded content, and Markdown dialect extensions outside CommonMark and the listed GitHub features may render as ordinary text. Always inspect generated source before embedding it in a different security context.

  • Markdown extensions outside CommonMark and the listed GitHub-flavored features are not guaranteed.
  • Sanitization intentionally removes active or dangerous HTML even when raw HTML input is enabled.

Examples

                # Release

- [x] Test
- [ ] Publish
              

Result: Sanitized HTML with an h1 titled “Release” and a two-item task list in which “Test” is checked

                Hello **world**.

<script>alert('x')</script>
              

Result: <p>Hello <strong>world</strong>.</p> (script removed from sanitized output)

Common use cases

  • Preview a README containing tables and task lists.
  • Generate sanitized article HTML from a Markdown draft.
  • Inspect how fenced code and autolinks will render before publishing.

Frequently asked questions

Can raw HTML be enabled?

Yes, but it is off by default and still passes through mandatory preview sanitization.

Are GitHub-style tables supported?

Yes, along with task lists, strikethrough, fenced code blocks, and autolinks.

Can a javascript: link execute?

No. Dangerous URL schemes and active embedded content are blocked by sanitation.

Do headings get IDs?

Yes by default, and the option can be changed when heading anchors are not wanted.