Best Open-Source OCR Models in 2027

Eight open OCR models compared on size, licence, olmOCR-Bench score, output format, handwriting and local runtimes, with pick-X-if guidance and a way to test two side by side.

Ashley Innocent

Ashley Innocent

1 December 2026

Best Open-Source OCR Models in 2027

Apidog for Enterprise

On-Premises Deploy

SSO & RBAC

SOC 2 Compliant

Explore Apidog Enterprise

The best open-source OCR model in 2027 depends on what you feed it. For the highest public olmOCR-Bench score among the big names, LightOnOCR-3-4B (86.3) and Chandra OCR 2 (85.8) lead. For located blocks, handwriting and African languages, Soma-1X Lite (84.7, self-reported) stands out. For a permissive licence at 7B, olmOCR 2 is the safe default.

The strongest open OCR models are now 1B to 5B vision-language models that run on one GPU. This guide compares eight on size, licence, benchmark score, output, handwriting and local runtimes, then tells you which to pick. Every score comes from the public olmOCR-Bench leaderboard on Hugging Face (checked 2026-12-01) or the model’s own card.

Best open-source OCR models compared

Sizes are the parameter counts Hugging Face lists, which include the vision encoder.

Model (checkpoint) Size Licence olmOCR-Bench Output Handwriting Local runtimes
Soma-1X Lite (Amini) 2B Apache 2.0 84.7 (self-reported, not on leaderboard) <block> tags with label + box, HTML tables, LaTeX math Yes, shown on archive letters Transformers, vLLM, llama.cpp, Ollama (GGUF)
dots.ocr / dots.mocr 3.0B MIT 79.1 / 83.9 One JSON object: bbox, category, text Not a stated focus Transformers, vLLM
olmOCR 2 (7B-1025) 7B Apache 2.0 82.4 ± 1.1 (FP8, card, not on leaderboard) Markdown text via the olmOCR toolkit Old scans category only vLLM via the toolkit
DeepSeek-OCR / OCR 2 3.3B / 3.4B MIT / Apache 2.0 75.7 / 76.3 Markdown, optional grounding boxes Not a stated focus Transformers, vLLM
Chandra OCR 2 (Datalab) 5.3B Modified OpenRAIL-M 85.8 Markdown, HTML or JSON with layout “Excellent”, forms and cursive vLLM, Transformers
LightOnOCR-3 (0.8B / 1B / 4B) 0.85B to 4.5B Apache 2.0 85.5 / 84.5 / 86.3 Markdown, or labelled blocks with boxes in grounding mode Listed for LightOnOCR-1 vLLM, Transformers
GLM-OCR 0.9B MIT 75.2 Markdown, schema-bound JSON extraction Not a stated focus vLLM, SGLang, Ollama
PaddleOCR-VL 1.6 0.9B Apache 2.0 Not reported (OmniDocBench v1.6: 96.33%) JSON and Markdown from a layout + VLM pipeline Handwritten formulas in eval set PaddleOCR, vLLM, Transformers

Two caveats. Every leaderboard row is marked unverified: authors submit their own results. And the overall top three on 2026-12-01 sit outside this list (SoMark OXR-1.0 at 87.84, Infinity-Parser2-Pro at 87.6, ProKope-4B-Eagle-Eye at 87.06). These eight are the ones developers ask about most.

How to read the olmOCR-Bench scores

olmOCR-Bench is Allen AI’s document OCR benchmark: 7,010 unit tests across 1,403 PDFs, covering arXiv math, old scans, tables, multi-column layouts, headers and footers, and tiny text. Keep three things in mind:

Soma-1X Lite also charts itself against GPT-5.5, Claude Sonnet 5 and Gemini 3.8 Flash. Those API numbers come from three different third-party evaluations with different harnesses, so read them as directional.

Output formats: markdown vs located blocks

Output format decides how much code you write after OCR. Markdown is easy to index. Located blocks, where every element carries a label and a box, let you crop, redact or rebuild a layout.

Schema: one page image goes to three output styles. Markdown models (olmOCR 2, DeepSeek-OCR, GLM-OCR) feed search and RAG; located-block models (Soma-1X Lite, LightOnOCR-3 grounding mode, dots.ocr) feed cropping, redaction and layout rebuild; layout pipelines (PaddleOCR-VL, Chandra 2) feed JSON and Markdown export

