Markdown to HTML Converter
Turn Markdown into an HTML fragment.
About this tool
The preview is parsed and stripped of scripts, event handlers, and similar active markup.
The result is source you can copy. It is not a hosted page.
How to use it
- Open this page and provide the input it asks for.
- Set the options that are visible, then use Convert to HTML.
- Read the result in the panel. Copy it or download it when a file is offered. The input stays in this browser.
Limitations
- The result is source you can copy. It is not a hosted page.
Marked output with active nodes removed
The parser emits HTML, then a cleanup pass edits the tree
marked produces HTML, then a sanitizer strips active nodes. The paste is parsed with marked, and the resulting HTML is loaded with a DOM parser as an HTML document. script, iframe, object, embed, link, and style elements are removed. On every remaining element, an attribute whose name starts with “on” is removed, and srcdoc is removed. The page returns the body’s inner HTML. The status line says the preview is the sanitized HTML source, not a live page. The result is text you can read or copy. It is not a navigation to that HTML as a site.
Markdown structure becomes HTML structure where marked has a rule. A heading becomes a heading element. A list becomes a list. A fenced code block becomes code markup. A paragraph break becomes paragraphs. Those mappings are marked’s, not a guarantee of one particular CommonMark revision’s every corner case. Raw HTML that the markdown parser allows through still faces the sanitizer. A script tag in the markdown source is removed. A link can remain. A javascript URL is not specially rewritten by the attribute loop described above, so read links before you trust them in a context this sanitizer does not cover.
What markdown cannot carry back from HTML
The HTML-to-markdown page drops classes and grids. This direction cannot invent the classes that were never in the markdown. It also will not add a document skeleton beyond what ends up in the body inner HTML. The formatter can indent that HTML afterward. The minifier can shrink it, and the minifier will not repeat this sanitizer’s element removals. If you need handlers gone, do that here, before a minifier copies whatever is left.
Sanitized source is still source
Removing script elements and handler attributes makes the string safer to inspect. It does not execute a layout, apply a stylesheet, or prove the markdown was well formed. An empty paste yields whatever marked emits for empty input, after the same cleanup. Use this page to see HTML for a markdown note. Use the formatter when that HTML needs indent. Use the other direction when you are leaving HTML for markdown on purpose.
Privacy
Your input is processed in your browser and is not uploaded to UtilChain. File names, text, and results are not sent to analytics.

