VOOZH about

URL: https://apify.com/santamaria-automations/html-to-markdown

⇱ HTML to Markdown Converter - Bulk Web Content to MD Β· Apify


πŸ‘ HTML to Markdown Converter - Bulk Web Content to MD avatar

HTML to Markdown Converter - Bulk Web Content to MD

Pricing

from $3.00 / 1,000 url converteds

Go to Apify Store

HTML to Markdown Converter - Bulk Web Content to MD

Extract main article content from any website and convert to clean Markdown including headings, links, images, tables, and code blocks. Perfect for LLM training, AI pipelines, and documentation. Export data, run via API, schedule and monitor runs, or integrate with other tools.

Pricing

from $3.00 / 1,000 url converteds

Rating

0.0

(0)

Developer

πŸ‘ Ale

Ale

Maintained by Community

Actor stats

0

Bookmarked

2

Total users

1

Monthly active users

2 months ago

Last modified

Share

Convert any website to clean Markdown β€” perfect for LLM training, AI pipelines, and documentation.

Give the actor a list of URLs and get back clean, well-formatted Markdown for every page. Tables, code blocks, images, and nested lists are preserved. Navigation bars, footers, cookie banners, sidebars, and ads are stripped out automatically via readability-style main content extraction.

Features

  • Readability-style extraction β€” returns the article body, not the whole page
  • Tables preserved β€” HTML tables become proper Markdown tables with pipes and separators
  • Code blocks preserved β€” <pre> and <code> blocks kept intact, fenced and ready for LLMs
  • Images preserved β€” alt text, titles, and absolute URLs
  • Nested structures β€” lists inside lists, blockquotes, headings all handled correctly
  • Strikethrough β€” <s>, <strike>, <del> converted to ~~text~~
  • Outbound link discovery β€” every external link the page points to, with anchor text
  • Smart metadata β€” page title, meta description, Open Graph, content type classification
  • Parallel processing β€” 6 URLs at a time for fast bulk conversion
  • Tiny footprint β€” minimal compute usage keeps your bill low

Use with AI Agents (MCP)

Connect this actor to any MCP-compatible AI client β€” Claude Desktop, Claude.ai, Cursor, VS Code, LangChain, LlamaIndex, or custom agents.

Apify MCP server URL:

https://mcp.apify.com?tools=santamaria-automations/html-to-markdown

Example prompt once connected:

"Use html-to-markdown to process data with html to markdown. Return results as a table."

Clients that support dynamic tool discovery (Claude.ai, VS Code) will receive the full input schema automatically via add-actor.

Example Output

Input URL: https://en.wikipedia.org/wiki/Markdown

# Markdown
**Markdown** is a lightweight [markup language](/wiki/Markup_language) for
creating [formatted text](/wiki/Formatting_(word_processing)) using a
[plain-text editor](/wiki/Text_editor). [John Gruber](/wiki/John_Gruber)
created Markdown in 2004 as an easy-to-read markup language.
## Examples
Text using Markdown syntax:
​```
# Heading
Paragraphs are separated
by a blank line.
**bold**, *italic*, `monospace`
​```
Bullet lists nested within numbered list:
1. fruits
- apple
- banana
2. vegetables
- carrot
- broccoli
## See also
-[CommonMark](/wiki/CommonMark)
-[reStructuredText](/wiki/ReStructuredText)
-[AsciiDoc](/wiki/AsciiDoc)

Clean, readable, LLM-ready. No navigation menus, no "Toggle sidebar", no language switcher.

Input

{
"urls":[
"https://en.wikipedia.org/wiki/Markdown",
"https://blog.apify.com/"
],
"extractMainContent":true,
"includeImages":true,
"includeTables":true,
"includeStrikethrough":true,
"followRedirects":true,
"maxContentLengthKB":500,
"timeoutSeconds":30
}
FieldTypeDefaultDescription
urlsarray of stringsrequiredURLs to fetch and convert
extractMainContentbooleantrueStrip navigation, ads, footers β€” return only article body
includeImagesbooleantrueKeep image links in output
includeTablesbooleantrueEnable table conversion plugin
includeStrikethroughbooleantrueEnable ~~strikethrough~~ plugin
followRedirectsbooleantrueFollow HTTP 3xx redirects
maxContentLengthKBinteger500Per-URL HTML size cap
timeoutSecondsinteger30Per-URL download + parse timeout

