Data & ExtractionOpen source codeVikParuchuri/marker

Marker: Open Source AI Repository & Self-Hosting Guide

Open-source high-throughput PDF, EPUB, and Office converter outputting structured Markdown, JSON, and HTML with Surya OCR and optional LLM refinement.

GitHub Stars
41,180 stars
Repository License
Apache-2.0
Last Push (UTC)
Dec 4, 2026
Check the repo's license. Model weights may have a different license.
git clone https://github.com/VikParuchuri/marker.git
View on GitHub
Installpip install marker-pdf && marker_single document.pdf

Marker: Architecture & Practical Workflow

Marker merges deep-learning layout heuristics and Surya OCR to cleanly extract multi-column papers, mathematical formulas, code blocks, and complex tables significantly faster than heavy end-to-end VLM parsers.

Recommended End-to-End Pipeline

Run `marker` batch workers on archival PDF folders to build fast Markdown datasets, toggling `--use_llm` selectively only on pages with irregular multi-header tables.

Runtime Target
Self-Hosted / Python CLI & Server (GitHub)
Primary Users
AI Engineers, Technical Writers, Data Teams
Code License
Apache-2.0
Focus Topics
open-source, github, pdf-to-markdown, ocr, json

Quick Setup & Installation Steps

Platform target: Self-Hosted / Python CLI & Server (GitHub). Always verify environment variables and dependencies in the upstream repository README.

  1. 1Clone the repository from GitHub: `git clone https://github.com/VikParuchuri/marker.git && cd marker`.
  2. 2Review the Apache-2.0 license (Check the repo's license. Model weights may have a different license.) and note any separate terms on external model weights.
  3. 3Install or launch the project directly: `pip install marker-pdf && marker_single document.pdf` (use an isolated Python virtualenv, Node workspace, or Docker volume so dependencies remain clean).
  4. 4Validate end-to-end behavior with a small sample input (Run `marker` batch workers on archival PDF folders to build fast Markdown datasets, toggling `--use_llm` selectively only on pages with irregular multi-header tables.)

Hardware & VRAM Notes

Hardware & VRAM guidance: GPU recommended for large batch PDF jobs

GPU & VRAM

GPU recommended for large batch PDF jobs

System RAM & Storage

16 GB–32 GB system RAM recommended plus 10 GB–40 GB free SSD space for container images, Python dependencies, and model weights.

Runtime Target

Self-Hosted / Python CLI & Server (GitHub)

Strengths & Best For

  • Converts PDFs, images, PPTX, and DOCX to Markdown or structured JSON
  • High-accuracy table extraction and inline equation formatting
  • Optional LLM hybrid mode for extra-messy scanned documents
  • Best suited for: AI Engineers, Technical Writers, Data Teams

Limitations & Caveats

  • Commercial use of model weights requires checking the repo revenue threshold
  • GPU recommended for large batch PDF jobs
  • Check the repo's license. Model weights may have a different license.

3 Similar Tools on /tools (Data)

Prefer a hosted web app instead of managing local weights or Docker containers? Explore these cloud alternatives.

Browse all tools
Self-Hosted Marker vs. Hosted Alternatives (AI PDF Data Extractor & ChatCSV)
FactorMarker (Self-Hosted)AI PDF Data ExtractorChatCSV
Execution & PrivacyRuns locally via Self-Hosted / Python CLI & Server (GitHub); data stays on your disk or private server.Hosted cloud web interface; zero local dependency setup required.Hosted cloud web interface; zero local dependency setup required.
Cost & QuotaApache-2.0 code; bound only by local CPU/GPU hardware.Free; subject to vendor free-tier limits or paid plans.Freemium; subject to vendor free-tier limits or paid plans.
Primary FitConverts PDFs, images, PPTX, and DOCX to Markdown or structured JSON; High-accuracy table extraction and inline equation formattingExtract tables, form fields, and scanned PDF documents into structured Excel (.xlsx), CSV, or JSON without coding or regex templates.Chat with your CSV files. Upload a spreadsheet and ask questions in natural language.
Key Trade-offCommercial use of model weights requires checking the repo revenue thresholdRequires internet access and vendor account/quota limits.Requires internet access and vendor account/quota limits.

Matching Ready-Made Prompts

All Prompts →

Customize variables in Live Prompt Studio for Marker workflows.

Universal Invoice & Receipt Structured JSON ParserExtraction · Invoice, Accounting, JSON, Automation
Open in Studio
Complex Bank Statement & Ledger NormalizerExtraction · Finance, Bank Statement, Excel, CSV
Open in Studio
B2B Purchase Order (PO) to ERP Line Items ParserExtraction · Purchase Order, ERP, Supply Chain, JSON
Open in Studio

More Open Source Data & Extraction Repositories

Frequently Asked Questions

What does Marker do and how does it work?

Marker (VikParuchuri/marker) is an open-source data & extraction project with 41,180 stars on GitHub. Open-source high-throughput PDF, EPUB, and Office converter outputting structured Markdown, JSON, and HTML with Surya OCR and optional LLM refinement. Marker merges deep-learning layout heuristics and Surya OCR to cleanly extract multi-column papers, mathematical formulas, code blocks, and complex tables significantly faster than heavy end-to-end VLM parsers.

Is Marker free to self-host and use commercially?

Marker provides open source code licensed under Apache-2.0. Check the repo's license. Model weights may have a different license. Always verify both source code and model weight licenses in the GitHub repository before commercial deployment.

What hardware, runtime, or VRAM does Marker require?

Marker targets Self-Hosted / Python CLI & Server (GitHub). Typical installation runs via `pip install marker-pdf && marker_single document.pdf`. Commercial use of model weights requires checking the repo revenue threshold

How does self-hosting Marker compare to hosted tools like AI PDF Data Extractor?

Self-hosting Marker gives you full local data control, zero per-usage vendor fees, and customizable Self-Hosted / Python CLI & Server (GitHub) pipelines—at the cost of managing your own setup and compute. By contrast, AI PDF Data Extractor (Free) runs in the browser with no local installation, though usage quotas and cloud privacy policies apply.

Is Marker actively maintained and what workflow fits it best?

Repository metadata records 41,180 stars on GitHub with the latest recorded push on Dec 4, 2026. Run `marker` batch workers on archival PDF folders to build fast Markdown datasets, toggling `--use_llm` selectively only on pages with irregular multi-header tables.