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.
Input
Output fields
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.

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
n8n
Make
Zapier
Airbyte
Keboola
IFTTT
Hubspot
GDrive
Gmail
Apify MCP
GitHub
Slack
LangChain
LlamaIndex
Flowise
Pinecone
OpenAI
Mastra
Clay
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.