Website to Markdown for LLM & RAG: Crawl, Clean, Chunk avatar

Website to Markdown for LLM & RAG: Crawl, Clean, Chunk

Pricing

from $0.85 / 1,000 page converteds

Go to Apify Store
Website to Markdown for LLM & RAG: Crawl, Clean, Chunk

Website to Markdown for LLM & RAG: Crawl, Clean, Chunk

Crawl any website or docs and convert every page to clean, LLM-ready Markdown: boilerplate removed, links absolute, tables kept, token counts, heading-aware RAG chunks with overlap, plus llms.txt and llms-full.txt for the whole site. No browser, fast. $1 per 1,000 pages.

Pricing

from $0.85 / 1,000 page converteds

Rating

0.0

(0)

Developer

Larkmoor Data

Larkmoor Data

Maintained by Community

Actor stats

0

Bookmarked

2

Total users

1

Monthly active users

20 days ago

Last modified

Features

Limited permissions

Share

Turn any website, blog or documentation into clean, LLM-ready Markdown. Give it a start URL; it crawls the site, removes the boilerplate (menus, cookie banners, footers, ads, scripts), keeps headings, lists, code blocks, tables and absolute links, and returns one tidy Markdown document per page with its title, description, language, word count and token estimate.

For retrieval-augmented generation it also cuts every page into heading-aware chunks with overlap, each carrying its heading path ("Quickstart > Response Content"), ready for your embedding model and vector database. At the end of the run you get an llms.txt index and an llms-full.txt file with the whole site in one Markdown document.

Plain HTTP, no browser: fast, and cheap at $1 per 1,000 pages.

What does Website to Markdown do?

  • Crawls from your start URLs over same-site links, up to the depth and page count you set; can stay inside a folder (/docs/) or cover the whole domain, and can add every page from the site's sitemap.
  • Include / exclude patterns: globs (https://example.com/blog/**) or regular expressions (re:/v2/).
  • Cleans each page: main-content extraction removes navigation and clutter; "full page" mode keeps the whole body except menus, header and footer.
  • Converts to Markdown: ATX headings, lists, fenced code, tables, links made absolute, Sphinx/Docs "¶" anchors removed.
  • Adds title, description, language, canonicalUrl, headings, wordCount, tokenEstimate and a contentHash for change detection.
  • RAG chunks: target size and overlap in tokens, split on headings first, then paragraphs; giant paragraphs are split at sentence ends.
  • Skips duplicate pages (same content under another URL), tracking parameters, login/cart pages and files.
  • Saves llms.txt and llms-full.txt in the run's key-value store.
  • Respects robots.txt. Failed, empty, blocked and duplicate pages are never charged. Honors the run's Max items option and your spend limit.

Who is it for?

  • AI engineers feeding docs, help centers and websites into RAG pipelines, vector databases and custom GPTs.
  • Developers building chatbots and support assistants on a product's documentation.
  • Content and SEO teams exporting a site's text for audits, migrations or LLM rewriting.
  • Researchers building text corpora from public websites.
  • Site owners generating an llms.txt for their own site.

Input

FieldWhat it does
startUrlspages or sites to start from
maxPagesmost pages converted (default 50)
maxDepthlink depth from the start URLs (0 = start URLs only)
stayUnderStartPathstay inside the start folder (default on)
useSitemapalso queue the site's sitemap pages
includeUrlPatterns / excludeUrlPatternsglobs or re: regular expressions
contentModemain (boilerplate removed) or full
outputModepages, pagesWithChunks or chunks (one row per chunk)
chunkSizeTokens / chunkOverlapTokenschunk sizing (default 500 / 50)
keepLinks / keepImages / keepTableswhat to keep in the Markdown
saveLlmsTxtsave llms.txt and llms-full.txt (default on)
{
"startUrls": ["https://docs.python-requests.org/en/latest/"],
"maxPages": 200,
"maxDepth": 3,
"outputMode": "chunks",
"chunkSizeTokens": 500,
"chunkOverlapTokens": 50
}

Output

One row per page (pages):

{
"url": "https://docs.python-requests.org/en/latest/user/quickstart/",
"title": "Quickstart — Requests 2.34.2 documentation",
"description": null,
"language": "en",
"markdown": "# Quickstart\n\nEager to get started? ...\n\n## Make a Request\n...",
"wordCount": 2799,
"tokenEstimate": 4610,
"headings": ["Quickstart", "Make a Request", "Passing Parameters In URLs", "..."],
"canonicalUrl": "https://docs.python-requests.org/en/latest/user/quickstart/",
"contentHash": "3f1c0d9a27b84e11",
"crawledAt": "2026-11-03T11:45:02Z"
}

One row per chunk (chunks):

{
"url": "https://docs.python-requests.org/en/latest/user/quickstart/",
"title": "Quickstart — Requests 2.34.2 documentation",
"chunkIndex": 3,
"chunkCount": 23,
"headingPath": "Quickstart > Response Content",
"text": "## Response Content\n\nWe can read the content of the server's response...",
"tokens": 168
}

Pages that fail come back with an error (blocked, robots.txt, not HTML, needs JavaScript) and are free. Export as JSON, JSONL, CSV or Excel, or read through the Apify API; llms.txt and llms-full.txt are in the run's key-value store (linked from the run's Output tab).

