Markdown to HTML
Markdown to HTML only — raw HTML inside the Markdown passes straight through, and nothing is sanitised. Run your own sanitiser before putting user-submitted content on a page; the preview here is sandboxed so pasted scripts cannot run.
About Markdown to HTML
Turns Markdown into HTML. GFM is fully supported: headings, lists, tables, task lists, strikethrough, fenced code, blockquotes, links and images. The preview below is sandboxed, so any script you paste will not run.
Why a dedicated tool: writing a README, drafting a post, or pasting into a CMS often means "authored in Markdown, delivered as HTML". The conversion is not hard; the details are — table alignment, task-list checkboxes, the language tag on a code fence. Hand-rolling it is where things get missed.
Raw HTML passes straight through, unsanitised. Markdown allows inline HTML and marked complies. So if the Markdown came from a user submission, the output may contain <script> — run your own sanitiser (DOMPurify, for example) before publishing. This tool is for content you wrote, not for content strangers sent you. The preview runs inside a sandboxed iframe for exactly that reason.
Two options:
- Single newline =
<br>: in original Markdown a single newline is a space; chat-style writing expects a line break instead. Leave it off for blog posts, turn it on for messages and notes. - Full HTML document: adds
<!doctype html>,<meta charset>,<meta viewport>and a small block of reading styles, so the file opens directly in a browser. Off by default, because a snippet is what you usually paste into an existing page.
The downloaded .html is always a complete document — a bare snippet would open as plain source, which is useless.
Conversion runs in the browser; nothing is uploaded.
Frequently asked questions
Are tables and task lists supported?
Yes — GFM: tables, - [x] task lists, ~~strikethrough~~ and fenced code blocks all work.
Is the output safe?
Not guaranteed. Raw HTML inside the Markdown passes through and nothing is sanitised. Sanitise before publishing anything user-submitted.
Why does a single newline do nothing?
In original Markdown a single newline is just a space. Tick "Single newline = <br>", or end the line with two spaces.
Can I save it as a web page?
Tick "Full HTML document", or just hit download — the downloaded file is always a complete document that opens in a browser.
Footnotes or math?
Not supported. marked only does GFM; footnotes and LaTeX need extra plugins this tool does not include.
Is my content uploaded?
No, conversion and preview happen in the browser.