HTML and Markdown conversion

Convert Markdown and HTML bidirectionally in the browser, with safe preview, copy, and download support.

Local browser processing
This page has passed the public directory check; full functionality is available after enabling JavaScript.
User Guide

How to use HTML to convert to and from Markdown

Input text or files are converted and previewed only in the current browser and are not uploaded; preview content is safely sanitized.

  1. Choose conversion direction

    Choose Markdown to HTML or HTML to Markdown, and paste content or load a text file up to 2 MiB.

  2. Convert and preview

    After conversion, review the output; the HTML preview removes unsafe content and blocks remote images from loading automatically.

  3. Copy or download

    After confirming the structure of headings, lists, tables, links, quotations, and code blocks, copy the result or download it as the corresponding text file.

Limitations and Notes

  • HTML to Markdown can reliably handle only basic rectangular tables; rowspan, colspan, and complex nested tables will degrade.
  • The conversion does not preserve complex CSS, scripts, or interactive behavior, and the output should not be treated as a lossless copy of the original page.
  • Remote image URLs can be kept in the text, but the preview will not request images proactively; before publishing, you must verify the links and resource permissions yourself.

FAQ

Will scripts in the input HTML be executed?

No. Scripts and dangerous attributes are removed before preview, and conversion only processes the text structure.

Why does the layout change after converting a complex webpage?

Markdown cannot express all layouts and styles on a web page; the tool will preserve the semantic structure that can be mapped and discard the rest.

Can it be used offline?

Yes. The conversion library is provided locally with the site, and the page itself does not need to access third-party services.

Page feedbackFound an issue or have suggestions for improvement?
Feedback features need to be used in the online version

Please enable JavaScript in the online version before submitting; local features of the current tool or example are not affected.

Go to the online version for feedback