1001Ferramentas
📝 Text

Markdown ↔ HTML Converter

Convert CommonMark Markdown to semantic HTML and back, with tables, code, footnotes and task lists — all client-side.

Powered by marked + turndown via CDN. Tudo client-side. CommonMark + tabelas GFM.

Markdown into HTML, and HTML back to Markdown

You wrote the docs in Markdown and the CMS only takes HTML. Or the reverse: you pasted a chunk of a live page and now need it as Markdown for a README. Either way, converting by hand costs half an hour of fixing tags and stray entities. Pick the direction in the selector, paste the text, hit convert, and the result lands in a field ready to copy.

Markdown to HTML runs through the marked library with the GitHub dialect enabled, so pipe tables, task lists and fenced code blocks all work. One detail trips people up regularly: a single line break does not become a break tag, because that option is switched off, matching classic Markdown behaviour. Leave a blank line between paragraphs to separate them.

The trip back uses Turndown, with hash-style headings and fenced code blocks. Since the tables plugin is not loaded, an HTML table does not come back as a pipe table: it arrives as running text, and that part you rebuild by hand. Note as well that HTML generated from Markdown is not sanitised, so a script tag pasted into the input survives into the output. Only publish output from a source you trust.

Frequently asked questions

Why did my line break disappear in the HTML?
Because the option that turns a single newline into a break tag is off, as in classic Markdown. Use a blank line to separate paragraphs, or two trailing spaces at the end of the line.
Does an HTML table become a Markdown table?
No. Turndown's tables plugin is not loaded, so the table comes out as running text and has to be rebuilt in pipe syntax by hand.
Can I convert a whole document at once?
Yes. The tool imposes no size limit; the only real ceiling is browser memory, which you would only hit with an extremely large document.

Related Tools