Go to example tasks

Convert raw HTML strings to Markdown

Convert raw HTML, resolve links against a base URL.

Try for free
HTML to Markdown Converter for LLM and RAG
HTML to Markdown Converter for LLM and RAGucchiii/html-to-markdown
Data source
Page URL
Item title
Markdown content
+5 fields
Text
Number
Boolean
List
Object

Input

Raw HTML strings:<main><h1>Hello</h1><p>See the <a href="/docs">docs</a>.</p></main>
Base URL for raw HTML:https://example.com

Output fields

Data source
Page URL
Item title
Markdown content
Word count
Character count
Truncated flag
Status value
Error code

How it works

Sign up on Apify or log in

The HTML to Markdown Converter for LLM and RAG Actor is ready to run with the inputs already set for "Convert raw HTML strings to Markdown". Sign up or log in and you'll land in Apify Console with a copy of this exact task.

Start the "Convert raw HTML strings to Markdown" task

The HTML to Markdown Converter for LLM and RAG Actor will start running based on the input automatically. You can also change all the input fields, like raw html strings and base url for raw html, to match your specific use case.

Receive the "Convert raw HTML strings to Markdown" 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 data source, page url, item title, 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 raw HTML strings to Markdown" task via API.

Image

Integrate "Convert raw HTML strings to Markdown" into your workflow

Connect "Convert raw HTML strings to Markdown" 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