Go to example tasks

Convert a web page to Markdown for LLMs

Convert one public HTTPS web page into clean Markdown for an LLM, RAG index or summarizer. This example reads the Wikipedia article on Markdown and returns its title, the main content as Markdown with headings, links, lists and code blocks, character counts and a truncation flag at the 20,000-character budget. Static HTML only: no JavaScript rendering, login or OCR. Replace the URL with your page.

Try for free
PDF to Text & HTML to Markdown for LLMs and RAG
PDF to Text & HTML to Markdown for LLMs and RAGtextokit/document-to-llm-markdown
Url
Status
Document type
Title
+6 fields
Text
Number
Boolean
List
Object

Input

Single document URL:https://en.wikipedia.org/wiki/Markdown
Output format:markdown
Maximum content characters per document:20000

Output fields

Url
Status
Document type
Title
Output characters
Text truncated
Page count
Content
Warnings
Error

How it works

Sign up on Apify or log in

The PDF to Text & HTML to Markdown for LLMs and RAG Actor is ready to run with the inputs already set for "Convert a web page to Markdown for LLMs". Sign up or log in and you'll land in Apify Console with a copy of this exact task.

Start the "Convert a web page to Markdown for LLMs" task

The PDF to Text & HTML to Markdown for LLMs and RAG Actor will start running based on the input automatically. You can also change all the input fields, like single document url, output format, and more, to match your specific use case.

Receive the "Convert a web page to Markdown for LLMs" output

Monitor the progress in real time. You will be notified as soon as your dataset is complete and ready for review. Each result includes data such as url, status, document type, and more.

Integrate into your workflow

The final output is delivered in JSON, CSV, or Excel format, ready to be plugged into your workflow. You can also run the "Convert a web page to Markdown for LLMs" task via API.

Image

Integrate "Convert a web page to Markdown for LLMs" into your workflow

Connect "Convert a web page to Markdown for LLMs" with 100+ integrations, or run it via API or MCP.

Webhook

Webhook

n8n

n8n

Make

Make

Zapier

Zapier

Airbyte

Airbyte

Keboola

Keboola

IFTTT

IFTTT

Hubspot

Hubspot

GDrive

GDrive

Gmail

Gmail

Apify MCP

Apify MCP

GitHub

GitHub

Slack

Slack

LangChain

LangChain

LlamaIndex

LlamaIndex

Flowise

Flowise

Pinecone

Pinecone

OpenAI

OpenAI

Mastra

Mastra

Clay

Clay

Frequently asked questions

No. It downloads the static HTML once, without JavaScript rendering, cookies or login. Pages that build their content in the browser can return little or no text.

Headings, links, lists and code blocks from the main content, where extraction supports them. Navigation, scripts and common page furniture are removed. Main-content detection is heuristic, so quality varies by site.

USD 0.005 per successfully extracted page. Failed downloads and failed extractions are not charged. The character budget, 20,000 by default and up to 200,000, only limits the returned text.