openregistry

Utilities · pay per result · $1 per 1,000 results

HTML to Markdown for LLM & RAG — Clean Page Content + Chunks

Turn web pages or raw HTML into clean Markdown for LLMs, RAG and AI agents: main content only (no menus, ads, footers), absolute links, GFM tables, code blocks with language, title and metadata, optional chunks. Respects robots.txt. Pay per page.

Run it on Apify →

Free Apify plan includes monthly credit · no login to any website · official API

Feed it web page URLs (or your own HTML) and get clean Markdown ready for an LLM, a RAG index or an AI agent: only the main content, no menus, cookie banners, sidebars or footers, with absolute links, proper tables and fenced code blocks. Optional chunking on paragraph boundaries, each chunk tagged with its section heading.

Why Markdown: it keeps the structure (headings, lists, tables, code) that models rely on, at a fraction of the tokens of raw HTML.

Features

What it is for

Input example

{
  "startUrls": ["https://en.wikipedia.org/wiki/Markdown"],
  "htmlItems": [{ "html": "<h1>Notes</h1><p>Hello <a href='/a'>link</a></p>", "url": "https://example.com/", "name": "notes" }],
  "extractionMode": "main",
  "linkStyle": "inline",
  "chunkSize": 2000,
  "chunkOverlap": 200
}

Output example

One dataset row per page:

{
  "index": 1,
  "url": "https://en.wikipedia.org/wiki/Markdown",
  "finalUrl": "https://en.wikipedia.org/wiki/Markdown",
  "statusCode": 200,
  "title": "Markdown",
  "description": null,
  "language": "en",
  "extraction": "main",
  "wordCount": 5053,
  "markdown": "From Wikipedia, the free encyclopedia\n\n**Markdown** is a lightweight markup language for creating formatted text...",
  "links": [{ "text": "lightweight markup language", "url": "https://en.wikipedia.org/wiki/Lightweight_markup_language" }],
  "chunks": [{ "index": 0, "heading": "History", "text": "## History\n\n...", "chars": 1987 }],
  "error": null
}

Good to know

Pricing

$0.001 per page ($1 per 1,000 pages), chunks included. Failed pages are free. Set a maximum charge per run in the Apify console and the Actor stops cleanly when it is reached.

Open HTML to Markdown for LLM & RAG on Apify →