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.
- 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
- Paste the page URLs into Page URLs (
urls), one per entry (up to 200 per run). - Optionally set Maximum pages (
maxItems), Maximum characters per page (maxCharsPerPage), or turn off Collect page links (includeLinks). - Run the Actor and read the dataset, or take the
markdownfield 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
| Input | Type | Required | Default | Description |
|---|---|---|---|---|
Page URLs (urls) | array | No | https://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) | integer | No | 5 | Max 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) | integer | No | 40000 | Max Markdown characters per page (1000-500000, default 40000). Longer pages are cut with truncated: true. |
Collect page links (includeLinks) | boolean | No | true | true (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) | boolean | No | true | true (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
| Field | Type | Description |
|---|---|---|
id | string | Stable ID of the page: a SHA-256 prefix of its URL. |
source | string | “url”: the row comes from this Actor. |
url | string | URL of the page as you gave it. |
finalUrl | string | URL the page was served from, after redirects. |
title | string | null | Page title (the title element, else the first h1). |
status | string | Always “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. |
markdown | string | The page’s main content as Markdown (headings, links, tables, lists, code), cut to maxCharsPerPage. |
text | string | null | The same content as plain text, without the Markdown syntax. |
links | array | Absolute links of the extracted content (up to 500) when includeLinks is on; navigation and footers are not included. |
charCount | integer | Characters in markdown. |
byteCount | integer | Size of the downloaded response in bytes. |
truncated | boolean | True when maxCharsPerPage cut the page. |
description | string | null | The page’s own summary: meta[name=description], else og:description or twitter:description; null when the page states none. |
author | string | null | The author the page states: meta[name=author], article:author, else the JSON-LD author; null when the page states none. |
publishedAt | string | null | The publication time the page states (article:published_time, datePublished, else the JSON-LD datePublished) as ISO 8601 UTC; null when the page states none. |
siteName | string | null | The site’s own name: og:site_name, else the JSON-LD publisher; null when the page states none. |
image | string | null | The page’s social image as an absolute URL (og:image, twitter:image, else the JSON-LD image); null when the page states none. |
languageCode | string | null | Primary language subtag from the page (html lang, else og:locale), for example “en”; null when the page declares none. |
httpStatus | integer | Status code of the response that was converted (200, 404, ...); the page was readable even when the code was not 200. |
scrapedAt | string | When 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/mainregion 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
httpandhttpsURLs 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;
linksonly 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 overmaxItems, 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 overmaxItemsare inskippedInputs, 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.
Staging run
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| [, even a run that returns no results.
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.