Marker

Converts PDFs and office documents into Markdown or JSON, handling tables, equations, and OCR locally.

Open SourceSelf HostedOffline CapableGPU Required (4GB+ VRAM)
0.0 (0)

About

Marker turns PDFs, images, and office formats such as DOCX, PPTX, XLSX, EPUB, and HTML into Markdown, JSON, HTML, or retrieval-ready chunks, keeping tables, equations, code, links, and figures and dropping page headers and footers. It reads the embedded text layer where that is reliable and calls Datalab's Surya vision-language model for layout, OCR, inline math, and damaged pages, served by a local vLLM container on NVIDIA GPUs or by llama.cpp on CPUs and Apple Silicon. A balanced mode favors quality on GPUs, a fast mode keeps model calls to a minimum on CPUs, and an optional flag hands hard sections to an LLM such as Gemini, Claude, or Ollama to join tables split across pages and read forms. It ships single-file and batch CLIs, a Python API, and a small Streamlit app. Install it with pip install marker-pdf on Python 3.10 or later with PyTorch. Code is Apache 2.0; the weights ship under a modified OpenRAIL-M license that costs nothing for research, individuals, and startups below 5 million dollars of funding or revenue, while larger companies pay Datalab. It suits RAG builders and anyone digitizing papers or books.

Should you use Marker?

Pick it when

Choose Marker when you convert PDFs, especially papers and technical docs with equations and tables, into clean Markdown or JSON, on a GPU for best quality or a CPU fast mode, and you sit under its weights license threshold.

Look elsewhere when

Skip it if your company is past 5 million dollars in funding or revenue and will not license the model weights; Docling is MIT with no cap. For handwriting and filled forms, Chandra is the better-targeted model.

Alternatives to Marker

  • Docling

    MIT-licensed with no revenue cap, handles Office files and audio, and ships framework integrations, though Marker concentrates on PDF to Markdown quality.

  • MinerU

    Same PDF to Markdown aim for scientific documents with a far higher commercial threshold, but its custom license requires attribution if you run it as an online service.

  • Surya OCR

    From the same author; use it when you want line-level JSON with polygons and confidence scores rather than finished Markdown.

  • Nougat

    Specialized for English arXiv-style papers with LaTeX math, but its weights are non-commercial and it struggles with non-Latin scripts.

Reviews (0)

Leave a Review

No reviews yet. Be the first to review!