Dev.to
6/25/2026

New Markdown converter cuts LL
Original: I was burning context feeding HTML to LLMs, so I built a Markdown converter for agents
Short summary
Author built markdown-for-agents to convert HTML to Markdown before feeding to LLMs, reducing token costs by 93%. Works as drop-in middleware (Express, Fastify, Hono, Next.js) with zero dependencies, runs everywhere (Node, Deno, Cloudflare Workers). Code on GitHub, playground on Vercel.
- •Converts HTML to Markdown for LLM agents, saving ~93% tokens with no information loss
- •Drop-in middleware supporting Express, Fastify, Hono, Next.js via content negotiation
- •Zero dependencies, runs on Node, Deno, Cloudflare Workers, Vercel Edge, browser
Generated with AI, which can make mistakes.
Is this a good recommendation for you?



