talira

Convert PDF to markdown + JSON quickly with high accuracy

source availableApache-2.0 AND Datalab OpenRAIL-M (modified)self-hostablefree

Marker is Datalab's document converter: it turns PDFs, images, PPTX, DOCX, XLSX, HTML and EPUB into Markdown, JSON, HTML or RAG-ready chunks, formatting tables, forms, equations (as LaTeX), links and code, extracting images and removing headers and footers. Marker 2 reads the PDF's own text layer with pdftext and routes only scanned, garbled, math, table or non-Latin content to Datalab's Surya VLM, with four modes: no_ocr and fast run entirely on CPU with small ONNX layout and OCR models, balanced mixes CPU and a GPU VLM, and vllm OCRs every page. An optional --use_llm pass with Gemini, Claude, OpenAI-compatible models or Ollama merges tables across pages and fixes formatting. The code is Apache-2.0, but the model weights are under a modified OpenRAIL-M licence that's free only for research, personal use and companies under $5M in revenue and funding; Datalab sells commercial and on-prem licences and runs a hosted API.

Problems it solves

  • convert research papers full of equations to Markdown with the math as LaTeX
  • turn PDFs into Markdown on a laptop CPU with no GPU or inference server
  • pull text, reading order and tables out of thousands of born-digital PDFs at dozens of pages a second
  • OCR only the scanned or garbled pages and keep the PDF's own text everywhere else
  • strip running headers, footers and page numbers when converting PDFs for an LLM
  • chunk converted PDFs block by block with HTML for a RAG index
  • convert Word, PowerPoint, Excel and EPUB files to Markdown with the same tool as our PDFs
  • fix tables that run across pages by letting Gemini or Claude clean up the conversion
  • extract just the tables from PDFs as HTML with their page bounding boxes
  • run a self-hosted PDF to Markdown HTTP API for our own services
  • batch-convert a large PDF archive on one GPU machine without running out of VRAM
  • give my coding agent a command that prints a PDF as Markdown to stdout

Features

  • inputs: PDF, images, PPTX, DOCX, XLSX, HTML, EPUB
  • outputs: Markdown, JSON block tree, HTML, chunks
  • modes: no_ocr and fast (CPU, in-process ONNX), balanced (GPU VLM where needed), vllm (full-page VLM OCR)
  • selective OCR of scanned, garbled, math and non-Latin pages
  • tables, forms, equations as LaTeX, inline math, code blocks, links
  • image extraction and header/footer removal
  • optional LLM pass (--use_llm) with Gemini, Vertex, Claude, OpenAI-compatible, Azure OpenAI, OpenRouter or Ollama
  • TableConverter and OCRConverter pipelines
  • custom processors, renderers and providers
  • marker_server FastAPI server and interactive viewer
View 2 more
  • batch conversion with shared inference server and multi-node sharding
  • agent skill (marker_single --install_skill)

Limitations

  • Model weights aren't free for commercial use by larger companies: over $5M in revenue or funding needs a licence from Datalab, and competing products are barred12
  • Complex layouts with nested tables and forms may not convert well: the README lists them as known limitations3

Ways to run it

Marker (open source)

You run it, Apache-2.0 AND Datalab OpenRAIL-M (modified) (source-available)

free; model weights free for research, personal use and companies under $5M in revenue and funding13

Only in this edition

  • all conversion modes, CLI, Python API, marker_server

Not included

  • commercial use of the model weights by companies over $5M in revenue or funding

You arrange

  • Python 3.10+ and PyTorch
  • for balanced and vllm modes: Docker with the NVIDIA Container Toolkit (vLLM) on NVIDIA GPUs, or llama.cpp's llama-server elsewhere
  • API keys for an LLM service if you use --use_llm

Self-hosting docs

Datalab commercial and on-prem licence

You run it, under a commercial licence

contact sales23

Only in this edition

  • commercial use of the Marker, Surya and Chandra weights above the revenue and funding thresholds
  • on-prem deployment with high-throughput inference optimisations

Pricing

Datalab API

Hosted by Datalab

Free ($20 one-time credit), Launch $25/month, Team $400/month, Enterprise custom; Convert $0.375 to $7.50 per 1,000 pages24

Only in this edition

  • Chandra and other models, which Datalab says are more accurate than Marker
  • structured extraction, form filling, segmentation, redaction, track changes
  • SOC 2 Type II report; BAA on Team and Enterprise; SSO and own-VPC on Enterprise; EU processing for 25% more

Pricing

Capabilities

Has an APIplan not known
Has a command line toolplan not known
Has official SDKsplan not known
Has single sign-onplan not known

Alternatives

The same job

These do what Marker does.

  1. MinerU Transforms complex documents like PDFs and Office docs into LLM-ready markdown/JSON for your Agentic workflows
  2. olmOCR Open toolkit that turns PDFs and scans into clean Markdown with a 7B vision model
  3. LlamaParse Parse transforms messy documents into AI-ready data at scale
  4. PaddleOCR Turn any PDF or image document into structured data for your AI
  5. Docling Get your documents ready for gen AI
  6. PyMuPDF A high performance Python library for data extraction, analysis, conversion & manipulation of PDF (and other) documents.

Compare Marker with the top 3