StackMap
Subscribe
Explore / marker
datalab-to

marker

Datalab's 39k-star PDF-to-Markdown/JSON converter: a layout pipeline plus an optional LLM pass for tables, forms and equations, with chunk output and form-value extraction built in.

39,140 2,803 Python Apache-2.0updated 17 days ago
View on GitHubDispute this mapping →
Curator's take

The default answer when you need a lot of documents turned into clean Markdown on your own hardware: fast per page, tuned by people who do this for a living, and it can call Gemini/Claude/OpenAI-compatible/Ollama models only on the blocks that need help. Two caveats before you ship it: the code is Apache-2.0 but the model weights are OpenRAIL-M (free for research, personal use and companies under $5M funding/revenue), and on genuinely nasty input — scans, handwriting, dense multi-column tables — Datalab's own VLM chandra beats it. Born-digital corpus and no appetite for model calls? Use a deterministic parser instead.

Mapped by ShipWithAI editors · links verified
README.md

Datalab Logo

Datalab

State of the Art models for Document Intelligence

Code License Model License Discord

Homepage Docs Public Playground


Marker

Marker converts documents to markdown, JSON, chunks, and HTML quickly and accurately.

  • Converts PDF, image, PPTX, DOCX, XLSX, HTML, EPUB files in all languages
  • Formats tables, forms, equations, inline math, links, references, and code blocks
  • Extracts and saves images
  • Removes headers/footers/other artifacts
  • Extensible with your own formatting and logic
  • Optionally boost accuracy with LLMs (and your own prompt)
  • Works on GPU, CPU, or MPS

Try Datalab's Managed Platform

Our managed platform runs a version of our latest open source model, Chandra — higher accuracy than Marker, with zero data retention by default, SOC 2 Type 2, and custom BAAs.

If you have high volume workloads, we offer a batch processing service that has processed 1B+ pages per week — we manage the infrastructure so your workloads finish on time.

Get started with $5 in free creditssign up.

Performance

We measure marker on olmocr-bench, a third-party benchmark of 1,403 PDFs with tests covering math, tables, multi-column layout, scans, and hard edge cases. Balanced mode scores 76.0% overall — 83.5% on born-digital PDFs — ahead of MinerU and docling and within range of much larger VLMs, while fast mode runs the layout + text-layer path far cheaper (and a no-OCR mode goes faster still). Scores are the olmocr-bench overall (macro-average across the 8 categories).

See below for the full per-category scores, the competitive comparison, and instructions on how to run your own benchmarks.

Hybrid Mode

For the highest accuracy, pass the --use_llm flag to use an LLM alongside marker. This will do things like merge tables across pages, handle inline math, format tables properly, and extract values from forms. It works with Gemini, Claude, OpenAI-compatible, Azure, Vertex, OpenRouter, or Ollama models. By default, it uses gemini-3.5-flash. See below for details.

Examples

PDF File type Markdown JSON
Think Python Textbook [View](https://github.com/VikParuchuri/marker/blob/master/data/

Continue your stack

What teams reach for next — and why each earns a place beside marker. Ranked by curator confidence.