Markdown ↔ HTML Converter
Convert Markdown to HTML or HTML back to Markdown, with sanitisation in both directions.
HTML
🔒 Conversion happens entirely in your browser.
</>Use this tool programmaticallycurl · JavaScript · MCP
Same tool, callable from any HTTP client or from Claude (via MCP). Anonymous: 100 req/day per IP. Sign up for 1,000 req/day.
curl
curl https://api.b-e-a-d.com/tools/markdown-html-converter/run \
-H "Content-Type: application/json" \
-d '{
"direction": "md2html",
"input": "your input here",
"gfm": true,
"breaks": false
}'JavaScript (fetch)
const res = await fetch("https://api.b-e-a-d.com/tools/markdown-html-converter/run", {
method: "POST",
headers: { "Content-Type": "application/json" },
body: JSON.stringify({
"direction": "md2html",
"input": "your input here",
"gfm": true,
"breaks": false
}),
});
const data = await res.json();
console.log(data.result);MCP (Claude Desktop / Claude Code)
# In Claude Desktop / Claude Code, add to your MCP config:
{
"mcpServers": {
"bead": {
"command": "npx",
"args": ["-y", "mcp-remote", "https://mcp.b-e-a-d.com"]
}
}
}
# Then ask Claude to call:
mcp__bead__bead_markdown_html_converterFull reference: developer docs · OpenAPI spec
About this tool
Powered by marked for MD → HTML and turndown for HTML → MD. HTML output is run through DOMPurify, so it's safe to paste untrusted input.
For an interactive previewer with split-pane editing, see the Markdown Previewer.
You might also like
- Batch Rename FilesRename many files at once with find/replace, prefix/suffix, sequence numbers, and casing — download as a ZIP.
- CSV CleanerDetect the delimiter, trim cells, drop empty rows, and normalize messy CSVs into something usable.
- Line Endings ConverterDetect and convert between CRLF (Windows), LF (Unix), and CR (classic Mac) line endings.
- HTML Table GeneratorPaste CSV or TSV and get a clean HTML, Tailwind-styled HTML, or Markdown table.