How much does it cost?

  • $1.00 per 1,000 pages converted (all chunks of a page are included)
  • Failed, empty, blocked and duplicate pages: free
  • $0.001 per run start

Worked examples:

  1. A product's documentation, 300 pages, chunked for a support bot: 300 × $0.001 = $0.30.
  2. A company blog of 2,000 posts from its sitemap: about $2.00.
  3. Weekly refresh of 20 help-center sites, 500 pages each (10,000 pages): about $10 a week. Use contentHash to re-embed only changed pages.

Bronze, Silver and Gold Apify plans pay less per page. Compute is small (256 MB, plain HTTP).

Tips

  • Docs only: start at the docs folder (/docs/) and keep stayUnderStartPath on.
  • Whole site fast: turn on useSitemap with maxDepth 0.
  • Skip noise: exclude **/tag/**, **/page/**, re:\?replytocom=.
  • Chunk size: 300–800 tokens suits most embedding models; overlap of 10% keeps sentences intact across boundaries.
  • JavaScript-only sites (pages that are empty without a browser) are reported as "almost no text"; most docs, blogs and marketing sites render on the server and work.

FAQ

How is this different from a generic web scraper? It is built for one job: clean text for language models. No selectors to write, no browser to pay for, chunking and llms.txt included.

Is it legal? It reads publicly available pages you choose and follows robots.txt. It does not log in. Respect each site's copyright and terms for what you do with the text; keep the url with every chunk so answers can cite the source. Sites whose terms forbid automated access (for example Google, LinkedIn, Facebook, Instagram, Amazon) are not crawled.

How accurate is the token estimate? About 4 characters per token, close to common tokenizers for English. Use your own tokenizer when you need exact counts.

Does it deduplicate? Yes. Pages with identical content (http/https, www, tracking parameters, print versions) are converted once; duplicates are left out and not charged.

Integrations

Send chunks to Pinecone, Qdrant, Weaviate, Milvus or Supabase with Apify integrations or your own code, load them in LangChain or LlamaIndex with the Apify dataset loader, run it from Make, Zapier or n8n, or let an AI agent call it through the Apify MCP server.

Changelog

  • 0.1 (Nov 2026): first release. Same-site crawl with depth, folder scope, sitemap, include/exclude patterns; main-content and full-page Markdown; absolute links, tables, code; titles, language, canonical, token estimate, content hash; heading-aware chunks with overlap; llms.txt and llms-full.txt; robots.txt; duplicate skipping.