md2 converter · Runs in your browser

Markdown to HTML

A complete HTML page in your theme, sanitized, that works on its own in any browser.

Open the studio

How it works

  1. Write or paste Markdown in the studio, or send it from a terminal or your agent.
  2. The md2 engine reads the document once and detects each paragraph's direction.
  3. A HTML file is built and downloads right away.

When to use it

  • Publish a document on a site or blog
  • Preview before printing
  • Email a report as a single file

Right-to-left Arabic

dir and lang are set on the page and on every paragraph, so browsers lay it out correctly without extra CSS.

Try it now

curl
curl -X POST https://md2.dev/v1/convert \
  -H "Content-Type: application/json" \
  -d '{"markdown":"# Report\n\nHello from md2","format":"html"}' \
  -o document.html
MCP tool
{
  "tool": "convert",
  "arguments": {
    "markdown": "# Report\n\nHello from md2",
    "format": "html"
  }
}

Common questions

Is the HTML safe?
Yes, it is sanitized: no scripts, no event handlers, no javascript: links.
Does it need the internet?
Fonts load from md2; text and styles work without them.
Can I customise the look?
Pick a theme, or send custom CSS through the API.