Markdown API
Website to Markdown use cases
Recipes for converting web pages, documents and videos into clean Markdown for LLMs and RAG pipelines: boilerplate-free articles, metadata frontmatter, JavaScript-rendered apps, PDFs and office files, YouTube transcripts and crawl-scale conversion. One problem per page, with the code to run and what the conversion does not cover.
Use cases
Pick the problem you are solving
Markdown with metadata frontmatter
Get each page as Markdown with a YAML frontmatter block: title, author, date, word count and reading time.
Clean Markdown, no boilerplate
Convert only the article body: one selector keeps navigation, ads and widgets out of the Markdown.
LLM context from any URL
Compose Markdown, links, emails, metadata and tech stack from one URL into a context object for your agent.
PDF and office documents to Markdown
Convert PDF, DOCX, XLSX and PPTX URLs to readable Markdown with the same request you use for web pages.
YouTube transcripts as Markdown
Get the caption transcript of any watch, share or shorts URL as Markdown, with the video title, author and date.
Markdown from JavaScript-rendered pages
Render single-page apps in a real browser, wait for the content, then convert the finished DOM to Markdown.
Markdown from bot-protected pages
Convert pages behind Cloudflare, DataDome or Akamai: one option routes the request through the built-in proxy.
Bulk Markdown conversion with caching
Convert thousands of URLs in parallel, cached per URL and refreshed in the background for cheap re-indexing.
Start here
Docs and resources
Ready to convert any URL to Markdown?
Every recipe on this page runs on the same endpoint. Start on the free tier, add an API key when you need proxies, custom headers or longer caching.
Other use cases
Explore the other Microlink APIs
Mobile screenshots at any viewport
Emulate an iPhone, a Pixel, an iPad or any custom viewport and capture the page exactly as those visitors see it.
Screenshots without cookie banners or ads
Ads, trackers and consent popups are blocked before the page renders, and one option dismisses first-party banners.
PDF invoices from authenticated pages
Print the invoice page your app already renders: forward the session, hide the chrome, name the file.
Clean PDFs without ads or banners
Get a document, not a browser tab: ads and consent popups blocked by default, sticky chrome removed with one CSS rule.
Custom fields alongside metadata
Get prices, ratings, headings or any CSS selector, typed and returned next to the normalized metadata.
Fix missing or wrong og:image
Override any normalized field with a rule and chain fallbacks so link previews never render empty.