Go to example tasks

HTML to Markdown: convert web pages and HTML files for LLMs

Convert web pages and HTML files to clean Markdown with headings, lists and tables, plus RAG chunks with a heading path. Paste page links or upload .html files.

Try for free
PDF Text Extractor & PDF to Markdown: Tables, OCR, RAG
PDF Text Extractor & PDF to Markdown: Tables, OCR, RAGbigkerm/document-to-markdown-tables-ocr
URL
Status
File type
Pages in file
+4 fields
Text
Number
Boolean
List
Object

Input

Document links:https://en.wikipedia.org/wiki/Markdown
What to return:markdown+1
Chunk size (tokens):800

Output fields

URL
Status
File type
Pages in file
OCR pages
Tables
Words
Error or reason

How it works

Sign up on Apify or log in

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

Start the "HTML to Markdown: convert web pages and HTML files for LLMs" task

The PDF Text Extractor & PDF to Markdown: Tables, OCR, RAG Actor will start running based on the input automatically. You can also change all the input fields, like document links, what to return, and more, to match your specific use case.

Receive the "HTML to Markdown: convert web pages and HTML files 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, file 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 "HTML to Markdown: convert web pages and HTML files for LLMs" task via API.

Image

Integrate "HTML to Markdown: convert web pages and HTML files for LLMs" into your workflow

Connect "HTML to Markdown: convert web pages and HTML files 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 converts the HTML the server sends. Pages built in the browser by scripts can come out empty.

HTML has no fixed pages, so it is split into sections of about 500 words and each section counts as a page.

No, it converts the links you give it. Use a crawler first and pass the page links in.