How to convert local HTML to Markdown without loading remote resources
Open a local HTML file or paste markup, select a heading style, and convert to Markdown. A JavaScript DOM inside a Worker parses the content without a browsing context, so embedded images, stylesheets, frames, and scripts are not loaded. Text input is limited to 2 MiB.
How do you do it?
- Paste HTML or open a local .html file up to 2 MiB.
- Choose # Heading or Setext heading style and select Run.
- Review the Markdown text; copy it or download a .md file.
Convert a heading and emphasized paragraph
Heading structure and strong emphasis become Markdown syntax; the HTML is never inserted into the live page.
Input:
<h1>Hello</h1><p>A <strong>local</strong> tool.</p>
Output:
# Hello
A **local** tool.When is this workflow useful?
Use this tool to migrate document content to Markdown. Use HTML Preview to inspect a document and Markdown Preview to review safe rendered Markdown. Keep original HTML when layout or application behavior matters.
What should you check before relying on the result?
No remote URL fetching, JavaScript execution, GFM table plugin, CSS layout reconstruction, or round-trip fidelity is provided. Image URLs may appear as Markdown text but are not downloaded. Conversion is not a general HTML sanitizer for use elsewhere.
What can go wrong?
| Problem | What to try |
|---|---|
| The output does not retain a complex table layout. | Markdown cannot represent every HTML layout, and GFM table conversion is not enabled. Simplify the table or use JSON Table for structured Markdown tables. |
| Scripts or styles disappear. | Executable and presentation-only elements are excluded. Use this converter for document content; keep original HTML when interactive behavior matters. |
Frequently asked questions
Do I need to upload data or sign in?
No. Processing runs in the current browser. This site serves the page and required static engine assets.
Why does the result disappear after I edit the input?
The tool clears stale output so a previous result cannot be mistaken for the new one. Run again after changing input or settings.
References
First edition: steps checked against the current tool interface, with examples and known limits.