URL to Markdown: Clean Text for RAG & LLMs

Extract text from a web page as Markdown and plain text over HTTP, keeping headings, links, tables, and code while dropping menus and footers for RAG and LLMs. JavaScript-only pages are skipped for free.

USD 0.33 / 1,000 pagesView on Apify Store
20 output fields Last verified: 2026-11-04 AI · Developer tools · Automation
  • Each run processes every input fresh; there is no only-new mode.
  • 10,000 pages cost USD 3.30 at the Free-tier price; the Starter, Scale and Business plans are cheaper.

What it does

Extract text from a web page as Markdown and plain text for RAG pipelines, AI agents, and LLMs. Preserves headings, links, tables, lists, code blocks, and blockquotes while stripping navigation menus, cookie banners, sidebars, and footers.

Pass a list of URLs to fetch and convert over HTTP (ten pages in a few seconds); empty input ({}) converts three sample pages in about a second.

How to use it

  1. Paste the page URLs into Page URLs (urls), one per entry (up to 200 per run).
  2. Optionally set Maximum pages (maxItems), Maximum characters per page (maxCharsPerPage), or turn off Collect page links (includeLinks).
  3. Run the Actor and read the dataset, or take the markdown field of each row.

For PDFs instead of pages, PDF to Markdown Extractor converts the file and keeps the page numbers.

Input example

{
    "urls": [
        "https://en.wikipedia.org/wiki/Markdown",
        "https://developer.mozilla.org/en-US/docs/Web/HTML"
    ],
    "maxItems": 10,
    "maxCharsPerPage": 40000
}

Inputs

InputTypeRequiredDefaultDescription
Page URLs (urls)arrayNohttps://en.wikipedia.org/wiki/Markdown, https://developer.mozilla.org/en-US/docs/Web/HTML, https://example.com/Up to 200 web page URLs. Empty converts 3 sample pages. Fetches each page once (no link crawling); refused or empty pages return free in OUTPUT.
Maximum pages (maxItems)integerNo5Max pages to convert per run (1-200, default 5). Each converted page is charged; excess URLs go to OUTPUT skippedInputs.
Maximum characters per page (maxCharsPerPage)integerNo40000Max Markdown characters per page (1000-500000, default 40000). Longer pages are cut with truncated: true.
Collect page links (includeLinks)booleanNotruetrue (default) includes up to 500 absolute content links in links; false leaves links empty. Menus and footers are excluded either way.
Respect robots.txt (respectRobotsTxt)booleanNotruetrue (default) skips paths disallowed by robots.txt (listed in OUTPUT, free); false ignores robots.txt (use only when allowed).

Advanced: proxyConfiguration is available for proxy settings and is not required.

Output

FieldTypeDescription
idstringStable ID of the page: a SHA-256 prefix of its URL.
sourcestring“url”: the row comes from this Actor.
urlstringURL of the page as you gave it.
finalUrlstringURL the page was served from, after redirects.
titlestring | nullPage title (the title element, else the first h1).
statusstringAlways “ok”: a row is written only for a converted page. A URL with no content (not HTML, JavaScript only, empty) writes no row, is not charged and is listed in OUTPUT skippedInputs with the reason.
markdownstringThe page’s main content as Markdown (headings, links, tables, lists, code), cut to maxCharsPerPage.
textstring | nullThe same content as plain text, without the Markdown syntax.
linksarrayAbsolute links of the extracted content (up to 500) when includeLinks is on; navigation and footers are not included.
charCountintegerCharacters in markdown.
byteCountintegerSize of the downloaded response in bytes.
truncatedbooleanTrue when maxCharsPerPage cut the page.
descriptionstring | nullThe page’s own summary: meta[name=description], else og:description or twitter:description; null when the page states none.
authorstring | nullThe author the page states: meta[name=author], article:author, else the JSON-LD author; null when the page states none.
publishedAtstring | nullThe publication time the page states (article:published_time, datePublished, else the JSON-LD datePublished) as ISO 8601 UTC; null when the page states none.
siteNamestring | nullThe site’s own name: og:site_name, else the JSON-LD publisher; null when the page states none.
imagestring | nullThe page’s social image as an absolute URL (og:image, twitter:image, else the JSON-LD image); null when the page states none.
languageCodestring | nullPrimary language subtag from the page (html lang, else og:locale), for example “en”; null when the page declares none.
httpStatusintegerStatus code of the response that was converted (200, 404, ...); the page was readable even when the code was not 200.
scrapedAtstringWhen the page was converted, ISO 8601 (UTC).

Provenance fields

One result, cut to the source URL and the retrieval time. The output schema above lists every field.

{
  "url": "https://en.wikipedia.org/wiki/Markdown",
  "finalUrl": "https://en.wikipedia.org/wiki/Markdown",
  "scrapedAt": "2026-11-04T01:15:59.065Z"
}

