DeepSeek-OCR-WebUI

Drop in a scanned PDF or image and get clean Markdown, Word, or PDF back, with layout boxes and rendered tables, from an OCR service that runs on your own hardware. A three-pane workspace lists your files, previews each page with colored boxes around titles, paragraphs, and tables, and shows the recognized Markdown beside it, including tables and LaTeX math. Seven recognition modes cover document-to-Markdown conversion, general OCR, raw text extraction, figure parsing, image description, block search by keyword, and custom prompts. Batches queue up with live progress, large PDFs are rendered in the browser, and pages persist locally so a long job survives a reload. Results export to Markdown, Word, or PDF, and the interface speaks English, Simplified Chinese, Traditional Chinese, and Japanese. Every page returns an ok flag with warnings for repetition loops, truncation, broken coordinates, and empty output, and the health endpoint stays unready until a warm-up page reads back correctly. Developers get a REST API with Swagger docs, page-by-page PDF streaming up to 500 pages, and an MCP server that lets Claude or Cursor call the OCR tools. Run vLLM with continuous batching on NVIDIA GPUs, spread load across several vLLM hosts, or use transformers on CUDA, Apple Silicon, or CPU, with weights downloaded once or loaded offline. Running on a dedicated VPS on RepoCloud with guaranteed CPU, RAM, and SSD, full root SSH access, and a browser serial console. MIT licensed.

DeepSeek-OCR-WebUI
DeepSeek-OCR-WebUI
DeepSeek-OCR-WebUI
DeepSeek-OCR-WebUI
DeepSeek-OCR-WebUI

Benefits

  • Turn Scans Into Editable Documents
  • Upload PDFs or images and receive Markdown with preserved headings, tables, and math, then export Word or PDF files generated locally in your browser, so recognized text is ready to edit.
  • Know When a Page Read Failed
  • Each page result carries an ok flag and warnings for loops, truncation, invalid coordinates, and empty output, so automated pipelines can retry bad reads instead of trusting every HTTP 200 response.
  • Run on GPUs, Apple Silicon, or CPU
  • Use NVIDIA GPUs with vLLM for throughput (the maintainers measured 132 pages per minute on an A10G at 16 concurrent requests), or run transformers on Apple Silicon, T4 GPUs, or CPU.
  • Keep Documents on Your Own Server
  • Everything runs on your machine, from recognition to export, with weights cached in a volume or loaded offline, so contracts, invoices, and scans never pass through a third-party OCR API.

Features

  • Layout-Aware Document OCR
  • The default mode converts a page to Markdown with titles, text blocks, and tables outlined as colored boxes, and renders tables and LaTeX math in a live preview.
  • Seven Recognition Modes
  • Switch between document conversion, general OCR, raw text, figure parsing, image description, keyword block search, and custom prompts from one dropdown on the toolbar.
  • Batch Queue and PDFs
  • Queue many files with live progress, render PDFs in a browser worker, and keep pages in IndexedDB so long jobs survive reloads; the API streams PDF pages as NDJSON.
  • Per-Page Quality Checks
  • Responses include ok, warnings, and finish reason, flagging repetition loops, truncation, coordinate loops, and empty pages, while the health endpoint returns 503 until a warm-up page reads back correctly.
  • API, Swagger, and MCP
  • A REST API with Swagger and ReDoc documentation handles images and PDFs, and an optional MCP server exposes ocr_image, ocr_pdf, and health tools to Claude, Cursor, and other agents.
  • Flexible Inference Engines
  • vLLM adds continuous batching on Linux with NVIDIA and can load-balance external servers, while the transformers engine runs on CUDA, Apple Silicon MPS, or CPU with automatic device selection.

Apps Similar to DeepSeek-OCR-WebUI