HTML · MARKDOWN · LIVE

HTML ↔ Markdown Converter

Convert HTML to Markdown and Markdown to HTML instantly. Includes a live rendered preview for Markdown output.

Mode

HTML Input

Waiting for input

Markdown Output

Examples

Converting HTML to Markdown

HTML to Markdown conversion is useful when migrating content from a CMS to a static site generator (Jekyll, Hugo, Gatsby), when extracting content for documentation, or when you need to store rich text in a more readable plain-text format. Headings, bold, italic, links, lists, blockquotes, code blocks, and tables are all converted.

Converting Markdown to HTML

Markdown to HTML conversion renders Markdown to clean semantic HTML. This is what blogging platforms, GitHub, and documentation sites do when they display your .md files. The output is safe and well-structured for use in web pages.

What HTML elements are converted to Markdown?

Supported: h1-h6, p, strong/b, em/i, a, img, ul, ol, li, code, pre, blockquote, hr, table/thead/tbody/tr/th/td, br. Unsupported elements are stripped of their tags and their text content is preserved.

Is the HTML preview safe?

The HTML preview renders Markdown-converted output inside a sandboxed container in the page. Script tags are not rendered. For HTML→Markdown mode, the library strips dangerous elements before conversion.