Sources and limits

  • The web pages you name: One HTTP request per page; no browser and no JavaScript.

Limitations

  • Independent tool, no login. Not affiliated with, endorsed by or sponsored by any of the sites whose pages you convert. Non-HTML, empty, or JS-only pages write no row (listed in OUTPUT) and are not charged.
  • No JavaScript rendering. Single-page applications write no row (listed in OUTPUT, not charged); use a browser-capable tool for those.
  • Extraction is a rule-based approximation: an unusual layout can leave a sidebar sentence in the text or drop a caption. The page’s own article/main region is the main signal.
  • Tables become pipe tables; merged cells are flattened, and a table nested inside a cell is flattened to its text (Markdown has no nested tables).
  • Only http and https URLs are accepted, and local and private addresses are refused (loopback, private ranges, link-local) so the Actor can not be pointed at the platform’s internal network.
  • A response larger than 10 MB is rejected: the URL is listed in failedInputs, the page is not returned and no result is charged (the run start fee still applies).
  • Runs use 1 GB of memory. Converting a page holds its whole HTML in memory.
  • No links are followed. The Actor converts exactly the URLs you give it; links only reports them.
  • Pages behind a CAPTCHA or a login are not read; they are reported as blocked.

Run status and the OUTPUT record

Each run ends with a short status message and writes an OUTPUT record to its key-value store with the counts (requests, pages read, pages returned, blocked requests) and:

  • skippedInputs: entries that were invalid, duplicated, private addresses, not found (404/410), disallowed by robots.txt, gave no content (needs JavaScript, not HTML, empty page), or were over maxItems, with their position in your list and the reason. None of them is charged;
  • failedInputs: entries the site refused (403, 429, a challenge page), that never answered (a timeout or repeated connection errors), that sent a page larger than 10 MB, or that came back in a shape this Actor cannot read, with their position in your list and a fixed reason. None of them is charged;
  • uncheckedInputs: entries the run did not reach because it stopped first (no budget left, or every site in the list refused). Entries over maxItems are in skippedInputs, not here.

Refusals are counted site by site: when one site in your list refuses several of its own pages, only the rest of that site’s URLs are skipped (with their reason in failedInputs) and the other sites are still read. The run stops because of refusals only when every site in the list has refused, so one site that says no cannot keep the URLs of other sites from being converted. maxItems or the run’s spending limit can end a run as well; the pages it did not reach are listed in uncheckedInputs.

A run fails only when the Actor stops on a problem on its own side: an unexpected error, a page whose structure this build no longer reads (the Actor needs an update), or a request that failed in a way it cannot attribute to the site (a failure that came back through a proxy, for example). You name every URL, so a site that refuses them, a URL that times out or is too large to fetch, and a host that refuses the connection all end successfully with an empty dataset: OUTPUT failedInputs gives the reason for each URL, and no result is charged (the run start fee still applies). A page that needs JavaScript or gives a non-HTML response ends successfully as well and says so in OUTPUT; a 404 or 410 is listed in skippedInputs as not found and writes no row.

Read the data-source note.

Staging run

Staging run — 2026-11-04; input {} (the default pages); 3 results returned. This is a staging run on Kizuki’s own account, not a customer result and not a testimonial.

Default run.

Sample output

The first 3 results of a run, cut to 9 of the 20 output fields; long text is shortened. Download the same rows as JSON or CSV.

{
  "id": "b8a8a85801703ea4",
  "url": "https://en.wikipedia.org/wiki/Markdown",
  "title": "Markdown - Wikipedia",
  "status": "ok",
  "httpStatus": 200,
  "languageCode": "en",
  "charCount": 40001,
  "truncated": true,
  "markdown": "# Markdown\n\nFrom Wikipedia, the free encyclopedia\n\nPlain text markup language\n\nFor the marketing term, see [Price markdown](https://en.wikipedia.org/wiki/Price_markdown).\n\n| [![icon](https://thumb.wikimedia.org/wikipedia/en/thumb/9/99/Quest…"
}

The output schema above lists every field. These rows come from a staging run, not from a customer.

Pricing

USD 0.33 per 1,000 pages on Free; USD 0.28 on Starter, USD 0.24 on Scale, USD 0.23 on Business

Apify charges per result; the Store page is the commercial reference. Rows that only record a failure are not charged. Every run also carries a start fee of USD 0.00005 per GB of memory (USD 0.00005 at the default 1 GB), even a run that returns no results.

View on Apify Store

Verification

The facts on this page come from the Actor’s own documentation and input and output schemas, and the staging run recorded above. No customer testimonials, ratings, or uptime numbers are shown.

The Store page is the commercial reference.