Convert HTML to Clean Markdown

Batch + ZIP

Convert web snippets or full HTML pages into clean GFM Markdown with fenced code blocks, tables, and stripped script/nav noise.

100% Client-Side — Verify 0 bytes uploaded in Network tabVerify 0 bytes sent in Network tab

or drop files here · Ctrl V to paste · or drop .html / .htm files · Ctrl V to paste HTML
  • 100% browser-local
  • Strips scripts & nav
  • GFM tables & fenced code

Instant Before & After Preview

Before (Input)article.html
<nav><a href="/">Home</a></nav>
<article>
  <h1>Local-First Processing</h1>
  <p>Convert <strong>HTML</strong> into clean <a href="https://txtto.app/">Markdown</a> without scripts or navigation clutter.</p>
  <pre><code class="language-ts">const bytesUploaded = 0;</code></pre>
</article>
After (Output).md
# Local-First Processing

Convert **HTML** into clean [Markdown](https://txtto.app/) without scripts or navigation clutter.

```ts
const bytesUploaded = 0;
```

Source vs. target format specification comparison: HTML → Markdown

PropertySource: HTMLTarget: Markdown
Structure typeMarkupMarkup
Human readabilityMediumHigh
Nesting supportYesYes
LLM token efficiencyLowHigh
File extension.html.md
MIME typetext/htmltext/markdown
Best forWeb pages, rich-text clipboard payloads, email templates, and sanitized rendered Markdown embeds.AI/RAG knowledge bases, developer documentation, READMEs, Obsidian vaults, and portable note-taking.

How it works

How to convert HTML to Markdown locally

Purify messy webpage markup into crisp Markdown ready for documentation, Obsidian, or LLM context.

  1. Paste HTML or drop filesPaste raw HTML markup or drop saved .html/.htm pages.
  2. Strip boilerplateKeep Remove Scripts & Nav enabled to automatically discard <script>, <style>, <nav>, and <noscript> blocks.
  3. Copy or count tokensCopy clean Markdown or pass straight into LLM Token Counter or Remove AI Markdown.

FAQ

Frequently asked questions

Does HTML to Markdown keep language tags on fenced code blocks?

Yes. <code class="language-ts"> blocks convert into ```ts fenced code blocks automatically.

Are HTML tables converted into Markdown tables?

Yes. Leave GFM enabled to turn HTML <table> elements into clean Markdown pipe tables.

Why strip navigation and script tags before feeding docs to an LLM?

Removing header menus, scripts, and inline CSS eliminates repetitive boilerplate that wastes up to 80% of prompt tokens.