
PaddleOCR
Self-hosted OCR toolkit turning PDFs and images into LLM-ready data
Replaces Google Document Ai, Amazon Textract, Azure Document Intelligence, Abbyy Vantage, Nanonets
Who it's for
PaddleOCR converts a backlog of PDFs, invoices, or research papers into clean Markdown for chunking and embedding. The PP-StructureV3 pipeline preserves table structure and section headings, which matters for retrieval quality. The library integrates directly with RAGFlow and Dify without additional glue code.
Your documents are already in digital text format such as clean HTML, plain text, or structured databases. PaddleOCR's value is extracting text from image-based or scanned sources; if your pipeline already has text, a simpler text splitter is sufficient.
PP-OCRv6's unified model covers 50 languages with no model switching, including Chinese, Japanese, English, and 46 Latin-script languages. This removes the orchestration overhead of routing documents by language to separate models. The batch Python API handles volume workloads without a managed cloud API dependency.
Your document set is exclusively in a single Latin-script language and you need no table or formula extraction. In that case, lighter single-language OCR tools may offer simpler setup with comparable accuracy.
Because PaddleOCR runs entirely on-premises or in your own cloud, document content never leaves your infrastructure. This matters for legal, healthcare, and financial teams processing contracts, medical records, or financial statements that cannot be sent to a third-party API.
Your documents contain no sensitive data and you prefer a fully managed API with no infrastructure to maintain. Google Document AI or Amazon Textract will have less operational overhead in that scenario.
PaddleOCR.js, the official browser inference SDK released in April 2026, runs PP-OCRv5 directly in the browser without a server round-trip. This fits progressive web apps that need on-device text extraction from camera captures or uploaded images.
You need high-accuracy document parsing for tables, formulas, or complex layouts rather than basic text spotting. The VLM and PP-StructureV3 pipelines are server-side only; PaddleOCR.js covers text recognition in image capture scenarios.
The problem
Cloud OCR services such as Google Document AI, Amazon Textract, and Azure Document Intelligence charge per page processed. Costs compound fast when pipelines handle thousands of invoices, contracts, or research papers monthly. Teams trying to keep budgets predictable either throttle their processing or accept large cloud bills. The second challenge is data residency. Sending scanned documents to a third-party API means raw document content leaves your infrastructure, which is a hard stop for legal, healthcare, and financial teams with strict data-handling requirements. Processing stays on your servers and per-page cost drops to the cost of server time when you run OCR locally.
How it works
PP-OCRv6 covers 50 languages in a single unified model, including Chinese, English, Japanese, and 46 Latin-script languages, with no model switching required for multilingual documents. The wider PP-OCRv5 series reaches 109 languages. Model tiers range from 1.5M parameters (tiny, for edge and mobile) to 34.5M (medium, server-grade accuracy).
PP-StructureV3 converts complex PDF pages and scanned images into structured Markdown or JSON with layout awareness, preserving multi-column text, tables (with cell coordinates), formulas, and figures. The PaddleOCR-VL-1.6 model, a 0.9B vision-language model, achieves 96.3% accuracy on OmniDocBench v1.6 on these tasks.
Runs on NVIDIA GPU, Intel CPU with OpenVINO (5.2x speedup), Kunlunxin XPU, NPU, and Apple Silicon (6.1x speedup on M4). Python 3.8-3.12 on Linux, Windows, and Mac. The smallest model tier (1.5M parameters) runs on edge devices; the medium tier (34.5M) targets server deployment.
Natively integrated with Dify, RAGFlow, Pathway, and Cherry Studio, making it a leading OCR layer for Retrieval-Augmented Generation pipelines. Outputs clean Markdown or JSON that feeds directly into LLM context windows or vector databases without additional cleaning steps.
Converts Word, Excel, and PowerPoint files to Markdown in addition to image and PDF input. Parsed results can also be exported to DOCX for viewing in Microsoft Word. This covers the full range of document formats common in enterprise and research workflows.
Features
- 100-Language Text Recognition
- PDF and Image to Markdown or JSON
- Hardware-Flexible Deployment
- LLM and RAG Pipeline Integration
- Office Document to Markdown Conversion
How to install
Install PaddleOCR via pip to get the core text recognition functionality.
pip install paddleocrRecommended for this setup
Strengths
- Apache-2.0 license with full commercial use: Apache-2.0 lets you run PaddleOCR in production, modify the models, and use the output commercially without licensing fees. Unlike proprietary services such as ABBYY Vantage or Nanonets, there is no per-page billing or annual license cost. You pay for server compute, not access rights.
- Benchmark accuracy competitive with closed-source services: PP-OCRv6 achieves +4.6% detection and +5.1% recognition over PP-OCRv5_server, and outperforms Qwen3-VL-235B and GPT-5.5 on OCR benchmarks with only 34.5M parameters. PaddleOCR-VL-1.6 reaches 96.3% on OmniDocBench v1.6, leading both open-source and proprietary parsers on this benchmark.
- Actively maintained with frequent releases: Six major version releases between October 2025 and July 2026, from 3.2.0 through 3.7.0 plus HPD-Parsing. The last push to the repository was September 2026. Over 6,000 dependent repositories rely on the library in production, providing a large feedback base for bug reports and model improvements.
- 91,000-star community with broad ecosystem adoption: PaddleOCR has 91,118 GitHub stars and 11,488 forks. Deep integration with Dify, RAGFlow, and Cherry Studio means community tooling, tutorials, and production deployments are well-documented across the AI application ecosystem.
Trade-offs
- PaddlePaddle framework dependency: Core inference defaults to the PaddlePaddle deep learning framework, which is less widely used in the Python ML ecosystem than PyTorch or TensorFlow. Starting with version 3.5.0, a Transformers backend was added as an alternative, but documentation and community examples are still primarily PaddlePaddle-centric. Developers already invested in PyTorch-native toolchains face additional setup steps.
- Resource requirements scale with document complexity: Basic text recognition on the tiny model (1.5M parameters) runs on minimal CPU, but the full PP-StructureV3 pipeline for complex PDFs and the VLM-based parsers need more RAM and benefit from GPU. Running the VL-1.6 (0.9B) model locally for high-throughput PDF parsing requires a capable server or GPU instance, not a shared VPS.
- Full document parsing pipeline requires more than pip: Basic OCR with pip install paddleocr works immediately, but high-throughput PDF parsing with PP-StructureV3 or the VLM models requires additional dependencies. The 3.2.0 release separated core from optional dependencies, but teams needing table extraction, formula recognition, or the VLM pipeline need to install extra packages and configure the appropriate backend.
Tech stack
FAQ
Yes. PaddleOCR is licensed under Apache-2.0, which permits commercial use, modification, and distribution with no licensing fees. You can run it on your own infrastructure, build products with it, and use its output commercially without restriction. Attribution to the project is required under the license but there is no cost.
PP-OCRv6 supports 50 languages in a single unified model, including Chinese (simplified and traditional), English, Japanese, Korean, and 46 Latin-script languages. The broader PP-OCRv5 multilingual series, including the PaddleOCR-VL models, covers 109 languages including Cyrillic, Arabic, Devanagari, and Bengali scripts. You do not need to switch models for multilingual documents within the PP-OCRv6 50-language set.
PaddleOCR runs self-hosted with no per-page billing; Google Document AI is a managed API that charges per page processed. On the OmniDocBench v1.6 benchmark, PaddleOCR-VL-1.6 reaches 96.3% accuracy, competitive with commercial services. Google Document AI is the better choice if you need zero infrastructure and are comfortable with API-based processing and its costs. PaddleOCR is better when you need data residency, cost predictability, or the ability to modify the extraction pipeline.
Basic text recognition with the tiny model (1.5M parameters) runs on CPU with minimal resource requirements. GPU support covers NVIDIA CUDA (including RTX 50 series), Apple M4 (6.1x speedup with the tiny model), Intel OpenVINO (5.2x CPU speedup for PP-OCRv6), Kunlunxin XPU, and NPU. For the VLM-based document parsing pipeline, a capable server or GPU instance is recommended for production throughput.
Yes. The PP-StructureV3 pipeline and PaddleOCR-VL series both convert PDF documents and images to Markdown or JSON, preserving table structure, section headings, formulas, and figure positions. The PaddleOCR-VL-1.6 model (0.9B parameters) handles complex layouts including multi-column text, ancient documents, and seals, outputting structured Markdown for direct use in AI pipelines.