HTML to Markdown Converter: Bulk URLs for LLM & RAG avatar

HTML to Markdown Converter: Bulk URLs for LLM & RAG

Pricing

from $0.50 / 1,000 pages

Go to Apify Store
HTML to Markdown Converter: Bulk URLs for LLM & RAG

HTML to Markdown Converter: Bulk URLs for LLM & RAG

Convert web pages or raw HTML to clean Markdown in bulk: main content or full page, GFM tables, absolute links, YAML frontmatter, token estimate and RAG chunks. No browser. $0.50 per 1,000 pages; failed pages free.

Pricing

from $0.50 / 1,000 pages

Rating

0.0

(0)

Developer

Andrew Shamah

Andrew Shamah

Maintained by Community

Actor stats

0

Bookmarked

2

Total users

1

Monthly active users

14 days ago

Last modified

Features

Limited permissions

Share

HTML to Markdown Converter – bulk web pages to clean Markdown for LLMs & RAG

Turn any list of web pages (or raw HTML) into clean Markdown ready for ChatGPT/Claude prompts, RAG pipelines, vector databases, docs migration or archiving. Fast HTTP fetch, no browser, so it's cheap and quick.

Features

  • URLs or raw HTML input (htmlItems with an optional base URL for links)
  • Content scope: auto (main content from <main>/<article>, fallback to body), full body, or your own CSS selector
  • Strips nav, header, footer, aside, forms, cookie/consent banners, hidden elements, scripts and styles (toggleable, plus your own removeSelectors)
  • GFM tables (pipe tables, even when the source has no header row), fenced code blocks, ATX headings, lists, blockquotes
  • Absolute links and image URLs, lazy-loaded images resolved (data-src, srcset)
  • Optional YAML frontmatter (title, url, description, lang)
  • Token estimate, word and character counts
  • Optional heading-aware chunks (chunkSize) for embeddings / RAG
  • Optional cleaned HTML

How it differs from our Article Extractor: that one uses Readability to keep only the article body of news/blog posts. This converter handles any page (docs, product pages, landing pages, wikis, tables) and gives you control over what is kept.

Input

{
"urls": ["https://en.wikipedia.org/wiki/Markdown", "https://docs.apify.com/platform"],
"contentScope": "auto",
"frontmatter": true,
"chunkSize": 2000
}

Raw HTML: "htmlItems": [{ "html": "<h1>Hi</h1><p>…</p>", "url": "https://example.com/page", "id": "doc-1" }]

Output (one item per page)

{
"url": "https://en.wikipedia.org/wiki/Markdown",
"title": "Markdown - Wikipedia",
"lang": "en",
"markdown": "---\ntitle: \"Markdown - Wikipedia\"\n…\n---\n\n| Markdown |\n| --- |\n| Filename extensions | `.md`, `.markdown` |…",
"wordCount": 3690,
"charCount": 51234,
"tokenEstimate": 12809,
"chunkCount": 32,
"chunks": [{ "index": 0, "heading": "History", "chars": 1980, "text": "## History\n\n…" }]
}

Pricing

$0.0005 per page converted ($0.50 per 1,000 pages) + a tiny start fee. HTTP errors, non-HTML responses and empty pages are free.

Limits

Pages that render their content only with JavaScript (single-page apps) may return little text. For those, use our Website Screenshot or URL to PDF Actors.