HTML to Markdown
Convert HTML files to clean Markdown locally, with GFM tables.
MarkPrep converts HTML to Markdown with Turndown and the GFM plugin, stripping nav, footer, script and style so you keep the content and lose the chrome. It runs in your browser and gives you a token count and chunk plan the moment it's done.
How to convert html to markdown
- 1Drop your HTML file onto the box above, or click to browse. Nothing uploads — the file is read in your browser.
- 2MarkPrep converts it to Markdown locally and shows a live token count for your chosen model.
- 3Check the Preview, adjust the chunk size, and review the Verify tab for anything worth a second look.
- 4Copy the Markdown, download the .md/.zip, or export JSONL chunks for your RAG pipeline.
Format notes & gotchas
- Only the document body is converted; navigation and footers are removed.
- Inline styles are dropped — Markdown is structural, not visual.
- For a live web page, use the URL to Markdown tool instead.
Related converters
Frequently asked questions
Is my file uploaded anywhere?+
No. Conversion runs entirely in your browser tab using WebAssembly. There is no upload endpoint — open your browser's Network tab and watch: nothing leaves the page. The only labelled exceptions are fetching a public URL and optional bring-your-own-key OCR.
How much does it cost?+
Conversion and the entire AI-Ready Pack — token counts, chunking, JSONL export — are free and unlimited, because they run on your hardware. Pro ($4/mo) adds workflow features like the local MCP server, watch folders and saved profiles.
Are the token counts accurate?+
Exact for OpenAI models (GPT-4o, o-series) via their published tokenizer. For Claude and Gemini we show a labelled approximation, because those tokenizers aren't public.
Want it inside your workflow?
Conversion is free forever. Pro ($4/mo) adds the local MCP server so Claude Code converts files on your machine, plus watch folders, saved profiles and encrypted sync.
See pricing