Handitab

Markdown to HTML

Convert Markdown to clean, sanitized HTML code that you can copy or download, with support for tables, lists, links, and code blocks.

About Markdown to HTML

A Markdown editor with preview is a tool that shows how Markdown source will look once rendered as HTML. Text is parsed with the marked library (version 4.3), which supports CommonMark syntax plus GitHub-style tables, and the output is sanitized with DOMPurify so scripts are removed. You can switch to the generated HTML code and download it as a file. Both libraries load from a CDN on first use, so a connection is needed.

How to use Markdown to HTML

  1. Type or paste into the "Markdown" box, or press "Use example" to try it with sample data.
  2. Set "Show" if the defaults do not fit.
  3. The result appears below and updates as you type.
  4. Copy the result with the copy button, or download it as a file where that is offered.

Questions about Markdown to HTML

Which Markdown syntax is supported?

Headings, bold, italic, links, images, lists, blockquotes, inline and fenced code, horizontal rules, and GitHub-style tables and strikethrough. Footnotes, math, diagrams, and syntax highlighting are not rendered.

Why was my script or iframe removed from the output?

The HTML is passed through DOMPurify before display or export. It removes script tags, event handler attributes, and other markup that could run code, and iframes are dropped by its default settings.

Runs in your browser. Page last updated .

More developer tools

All 41 developer tools