Markdown ↔ HTML converter
Two-way converter: markdown to HTML source, or HTML back to markdown. Output is shown as plain text — never injected into the DOM. Want a live preview? Use themarkdown preview tool.
~~~
Markdown inputHTML input
Output
~~~
About this tool
MD → HTML uses the marked library with GFM support. The output is HTML source shown in a textarea — safe to copy into templates or CMS fields.
HTML → MD walks the DOM with DOMParser and maps common tags (headings, lists, links, tables, code blocks). Unknown tags are unwrapped; text is kept.
Everything runs client-side. Your content never leaves the browser.
~~~