HTML and Markdown conversion
Convert Markdown and HTML bidirectionally in the browser, with safe preview, copy, and download support.
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.
Choose conversion direction
Choose Markdown to HTML or HTML to Markdown, and paste content or load a text file up to 2 MiB.
Convert and preview
After conversion, review the output; the HTML preview removes unsafe content and blocks remote images from loading automatically.
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.