Output

One record per input URL:

{
"url":"https://en.wikipedia.org/wiki/Markdown",
"final_url":"https://en.wikipedia.org/wiki/Markdown",
"success":true,
"error":"",
"page_title":"Markdown - Wikipedia",
"page_description":"Markdown is a lightweight markup language...",
"markdown":"# Markdown\n\n**Markdown** is a lightweight...",
"markdown_length":36278,
"word_count":2907,
"html_length":195413,
"content_type":"article",
"images":[
"https://upload.wikimedia.org/wikipedia/commons/..."
],
"links":[
{"text":"John Gruber","url":"https://daringfireball.net/"}
],
"main_content_only":true,
"scraped_at":"2026-04-07T12:34:56Z"
}

content_type is one of: article, blog, documentation, generic β€” detected from JSON-LD schema, <article> tags, and code block density.

Main Content Extraction

When extractMainContent is enabled, the actor tries these strategies in order:

  1. JSON-LD articleBody β€” Schema.org Article, BlogPosting, or NewsArticle
  2. CSS selectors β€” .mw-parser-output, .article-content, .post-content, .entry-content, .article-body, .post-body, #mw-content-text, #content, #main
  3. Semantic tags β€” <article>, <main>, [role=main]
  4. Body fallback β€” <body> with navigation, footer, aside, script, style, forms, and common noise classes removed

This gives much cleaner Markdown output for articles and blog posts than a naive conversion of the entire page.

Use Cases

  • LLM training data β€” build high-quality datasets from web content for fine-tuning
  • AI RAG pipelines β€” ingest web content into vector DBs (Pinecone, Weaviate, Qdrant) as clean chunks
  • Content archiving β€” save articles, blog posts, and documentation as portable Markdown files
  • Documentation conversion β€” migrate legacy HTML docs to Markdown-based static site generators
  • Newsletter generation β€” extract clean article text for email newsletters without HTML clutter
  • Note-taking workflows β€” save web articles directly to Obsidian, Notion, Logseq, or any Markdown tool
  • Research and summarization β€” feed AI summarizers with the actual content, not navigation menus
  • Knowledge base construction β€” build searchable knowledge bases from public web content
  • Competitor content analysis β€” bulk-convert competitor blogs for analysis

Pricing

Pay-per-event β€” you only pay for URLs you actually convert:

EventPrice
Actor start$0.001
URL converted$0.003

1,000 URLs β‰ˆ $3.00

No hidden platform fees, no surprise compute charges.

Related Actors


Built by santamaria-automations.

You might also like

Website Content to Markdown for LLM Training

easyapi/website-content-to-markdown-for-llm-training

πŸš€ Transform web content into clean, LLM-ready Markdown! πŸ“˜ Scrape multiple pages, extract main content, and convert to Markdown format. Perfect for AI researchers, data scientists, and LLM developers. Fast, efficient, and customizable. Supercharge your AI training data today! πŸŒπŸ“πŸ§ 

HTML to Markdown

web.harvester/html-to-markdown

Convert HTML to clean Markdown. Supports GFM tables, code blocks, and custom rules. Perfect for content migration and documentation.

3

Website To Markdown

smart_api/website-to-markdown

Convert any webpage into clean, LLM-ready Markdown in seconds β€” perfect for AI training data, RAG pipelines, and content archiving.

Website to Markdown Crawler for LLM & RAG

logiover/website-text-markdown-crawler

Crawl any website to clean Markdown and plain text for LLM training and RAG. HTML to Markdown, no API or login. Export website text to CSV or JSON.

AI Website Content Extractor

scrapeai/ai-website-content-extractor

Crawl website pages, strip noise, and convert the main content to clean Markdown for RAG/LLM training.

Website to Markdown Converter

lofomachines/website-to-markdown-converter

Best faster and cheaper way to convert any web page into clean, structured, LLM-ready Markdown.

Html To Markdown Converter πŸ“„

powerful_bachelor/html-to-markdown-converter

πŸ“„βœ¨ HTML to Markdown Converter transforms web pages into clean, portable Markdown. Simply input a URL to extract content while preserving structure, formatting, and media elements.πŸ”„ Perfect for content repurposing, documentation, and creating readable, platform-independent text from any webpage! πŸš€

πŸ‘ User avatar

Powerful Bachelor

36