Soma-1X Lite emits one <block label="..." box="x0 y0 x1 y1"> per element in reading order, on a 0 to 1000 grid, with 15 labels including stamp and signature. dots.ocr returns one JSON object with bbox, category and text per element. LightOnOCR-3 gives Markdown for an empty prompt and labelled boxes for its grounding prompt.

Soma-1X Lite: best for archives, handwriting and African languages

Soma-1X Lite is Amini’s 2B model, fine-tuned from Qwen3.5-2B with supervised training plus GRPO, released 2026-11-25 under Apache 2.0. Amini reports 84.7 on olmOCR-Bench and 84.37 on OmniParse-Bench (86.53 multi-pass).

Its standout is language coverage: a 2.90% mean character error rate across ten African languages on 435 held-out pages. It kept 93% of Hausa hooked letters, 99% of Yoruba dots-below and 87% of Lingala open vowels, against 60%, 69% and 25% for the best other model. That test set is internal and compared only open models. Amini’s technical post also claims up to 15,000 pages per hour on one RTX PRO 6000, about $0.22 per 1,000 pages.

dots.ocr and dots.mocr: best for one-pass layout JSON

dots.ocr, built on a 1.7B language model, returns layout and text in one JSON object, with tables as HTML. It scores 79.1. Its successor dots.mocr reaches 83.9 and adds SVG output for charts. Both are MIT licensed and run on vLLM.

olmOCR 2: best permissive default for English PDFs

olmOCR 2 is Allen AI’s 7B model, fine-tuned from Qwen2.5-VL-7B under Apache 2.0, with open training data and code. It scores 82.4 ± 1.1 in FP8 with the olmOCR toolkit. Its card lists English only, and it’s the heaviest model here.

DeepSeek-OCR and DeepSeek-OCR 2: best for long documents and token compression

DeepSeek-OCR is built around optical context compression: a page becomes a small set of vision tokens. The original (MIT) scores 75.7; DeepSeek-OCR 2 (Apache 2.0) scores 76.3. Both output Markdown and run on vLLM. See our guides to DeepSeek-OCR and the DeepSeek-OCR 2 API.

Chandra OCR 2: best for handwriting and forms, if the licence fits

Chandra OCR 2 from Datalab scores 85.8, supports 90+ languages, outputs Markdown, HTML or JSON, and reconstructs forms including checkboxes. Its card highlights cursive and handwritten notes. Check the licence: weights use a modified OpenRAIL-M that’s free for research, personal use and startups under $2M in funding or revenue, and can’t compete with Datalab’s API.

LightOnOCR-3: best accuracy per parameter

LightOnOCR-3 comes in 0.8B, 1B and 4B, all Apache 2.0. The 4B scores 86.3 and the 0.8B scores 85.5. Grounding mode labels and boxes every block, and charts come back as HTML tables of their data. For the best score per gigabyte of VRAM, start here.

GLM-OCR and PaddleOCR-VL: best for edge and high-concurrency serving

Both are 0.9B. GLM-OCR (MIT) scores 75.2, runs on vLLM, SGLang and Ollama, and extracts fields into a JSON schema you supply; see our GLM-OCR guide. PaddleOCR-VL 1.6 (Apache 2.0) reports 96.33% on OmniDocBench v1.6 instead of olmOCR-Bench, pairs a layout model with a compact VLM, and its first release covered 109 languages.

Which open-source OCR model should you pick?

For a hosted alternative, Mistral OCR is the common API comparison.

Compare two OCR endpoints with Apidog CLI

Benchmarks only narrow the list. The real test is your documents on two candidates side by side, rerun whenever a model or serving flag changes. Hand that to your coding agent (Claude Code, Codex or whichever you use) with Apidog CLI. Most of these models serve an OpenAI-compatible /v1/chat/completions endpoint on vLLM, so start two and set up the CLI:

npm install -g apidog-cli@latest
apidog auth login --with-token <YOUR_TOKEN>
apidog skill install

Then give your agent one prompt:

