Best Open-Source OCR Tools for Invoices
softwareTable of Contents
Founder & technical writer at Vocxa. LinkedIn
The best open-source OCR tools for invoices in late 2026 are PaddleOCR, MinerU and Docling for most business teams, with Tesseract as the lightweight fallback. All four can run on your own server, so supplier invoices, receipts and delivery notes never leave your network. Which one fits depends on three things: whether you need Arabic, whether you have a GPU, and whether you want plain text or structured tables your ERP can read.
We've spent more than 11 years in food-industry tech, and supplier invoices are still one of the slowest steps in a restaurant back office. This guide compares eight options using what their own repositories and licence files say, as of November 2026.
Why use open-source OCR tools for invoices at all?
Three reasons matter most for Saudi and GCC SMEs.
Data stays in-house. Supplier invoices carry VAT numbers, bank details and pricing. If you run OCR on your own server, you avoid sending that data to a third-party API, which also makes your PDPL obligations easier to manage.
Cost at volume. Per-page cloud pricing adds up across thousands of documents a month. Open-source tools cost compute and engineering time instead.
Control over the output. You decide the JSON shape, the field names and where the data lands, whether that's Oracle, Odoo, a Laravel back office or an n8n workflow.
One clarification before the list. Your own sales invoices in KSA are generated as structured XML under ZATCA's e-invoicing rules, so you don't OCR those. OCR is for the documents that arrive from outside: supplier PDFs, scanned delivery notes, photographed receipts and older paper records. If you're still preparing your own Fatoora integration, read our ZATCA Wave 25 guide first.
The 8 best open-source OCR tools compared
Star counts were read from each GitHub page in November 2026. Treat them as a signal of community size, not quality.
1. PaddleOCR
What it is: A full OCR and document-parsing toolkit from Baidu's PaddlePaddle team that turns PDFs and images into Markdown or JSON. PaddleOCR on GitHub shows about 91.7k stars and an Apache-2.0 licence as of November 2026.
Best for: Mixed Arabic and English documents, and teams that want structured output for an LLM or RAG pipeline.
The release notes say PP-OCRv5 multilingual models added Arabic among 109 languages, and version 3.7.0 (June 2026) shipped PP-OCRv6 in tiny, small and medium sizes. PP-StructureV3 returns table cell coordinates, which matters when you need line items rather than a blob of text.
- Pros: Arabic support, small models that run on CPU, table structure, Apache-2.0.
- Cons: Many models and pipelines to choose from; the docs assume you're comfortable with Python and model configs.
2. MinerU
What it is: A document parser from OpenDataLab that converts PDFs, images and Office files into LLM-ready Markdown or JSON. MinerU on GitHub shows about 83.1k stars, with version 4.1 current.
Best for: Teams that want one tool for PDFs, scans, Word, Excel and PowerPoint, with a choice of speed or quality.
MinerU 4.x offers four parsing tiers, and its docs say the basic tier runs on CPU with about 2 GB of RAM using ONNX.
- Pros: Wide format support, CPU-friendly entry tier, built-in API and web UI.
- Cons: The licence isn't plain Apache-2.0 (see below), and the 4.1 release changed the HTTP API, so pin your version.
The MinerU licence file adds terms on top of Apache 2.0: you need a separate commercial licence only if you and your affiliates exceed 100 million monthly active users or USD 20 million in monthly revenue, and any online service you offer to third parties must state that it uses MinerU. The attribution rule is the one most SMEs will notice.
3. Docling
What it is: IBM Research's document converter, now hosted by the LF AI & Data Foundation. Docling on GitHub shows about 69.8k stars and an MIT licence for the codebase.
Best for: Developers building RAG or AI-agent workflows who want clean output and ready integrations.
Docling parses PDF, DOCX, XLSX, PPTX, HTML, images, email files and more, and lists native integrations with LangChain, LlamaIndex, CrewAI and Haystack. It also offers an MCP server and an API server. It can run fully locally, including air-gapped.
- Pros: MIT licence, strong table and reading-order handling, the easiest path into agent frameworks.
- Cons: Individual models carry their own licences, so check each one you enable. It's a converter, not an invoice field extractor, so you still need a step that maps text to fields.
4. Tesseract
What it is: The long-running OCR engine first built at HP and later developed by Google. Tesseract on GitHub shows about 77.6k stars and an Apache-2.0 licence. Version 5 has been the stable line since November 2021.
Best for: Simple, clean scans on low-spec servers, and teams that need a small dependency.
Tesseract recognises 100+ languages and outputs text, hOCR, PDF, TSV and ALTO. The project warns you'll often need to improve image quality first.
- Pros: Tiny footprint, mature, runs anywhere, bindings for most languages.
- Cons: No layout or table understanding; weak on skewed phone photos without pre-processing; no GUI.
5. olmOCR
What it is: A PDF-to-Markdown toolkit from the Allen Institute for AI built on a 7B vision-language model. olmOCR on GitHub shows about 19.8k stars and an Apache-2.0 licence, with v0.4.0 released in October 2025.
Best for: High-volume batch conversion of messy documents when you have GPU access.
The README claims support for tables, handwriting and multi-column layouts at under USD 200 per million pages. Local inference needs an NVIDIA GPU with at least 12 GB of memory and about 30 GB of disk.
- Pros: Good with difficult layouts, strips headers and footers, scales across many workers.
- Cons: GPU required for local use; heavier to install than the others.
6. Surya
What it is: An OCR, layout and table-recognition model from Datalab. Surya on GitHub shows about 21.6k stars.
Best for: Startups that want layout plus OCR in one small model and can live with its weight licence.
The code is Apache-2.0, but the model weights use a modified OpenRAIL-M licence that is free for research, personal use and startups under USD 5 million in funding or revenue. Larger companies need a commercial licence. Datalab's own multilingual table is honest about Arabic: Surya 2.5 scored 45.4% on their internal Arabic set against 90.3% for English.
- Pros: Layout, reading order and tables as HTML; runs on llama.cpp for CPU or Apple Silicon.
- Cons: Weight licence limits for bigger firms; Arabic results trail Latin-script languages.
7. docTR
What it is: A PyTorch OCR library originally created by Mindee and now maintained by t2k GmbH. docTR on GitHub shows about 6.3k stars and an Apache-2.0 licence.
Best for: Python teams that want to train their own detection model for specific invoice fields.
docTR includes a KIE (key information extraction) predictor that can detect classes such as dates and totals.
- Pros: Clean API, KIE support, Docker images.
- Cons: Smaller community; you'll need labelled data to get the most out of KIE.
8. EasyOCR
What it is: A ready-to-use OCR library from Jaided AI. EasyOCR on GitHub shows about 30.1k stars, an Apache-2.0 licence and support for 80+ languages including Arabic.
Best for: Quick prototypes and reading short text such as receipt totals or labels.
- Pros: Three lines of Python to get started; CPU mode available.
- Cons: The latest listed release is 1.7.2 from September 2024, so development has slowed; no table or layout handling.
Summary comparison table
| Tool | Licence (Nov 2026) | Stars (approx.) | Arabic | Tables / layout | Needs GPU? |
|---|---|---|---|---|---|
| PaddleOCR | Apache-2.0 | 91.7k | Yes | Yes | No (optional) |
| MinerU | Apache-2.0 + extra terms | 83.1k | Check per tier | Yes | No for basic tier |
| Docling | MIT (models vary) | 69.8k | Depends on OCR engine | Yes | No (optional) |
| Tesseract | Apache-2.0 | 77.6k | Language packs | No | No |
| olmOCR | Apache-2.0 | 19.8k | Not stated | Yes | Yes, 12 GB+ |
| Surya | Code Apache-2.0, weights OpenRAIL-M | 21.6k | Yes, weaker | Yes | No (optional) |
| docTR | Apache-2.0 | 6.3k | Not stated | Yes | No (optional) |
| EasyOCR | Apache-2.0 | 30.1k | Yes | No | No (optional) |
How do you choose the right OCR tool for your business?
Work through these questions in order.
- Are your invoices in Arabic, English or both? For bilingual Saudi supplier invoices, start with PaddleOCR. Test Surya and Tesseract only if you have a reason to.
- Do you need line items, or just totals? Line items need table structure: PaddleOCR (PP-StructureV3), MinerU, Docling or olmOCR.
- What hardware do you have? No GPU points you to PaddleOCR's small models, MinerU's basic tier, Docling or Tesseract. A 12 GB+ GPU opens up olmOCR.
- Will customers use it? If you're building a product for third parties, read the MinerU attribution rule and the Surya weight licence before you commit.
- Where does the data go next? Plan the step that maps text to vendor, invoice number, VAT number, date and totals, plus checks that reject bad reads.
A worked example: supplier invoices for a restaurant group
Here's a hypothetical setup we'd sketch for a 12-branch restaurant group in Riyadh receiving around 1,500 supplier invoices a month as PDFs and phone photos.
- Invoices land in a shared mailbox or WhatsApp number.
- An n8n workflow sends each file to a self-hosted PaddleOCR or MinerU service.
- The output goes to a language model with a strict prompt to return fixed fields.
- Code checks the result: Is the supplier VAT number 15 digits? Does subtotal plus VAT equal the total? Is the invoice number already in the system?
- Clean records post to the ERP. Anything that fails a check goes to a finance user for review.
The checks matter more than the OCR engine. Clean PDFs are the easy part. The hard cases are the crumpled delivery note, the handwritten correction and the supplier who changes invoice layouts every quarter.
Honest limits and risks
- No OCR tool is 100% accurate. Keep a human review step for anything that changes payments or VAT returns.
- Benchmarks aren't your invoices. The scores in these repos come from their own test sets. Run 50 to 100 of your real documents before you decide.
- Licences can change. MinerU and Surya already add terms beyond plain open source. Re-check the licence file at each upgrade.
- Maintenance is on you. Self-hosting means patching, monitoring and model updates. Budget for it.
Our take
For most Saudi and GCC SMEs, we'd start with PaddleOCR because of its Arabic support, small CPU-friendly models and Apache-2.0 licence. If your documents are mostly English PDFs and you're building an AI agent or RAG workflow, Docling is the cleanest fit. MinerU is the best all-in-one choice when you deal with a lot of Office files, as long as you're fine with its attribution rule. We'd skip EasyOCR for new production work given its slower release pace, and keep Tesseract for simple, clean scans on small servers.
If you want help wiring OCR into n8n, your ERP or your POS back office, talk to our team.
ZATCA e-invoices?
No. Your own e-invoices are already structured XML under ZATCA rules. OCR is useful for supplier PDFs, scanned delivery notes, receipts and older paper records that arrive outside that system.
Sources
Frequently Asked Questions
What is the best open-source OCR tool for Arabic invoices?
PaddleOCR is the strongest starting point. Its PP-OCRv5 multilingual models and PaddleOCR-VL list Arabic among about 109 supported languages, and it's Apache-2.0 licensed.
Can open-source OCR read invoice line items and tables?
Yes, but not all of them. PaddleOCR (PP-StructureV3), MinerU, Docling, olmOCR and Surya handle tables and layout. Tesseract and EasyOCR return text only, so you'd have to rebuild tables yourself.
Do I need a GPU to run OCR on my own server?
Not for most tools. PaddleOCR's small models, MinerU's basic tier, Docling and Tesseract can run on CPU. olmOCR needs an NVIDIA GPU with at least 12 GB of memory for local inference.
Is open-source OCR free for commercial use?
Most of these tools use Apache-2.0 or MIT, which allow commercial use. MinerU adds an attribution rule for online services and a licence requirement above very high revenue or user thresholds, and Surya's model weights are free only for organisations under USD 5 million in funding or revenue.
Should I OCR my ZATCA e-invoices?
No. Your own e-invoices are already structured XML under ZATCA rules. OCR is useful for supplier PDFs, scanned delivery notes, receipts and older paper records that arrive outside that system.
Related Articles
ChatGPT Shared Usage Limits Explained
From December, ChatGPT Plus, Pro and Business share one usage pool across Chat, Work and Codex. Here's what OpenAI has confirmed, what it hasn't said yet, and how a GCC team can plan around it.
businessAI Tools and PDPL: Saudi SME Checklist
Pasting customer data into ChatGPT or Gemini is processing under Saudi Arabia's PDPL. Here's what's allowed, how enforcement works, what SDAIA's October 2026 draft could change, and a 10-step checklist for SMEs and restaurant groups.
tax-complianceZATCA Wave 25: Integrate by 1 Feb 2027
ZATCA halved the e-invoicing threshold to SAR 187,500. Here's who Wave 25 covers, what Fatoora integration and onboarding involve, how penalties work, and a realistic nine-week plan to the 1 February 2027 deadline.
Build it with Vocxa
Custom integration platforms, AI apps, and software for startups and SMEs. Let's turn this into reality for your business.