Website to Markdown: Web Page & HTML to Markdown for LLMs avatar

Website to Markdown: Web Page & HTML to Markdown for LLMs

Pricing

from $1.50 / 1,000 pages

Go to Apify Store
Website to Markdown: Web Page & HTML to Markdown for LLMs

Website to Markdown: Web Page & HTML to Markdown for LLMs

Convert web pages to clean Markdown for LLMs, RAG and AI agents. Removes menus, cookie banners, headers and footers and keeps the main content, links and images. Bulk URLs, fast plain HTTP, no browser. Pay per converted page, errors and empty pages are free.

Pricing

from $1.50 / 1,000 pages

Rating

0.0

(0)

Developer

Markus Heiß

Markus Heiß

Maintained by Community

Actor stats

0

Bookmarked

2

Total users

1

Monthly active users

5 days ago

Last modified

Features

Limited permissions

Share

Turn web pages into clean Markdown that language models can read. Give it a list of URLs, get back one item per page with the main content as Markdown, without menus, cookie notes, headers and footers.

Made for RAG pipelines, AI agents, chatbots with a knowledge base, and anyone who pastes web pages into an LLM and wants fewer tokens and less noise.

What it does

  • Downloads each page over plain HTTP. No browser, so it is fast and cheap.
  • Finds the main content with Mozilla's Readability, the engine behind Firefox Reader View. If that finds nothing useful, it falls back to the whole page body.
  • Converts it to Markdown:
    • Headings as #, ##, ###
    • Bullet and numbered lists
    • Tables as Markdown tables
    • Code blocks fenced, with the language when the page names it
    • Links and images with absolute URLs, so they still work outside the page
  • Drops in-page jump links and footnote anchors, which only add tokens.
  • Returns title, language, a short excerpt, the author line if the article shows one, word and character counts.

Input

FieldDescriptionDefault
URLsWeb pages to convert, one item per URL, no crawling
Only main contentArticle text only, without menus, headers, footers and sidebarson
Include linksKeep links as Markdown links. Off keeps only the link texton
Include imagesAdd images as Markdown image linksoff
Page timeoutSeconds before a page is given up30
Parallel requestsPages processed at the same time, 1 to 205

Output

One dataset item per URL:

{
"url": "https://developer.mozilla.org/en-US/docs/Web/HTTP/Overview",
"finalUrl": "https://developer.mozilla.org/en-US/docs/Web/HTTP/Overview",
"statusCode": 200,
"title": "Overview of HTTP - HTTP | MDN",
"excerpt": "HTTP is a protocol for fetching resources such as HTML documents. ...",
"lang": "en-US",
"mainContent": true,
"markdown": "# Overview of HTTP\n\n**HTTP** is a [protocol](https://developer.mozilla.org/en-US/docs/Glossary/Protocol) for fetching resources ...",
"wordCount": 2263,
"characters": 17073,
"error": null
}

byline is added when the article shows an author line. mainContent is false when the whole page body was used.

A failed page returns the URL, the HTTP status if there was one, and an error text.

Export as JSON, CSV or Excel, or read it through the Apify API.

Pricing

Pay per converted page with content. Errors, empty pages and non-HTML files are not charged. You can cap the cost of a run with the maximum charge setting in Apify.

Each run also has a start fee of 0.00005 USD per GB of memory, which Apify shows as Actor Start.

Limits

  • Pages that build their content only with JavaScript (some single-page apps) return little or no text. They get an error item and are not charged.
  • PDF files and images are not converted. They return an error that says so. Use a PDF tool for PDF files.
  • Pages behind a login or a bot wall are not supported.
  • Pages larger than 10 MB are skipped.
  • Only public http and https addresses. Local and private network addresses are refused, also after redirects.
  • Data source: Public web pages at the URLs you enter. The Actor fetches them live during the run.
  • Snapshot: Results show the source at the time of the run. We do not guarantee that they are complete, current or correct.
  • For business use: This Actor is offered to businesses only, not to consumers.
  • Permitted use: Process only content you are allowed to access and use, for example your own websites and documents or public pages you have a legitimate reason to process. Respect the terms of the websites and the rights in the content.
  • Your responsibility: You choose the URLs and decide what happens with the results. If results contain personal data, you are the controller and need your own legal basis.
  • No circumvention: The Actor does not log in, solve captchas or bypass paywalls, bot protection or other access restrictions. Do not use it for that.
  • Request volume: One request per URL, with the number of parallel requests you set (default 5). Do not use it to put excessive load on a website.
  • Provider: forgeloop, Markus Heiss, Austria. Imprint, Privacy Notice, Terms of Use.

Questions and issues

Open an issue on the Actor page.