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?
Does an HTML table become a Markdown table?
Can I convert a whole document at once?
Related Tools
Text to HTML Entities
Encode special characters as HTML entities (<, >, &) or decode HTML entities back to plain text.
Markdown Editor
Online Markdown editor with real-time preview. Write in Markdown and see the formatted result instantly.
Detector de Idioma (trigrama)
Adivinha PT/EN/ES por presença de trigramas comuns.