Two OCR models run on vLLM: Soma-1X Lite at http://localhost:8000 and GLM-OCR
at http://localhost:8001. In Apidog project <projectId>, import an OpenAPI spec
for POST /v1/chat/completions, create one environment per server, and create a
test case that sends samples/invoice-01.png with temperature 0 and the model name
from a {{model}} variable. Assert a 200 and non-empty choices[0].message.content.
Run it against both environments with JSON reports, then compare the two outputs:
missing text, table structure and latency. Validate payloads with cli-schema first.
Sequence: you give the coding agent one prompt; it saves the spec, two environments and one test case with Apidog CLI, runs the test against the Soma-1X Lite server and then the GLM-OCR server, gets a JSON report from each, and returns a side-by-side comparison

The agent runs:

apidog import --project <projectId> --format openapi --file ./ocr-chat.openapi.yaml
apidog environment create "Soma-1X Lite" --project <projectId> --base-url http://localhost:8000
apidog environment create "GLM-OCR" --project <projectId> --base-url http://localhost:8001
apidog cli-schema get test-case-create
apidog test-case create --project <projectId> --file ./ocr-page-check.json
apidog run --test-case <testCaseId> --project <projectId> -e <somaEnvId> --env-var "model=soma-1x-lite" -r json --out-file soma
apidog run --test-case <testCaseId> --project <projectId> -e <glmEnvId> --env-var "model=glm-ocr" -r json --out-file glm

apidog run executes locally, so it reaches both servers without exposing them. Below, the endpoint and environment lists are real sandbox output; the run needs your own OCR server, so it’s shown without output.

Apidog CLI on a sandbox project: the real endpoint and environment lists the agent checks, then the apidog run command it sends to the first OCR endpoint, shown without output

Add a candidate with one more environment, and put the apidog run lines in CI. More patterns are in Apidog CLI in Claude Code and the installation guide.

If your team runs several of these comparisons at once, Sharkly puts them on a shared board: assign “compare Chandra 2 and LightOnOCR-3 on our forms” to a coding agent running on your own machine with your Claude Code or Codex plan, run several agents in parallel, and review what each ships. It’s free to start.

FAQ

What is the best open-source OCR model in 2027? On the public olmOCR-Bench leaderboard (2026-12-01), LightOnOCR-3-4B (86.3) and Chandra OCR 2 (85.8) lead the well-known models. Soma-1X Lite reports 84.7 and leads on African-language transcription in Amini’s own tests.

Which open-source OCR model is best for handwritten text? Chandra OCR 2 lists handwriting support as a headline feature, with cursive and form examples. Soma-1X Lite shows handwritten archive letters with located stamps and signatures. olmOCR-Bench has no handwriting category, so test on your own pages.

Where can I find open-source OCR models on Hugging Face? All eight are on Hugging Face. The olmOCR-Bench dataset page has a leaderboard listing submitted scores with links to each model.

Can I run these OCR models locally on a CPU? Soma-1X Lite ships GGUF builds for llama.cpp and Ollama that run on a CPU or a single GPU. GLM-OCR also supports Ollama. The rest are built for vLLM on a GPU.

Are open-source OCR models free for commercial use? Most are: Apache 2.0 (Soma-1X Lite, olmOCR 2, LightOnOCR-3, DeepSeek-OCR 2, PaddleOCR-VL) or MIT (dots.ocr, DeepSeek-OCR, GLM-OCR). Chandra OCR 2’s weights are restricted for companies above $2M in funding or revenue.

Explore more

How to Run Soma-1X Lite Locally: Turn PDFs into Structured JSON with vLLM

How to Run Soma-1X Lite Locally: Turn PDFs into Structured JSON with vLLM

A hands-on Soma-1X Lite tutorial: serve the 2B open OCR model with vLLM or llama.cpp, render PDF pages with PyMuPDF, call the OpenAI-compatible endpoint with the trained prompts, parse the block output into JSON, and let your coding agent test the endpoint with Apidog CLI.

1 December 2026

How to Use MCP Inspector to Test Your MCP Server

How to Use MCP Inspector to Test Your MCP Server

A step-by-step MCP Inspector tutorial: launch the web UI or CLI, check the handshake, list and call tools, test resources and prompts, then turn the checks into a CI smoke test and an Apidog CLI suite your coding agent maintains.

1 December 2026

Claude Code Router: How to Run Claude Code With Any Model

Claude Code Router: How to Run Claude Code With Any Model

Want to run Claude Code with any model? Learn how Claude Code Router connects GLM, DeepSeek and OpenRouter, then set up routing and fallbacks.

1 December 2026

Practice API Design-first in Apidog

Discover an easier way to build and use APIs

Best Open-Source OCR Models in 2027