Skip to content
cosmodev ~/tools/markdown-to-html

Convertitore Markdown → HTML

Converters & Formatters

Trasforma Markdown in HTML pulito e con escape: titoli, elenchi, link, immagini, blocchi di codice e citazioni. Ogni input viene prima elaborato con escape, così l'output è sempre markup sicuro. Funziona in locale con un link condivisibile.

Prova:

(Documentation in English)

What it does

Renders a practical Markdown subset into clean HTML: ATX headings (#–######), fenced code blocks with language classes, block quotes, ordered and unordered lists, horizontal rules, and inline marks — bold, italic, strikethrough, code spans, links and images. Everything is HTML-escaped before the inline rules run, so raw HTML in your input renders as visible text, never as markup. The output is a block per line group, ready to paste into any template. Everything runs locally in your browser.

How to use it

  1. Paste Markdown into Markdown (left), or tap a chip — README, Blog post, Code. Sample loads a release-notes document; Clear empties the box.
  2. The HTML appears live in HTML output (right).
  3. Copy takes the markup.
  4. Copy share link encodes your input in the URL.

Examples

Headings and marks:

# Title → <h1>Title</h1> · **b** *i* ~~s~~ \c`→b i s c`

A fenced block with a language:

```js
const x = 1;
```

→ <pre><code class="language-js">const x = 1;</code></pre>

Raw HTML stays visible and inert:

<script>alert(1)</script> → &lt;script&gt;alert(1)&lt;/script&gt; — escaped, not executed.

What the subset covers

Supported Not supported (by design)
ATX headings, hr, paragraphs setext headings, tables
Fenced code (```), inline code indented code blocks
- / * / + and 1. lists (flat) nested lists, task lists
> quotes (nesting other blocks inside) lazy quote continuation
**bold**, *italic*, ~~strike~~ reference links, footnotes
[t](u), ![alt](src) autolinks, raw HTML passthrough

The escape-first order is the contract: what you typed is what shows up as text, and only the subset above becomes tags. For the other direction, use HTML to Markdown Converter.

Codice sorgente14 languages

100% client-side · your data never leaves your browser. Found this useful? Share it with a teammate.