Marker: High-Accuracy Document Conversion to Markdown and JSON
This repository profile is provided by osrepos.com, an open source repository discovery platform.

Summary
Marker is an open-source Python tool designed for high-accuracy conversion of documents like PDFs, images, and office files into Markdown, JSON, and HTML. It excels at preserving complex formatting, extracting images, and can leverage LLMs for even greater precision. This makes Marker a powerful solution for structured document intelligence.
Repository Information
Use at your own risk
OSRepos shares public repositories for knowledge and discovery only. Any installation, execution, configuration, or use of code from these repositories is the user's own responsibility. Always review the repository, source code, dependencies, licenses, and security implications before running or installing anything. OSRepos is not responsible for issues, damages, or losses resulting from third-party repositories.
Introduction
Marker is a powerful, open-source tool developed by datalab-to, designed to convert various document types into structured formats such as Markdown, JSON, chunks, and HTML with high speed and accuracy. It supports a wide range of input files including PDFs, images, PPTX, DOCX, XLSX, HTML, and EPUB, across all languages.
Key features of Marker include:
- Conversion of diverse file types.
- Accurate formatting of tables, forms, equations, inline math, links, references, and code blocks.
- Extraction and saving of images.
- Intelligent removal of headers, footers, and other artifacts.
- Extensibility for custom formatting and logic.
- Structured extraction based on a JSON schema (beta).
- Optional integration with Large Language Models (LLMs) for boosted accuracy.
- Compatibility with GPU, CPU, and MPS for flexible deployment.
Marker has demonstrated favorable performance in benchmarks against leading cloud services like Llamaparse and Mathpix, as well as other open-source tools, offering superior speed and accuracy.
Installation
To get started with Marker, you'll need Python 3.10+ and PyTorch.
Install the core marker-pdf package:
pip install marker-pdf
For converting documents other than PDFs, install additional dependencies:
pip install marker-pdf[full]
Examples
Marker offers various ways to convert documents, from command-line interfaces to a Python API.
Interactive App
Try Marker interactively with a Streamlit app:
pip install streamlit streamlit-ace
marker_gui
Convert a Single File
Convert a PDF or image file from the command line:
marker_single /path/to/file.pdf
You can specify options like --output_format [markdown|json|html|chunks] and --use_llm for enhanced accuracy.
Convert Multiple Files
Process an entire folder of documents:
marker /path/to/input/folder
This command supports all the options available for marker_single.
Use from Python
Integrate Marker directly into your Python applications:
from marker.converters.pdf import PdfConverter
from marker.models import create_model_dict
from marker.output import text_from_rendered
converter = PdfConverter(
artifact_dict=create_model_dict(),
)
rendered = converter("FILEPATH")
text, _, images = text_from_rendered(rendered)
Marker also provides specialized converters for specific tasks, such as TableConverter for extracting tables, OCRConverter for OCR-only processing, and ExtractionConverter for structured data extraction using a JSON schema.
Why Use Marker
Marker stands out as a robust solution for document conversion due to several compelling reasons:
- Unmatched Accuracy: Benchmarks show Marker consistently outperforms competitors in overall PDF conversion and table extraction, especially when augmented with LLMs.
- High Performance: It offers impressive throughput, processing documents rapidly on various hardware configurations, including GPUs.
- Versatile Input/Output: Supports a broad spectrum of document formats and provides flexible output options including Markdown, JSON, HTML, and optimized chunks for RAG applications.
- LLM Integration: The
--use_llmflag allows leveraging powerful language models like Gemini, Google Vertex, Ollama, Claude, or OpenAI for superior accuracy in complex scenarios like table merging and form extraction. - Extensible Architecture: Its modular design, based on Providers, Builders, Processors, and Renderers, makes it easy for developers to customize and extend its functionality.
- Commercial Options: For enterprise needs, Datalab offers a hosted API and an on-premise solution with high uptime and competitive pricing.
Links
- GitHub Repository: datalab-to/marker
- Datalab Platform: Datalab Platform
- Discord Community: Discord
Related repositories
Similar repositories that may be relevant next.

Micstec Skills: A Comprehensive Collection for AI Coding Agents
August 21, 2026
Micstec Skills is a centralized GitHub repository offering a vast collection of skills, plugins, and extensions for various AI coding agents. It supports platforms like Claude Code, Gemini CLI, Copilot, and Cursor, providing a unified approach to managing AI agent capabilities. Developers can easily discover, install, and enhance their AI-powered development workflows across multiple environments.

dify-official-plugins: Extending Dify with AI Models, Tools, and Agent Strategies
August 18, 2026
The `dify-official-plugins` repository hosts a collection of official plugins for Dify, an open-source platform for developing LLM-powered AI applications. These plugins, including models, tools, agent strategies, and extensions, enhance Dify's capabilities and are maintained by the official Dify team. They are designed to help developers efficiently build, deploy, and manage AI-driven solutions.

Agent Skills: A Standardized Way to Give AI Agents New Capabilities
August 18, 2026
Agent Skills provides a lightweight, open format for extending AI agent capabilities with specialized knowledge and workflows. It allows packaging procedural knowledge and context into portable, version-controlled folders that agents load on demand. This enables agents to gain domain expertise, follow repeatable workflows, and reuse skills across various compatible AI tools.

A-MEM: Self-Evolving Memory for Coding Agents
August 17, 2026
A-MEM is an innovative self-evolving memory system designed for coding agents, organizing knowledge into a dynamic Zettelkasten-style graph. It allows memories to evolve and connect over time, enhancing an agent's ability to recall and utilize information effectively. This system offers both semantic and structural search capabilities for a richer knowledge base.
Source repository
Open the original repository on GitHub.
20 counted GitHub visits