Utility workspace

HTML to Markdown Converter - My Tools

Convert HTML code into Markdown documents and preview the styled result.

HTML Markdown Converter

Advanced conversion options

Adjust how headings, lists, emphasis, tables, links, and line breaks are handled for your conversion.

Empty tag lists use the default conversion rules.
Conversion statistics
HTML characters
0
Markdown characters
0
Lines
0
Word count
0

How to use

  • Enter HTML code and click Convert to Markdown to generate a sanitized Markdown document on the server.
  • Use Load sample to insert example HTML containing tables, links, lists, and code blocks.
  • Use the Copy button in the result area to save the generated Markdown document to the clipboard.
  • Popup preview renders the last conversion result as safe HTML and shows it in a sandboxed iframe.
  • Download .md saves only the converted Markdown as a file.

Advanced option details

Adjust heading styles, list bullets, emphasis markers, table header inference, automatic links, default titles, and wrap width to match repository or wiki conventions.

Tags to strip and Tags to convert only pass markdownify selection options. The server reports an error if both values are used together.

Conversion limitations

HTML to Markdown conversion is best effort. Complex layouts, nested tables, inline styles, and script behavior may not be fully preserved in Markdown syntax.

Before publishing externally, review the result document and preview together to confirm that the intended structure is preserved.

Preview safety

The preview wraps only the API-sanitized previewHtml in a separate document and places it in srcdoc; the converted result is not inserted directly into the parent page DOM.

The iframe uses only sandbox and grants neither allow-scripts nor allow-same-origin, blocking script execution and access to the parent document.