OCRRouter

Nanonets-OCR vs Donut

Pick Nanonets-OCR when you need printed business PDFs turned into Markdown with no training. Pick Donut when you have a narrow, fixed-layout document type such as receipts or forms and can fine-tune a model to output JSON fields. The main split is that Nanonets-OCR works as shipped, while the Donut base checkpoint must be fine-tuned first.

Nanonets-OCRnanonets/nanonets-ocrDonutnaver/donut
TypeOpen sourceOpen source
Price2 credits / page1 credit / page
Per 1,000 pages$2.00$1.00
Typical speed1.8 s / page1.0 s / page
Best forMarkdown with semantic tagsReceipt and form fields after fine-tuning
InputsPDF, imagesimages
LanguagesMultilingualEnglish, Chinese, Japanese, Korean
Max pages per request500100
Tables✓ YesNo
HandwritingNoNo
Math✓ YesNo
Bounding boxesNoNo
ConfidenceNoNo
Forms✓ Yes✓ Yes
Multilingual✓ YesNo
On OCRRouterAvailableAvailable

Prices are what you pay on OCRRouter. Speed is the provider's typical figure, not a benchmark we ran.

Which to choose

Choose Nanonets-OCR if

  • You want full-page Markdown, HTML, LaTeX or Mermaid output from printed documents.
  • Your documents carry signatures, watermarks or checkboxes that you want tagged or converted to unicode symbols.
  • You need flowcharts or org charts extracted as Mermaid code.

Choose Donut if

  • You can fine-tune on your own data and want structured JSON for receipt or form fields.
  • You need a clear licence: Donut is MIT, and it loads in Hugging Face Transformers.
  • Your documents have a fixed layout and you want classification or field extraction without a separate OCR step.

Key differences

Nanonets-OCRDonut
LicenceNot stated on the Nanonets-OCR2-3B model card; base model is Qwen2.5-VL-3BMIT
Ready to useFine-tuned from Qwen2.5-VL-3B and used with a fixed promptBase checkpoint is pretrain-only and must be fine-tuned before use
Output formatsMarkdown, HTML, LaTeX, MermaidJSON, plain text
BenchmarksolmOCR-bench overall 69.5, DocVQA 89.43, ChartQA 78.56 (OCR2-3B, reported by the authors)Not published
HandwritingNot trained on handwriting; can hallucinate, and one test saw generation loops with CER up to 2100%Not published
Known failureOther prompts than the fixed one are expected to cause hallucinationMisses tiny text in large images because of input resolution limits
Cost and hostingFree, self-hosted; you pay for computeFree, self-hosted; you pay for compute. Transformers v5 dropped image-to-text pipeline support, so load it directly or use v4

Sources

What each one is

Nanonets-OCR

Open image-to-Markdown model that tags tables, equations, signatures, watermarks and checkboxes.

Nanonets-OCR details

Donut

OCR-free document understanding model. Fine-tuned for receipts, forms and document Q&A.

Donut details

Try both on your own file

Run the file once with each model and compare the output.

PDF, PNG, JPG, WebP, HEIC. Up to 20 MB each, 10 files.No file?

Use one, fall back to the other

{"model": "nanonets/nanonets-ocr","fallbacks": ["naver/donut"],"file_url": "https://example.com/document.pdf"}

Questions

More comparisons

Nanonets-OCR alternativesDonut alternativesBest OCR models in 2026