npm GitHub
npm package

Make any website
AI ready

Generate markdown and /llms.txt files
for any website. One command.

$ npx site-to-md https://yoursite.com

Zero config — install and deploy

Why it matters

Raw HTML is bloated. Markdown is just the content.

Raw HTML
<div class="nav-wrapper"><script src="...">
~87,000 tokens
Clean Markdown
# Getting Started\n\nWelcome to...
~620 tokens
99%
fewer tokens Cheaper API calls · Faster responses · Fits in context
website.html
<html> <head> <script src="..."></script> <style>/* 2000 lines */</style> </head> <body> <nav>...</nav> <main> <h1>Content</h1> </main> </body>
llms.txt
# Site Name > Clean description ## Docs - [Getting Started](/docs) - [API Reference](/api) ## Content Extracted, readable text...

How to use it

Add to your build pipeline or run standalone

Recommended

Add to your project

$ npm install site-to-md
"build": "next build && site-to-md ./out"

Auto-generates llms.txt + markdown on every deploy

Quick scan

Scan any site

$ npx site-to-md https://anysite.com

Run against any URL — no install needed

Currently works with static/SSR sites. SPA support coming soon.

Ready to make your site AI-ready?