Convert anything to Markdown

PDF, Word, PowerPoint, Excel, web pages, e-mails, e-books and scanned images become clean Markdown, with headings, lists, tables and links intact. Free online, or one API call from your app.

  • Free, no sign-up
  • 30+ formats
  • Tables & OCR
  • Files not saved
  • API & MCP

Why convert documents to Markdown?

  • Better LLM answers. Models see what is a heading, a list or a table, instead of a wall of text.
  • Fewer tokens. Markdown is far smaller than HTML and has none of the noise of copied PDF text.
  • Better RAG retrieval. Chunks that follow sections and keep tables whole are easier to retrieve and cite.
  • Portable. Markdown works in GitHub, GitLab, Obsidian, Notion, wikis and static site generators.

Built for developers

The same engine is an API: Markdown, metadata, page-by-page content, RAG chunks with heading breadcrumbs and page numbers, and exact OpenAI token counts, in one request.

import requests

r = requests.post(
    "https://anytomarkdown-pdf-to-markdown-and-document-parser-api.p.rapidapi.com/v1/convert",
    headers={"X-RapidAPI-Key": "YOUR_KEY", "X-RapidAPI-Host": "anytomarkdown-pdf-to-markdown-and-document-parser-api.p.rapidapi.com"},
    files={"file": open("report.pdf", "rb")},
    params={"includeChunks": "true", "chunkSize": 512},
)
data = r.json()
print(data["content"])          # Markdown
print(data["stats"]["tokens"])  # exact token count
for chunk in data["chunks"]:    # RAG-ready, with headings and pages
    print(chunk["headings"], chunk["pageStart"])

Get a free API key API overview

A tool for AI agents

AnyToMarkdown includes a Model Context Protocol (MCP) server. Add it to Claude Code, Claude Desktop, Cursor or VS Code and your agent can read PDFs, Office files and web pages as Markdown on its own.

Set up the MCP server

claude mcp add --transport http anytomarkdown https://anytomarkdown-pdf-to-markdown-and-document-parser-api.p.rapidapi.com/mcp \
  --header "X-RapidAPI-Key: YOUR_KEY" \
  --header "X-RapidAPI-Host: anytomarkdown-pdf-to-markdown-and-document-parser-api.p.rapidapi.com"

API pricing

Start free. Plans are billed through RapidAPI and can be changed or cancelled any time. The online converter on this site stays free.

Basic

$0 free forever
  • 1,000 conversions / month
  • Files up to 10 MB
  • 50 pages per file
  • OCR on 5 pages per file
  • All formats, chunks and token counts
Start free

Pro

$9.99 / month
  • 5,000 conversions / month
  • Files up to 25 MB
  • 500 pages per file
  • OCR on 50 pages per file
  • All formats, chunks and token counts
  • 5 requests/s
Choose Pro

Ultra

$49.99 / month
  • 25,000 conversions / month
  • Files up to 50 MB
  • 2,000 pages per file
  • OCR on 200 pages per file
  • All formats, chunks and token counts
  • 10 requests/s
Choose Ultra

Mega

$149.99 / month
  • 100,000 conversions / month
  • Files up to 100 MB via URL
  • 5,000 pages per file
  • OCR on 500 pages per file
  • All formats, chunks and token counts
  • 20 requests/s
Choose Mega

Frequently asked questions

What does AnyToMarkdown do?

It converts documents and web pages into clean Markdown: PDF, Word, Excel, PowerPoint, HTML and URLs, e-mails, e-books, notebooks, images (with OCR) and more. Use it free on this site, or through the API in your own app.

Is it free?

The online converter is free without an account for files up to 5 MB and 20 pages. The API has a free plan with 1,000 conversions a month and paid plans for higher volume.

Why Markdown?

Markdown keeps a document's structure (headings, lists, tables, links) in plain text. LLMs understand it better and it uses fewer tokens than HTML or raw PDF text, and it works in GitHub, Obsidian, Notion and documentation tools.

Are my files safe?

Files are processed in memory, are not saved and are never used for training. See the privacy page.

Which formats are supported?

PDF (text and scanned), DOCX, DOC, RTF, ODT, EPUB, XLSX, XLS, ODS, CSV, TSV, PPTX, PPT, ODP, HTML, MHTML, any public URL, RSS and Atom feeds, EML and Outlook MSG, Jupyter notebooks, SRT and VTT subtitles, JSON, XML, source code, ZIP archives and PNG, JPG, TIFF and WebP images.

Can AI agents use it?

Yes. The API includes an MCP server, so Claude, Cursor, VS Code and other MCP clients can convert files and URLs as a tool.