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
Web pages are reduced to the main article: menus, cookie banners and footers are removed. Public Google Docs, Sheets, Slides, Drive, Dropbox and GitHub links work too.
Converters and tools
Each converter is tuned for its format. Pick one for format-specific options and examples, or drop any file into the box above.
PDF to Markdown
Headings, tables and lists from any PDF, with OCR for scans.
Word (DOCX) to Markdown
DOCX, DOC, RTF and ODT with styles, lists, tables and footnotes.
PowerPoint to Markdown
Slides to sections with bullets, tables, chart data and notes.
Excel to Markdown table
Every sheet as a Markdown table, with Excel number formats.
CSV to Markdown table
Paste CSV or TSV and get a Markdown table.
HTML to Markdown
Paste HTML and get clean Markdown.
URL to Markdown
Any web page as clean Markdown, without menus or ads.
Google Docs to Markdown
Docs, Sheets and Slides from a share link.
EPUB to Markdown
E-books in reading order, chapter by chapter.
Email (EML, MSG) to Markdown
EML and Outlook MSG, with attachments converted too.
Image to Markdown (OCR)
Screenshots and scans to text with OCR.
Jupyter notebook to Markdown
Notebooks with code, outputs and notes in order.
Markdown to PDF
Write or paste Markdown and save it as a PDF, in your browser.
Token counter
Count GPT-4o, GPT-4.1 and GPT-5 tokens in any text.
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"])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.
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
- 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
Pro
- 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
Ultra
- 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
Mega
- 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
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.