Convert Markdown to HTML
Paste Markdown and get HTML back. Free, no signup, and nothing you paste is stored. The same conversion is available as an API call and to AI agents over MCP.
Input
Result
Fill in the input and press Run.
Your input is processed in memory and then discarded. It is not stored or logged. Even so, don't paste live passwords or keys into any online tool.
How to convert Markdown to HTML
- Paste your Markdown into the input box.
- Press Run.
- Copy the HTML or download it as a file.
This page runs the markdown to html tool. Open the tool itself for every option.
What happens in this conversion
- What is supported
- Standard Markdown (CommonMark) plus tables, strikethrough, task lists and fenced code blocks.
- A full page or a fragment
- By default you get the HTML for the content only, ready to paste into a page. Turn document on for a complete page with a readable built-in style.
- HTML inside the Markdown
- Tags typed into the Markdown are shown as text, so the result is safe to publish. If you allow HTML, scripts and other active content are still removed.
Markdown and HTML compared
| Format | What it is | Best for | Watch out for |
|---|---|---|---|
| Markdown Markdown text | Markdown is plain text with light marks for headings, lists, links and tables. GitHub, documentation sites, note apps and chat tools show it formatted, and it is the form AI models read most reliably. | Readmes, notes, documentation and text handed to an ai model. | It has no page layout: fonts, colours, columns and exact positions cannot be expressed. |
| HTML web page | HTML is the language web pages are written in: text wrapped in tags, with menus, scripts and styling around it. | Pages shown in a browser. | The readable content is buried in markup, navigation and scripts. |
Use it from code or an agent
curl -s https://setget.net/v1/tools/markdown-to-html \
-H 'Content-Type: application/json' \
-d '{"input":{"text":"# Hello\n\nThis is **bold** and this is a [link](https://example.com)."}}'
import json, urllib.request
body = {'input': {'text': '# Hello\n\nThis is **bold** and this is a [link](https://example.com).'}}
request = urllib.request.Request("https://setget.net/v1/tools/markdown-to-html", json.dumps(body).encode(),
{"Content-Type": "application/json"})
print(json.load(urllib.request.urlopen(request))["result"])
const response = await fetch("https://setget.net/v1/tools/markdown-to-html", {
method: "POST",
headers: {"Content-Type": "application/json"},
body: JSON.stringify({"input":{"text":"# Hello\n\nThis is **bold** and this is a [link](https://example.com)."}}),
});
console.log((await response.json()).result);
Tool: run_tool
Arguments:
{
"slug": "markdown-to-html",
"input": {
"text": "# Hello\n\nThis is **bold** and this is a [link](https://example.com)."
}
}
{
"input": {
"text": "# Hello\n\nThis is **bold** and this is a [link](https://example.com)."
}
}
Endpoint: POST /v1/tools/markdown-to-html. Over MCP: run_tool with slug: "markdown-to-html".
Machine-readable: input schema, Markdown. Connect an agent.
Inputs
| Name | Type | Required | What it does |
|---|---|---|---|
text |
string | yes | The Markdown to convert. |
document |
boolean | no | Wrap the result in a complete web page with a small readable style sheet, ready to save as an .html file. Default: false. |
title |
string | no | Title of the page when "document" is on. Defaults to the first heading. Default: "". |
heading_ids |
boolean | no | Give every heading an id made from its text, so links such as #my-heading work. Default: false. |
line_breaks |
boolean | no | Turn every single line break into a visible line break, as chat apps do. Default: false. |
allow_html |
boolean | no | Keep harmless HTML tags written in the Markdown, such as <sub>, <br> and <details>. Scripts, styles, frames and event handlers are always removed. When off, HTML is shown as text. Default: false. |
Questions
- Is my Markdown stored anywhere?
- No. It is converted in memory and discarded. It is not saved or logged.
- How much Markdown can I convert at once?
- Up to 200,000 characters in a single request.
- Can a script or an AI agent convert Markdown to HTML?
- Yes. Call POST https://setget.net/v1/tools/markdown-to-html with JSON, or use the run_tool tool of the SetGet MCP server with slug "markdown-to-html". The code samples on this page are ready to copy.
More conversions
Related tools
- Markdown to PDFTurn Markdown into a tidy PDF with headings, tables and coloured code, in a choice of page sizes and styles.
markdown-to-pdf - Markdown to Word (DOCX)Turn Markdown into a Word document with real headings, lists, tables and code, ready to edit.
markdown-to-docx - HTML to MarkdownTurn a saved web page into Markdown: the main content, without menus, scripts and styling.
html-to-markdown - CSV to Markdown tableTurn CSV into a Markdown table ready to paste into a README, issue or chat.
csv-to-markdown-table - HTML formatterRe-indent HTML so the nesting is easy to read, leaving pre, textarea, script and style content untouched.
html-format - Anything to MarkdownTurn almost any document into Markdown: PDF, Word, PowerPoint, Excel, HTML, EPUB, e-mail, notebooks, CSV.
any-to-markdown