PROVIDER - Self-Hosted Archive

Paperless-ngx

Paperless-ngx is a self-hosted document archive that OCRs scans and PDFs, extracts dates and correspondents, tags and files them, and offers full-text search under GPL-3.0.

Productivity Germany 2026.11.30 3 views
4.2pts
Advertisement

Service Overview

Paperless-ngx is a self-hosted document management system: drop scans, PDFs and images into it and the system runs OCR, extracts dates, correspondents and amounts, files everything by tag, type and correspondent, and provides full-text search. It suits turning paper invoices, contracts and warranty documents into a searchable archive while the files stay on your own server.

The project is GPL-3.0 licensed with roughly 49,000 stars on GitHub, currently on the 3.5.x line, written in Python with official container images and a documented ingest flow. PostgreSQL holds metadata, Tesseract provides OCR, and files live on a local volume or object storage.

Key Strengths

  • Ingest triggers OCR automatically, so text inside scans becomes searchable without manual naming.
  • Dates, correspondents and amounts are extracted and turned into tags and storage paths.
  • Document types, correspondents, storage paths and custom fields can be applied in bulk by rule.
  • Mail fetching and scanner drop folders give paper documents an automated way in.
  • GPL-3.0 self-hosting carries no licence fee or document cap, keeping data and backups in-house.

Limitations

  • Containers, a database and OCR components must be operated, which is heavier than SaaS archiving.
  • OCR quality depends on scan resolution and language packs, and Chinese needs extra data installed.
  • There is no first-party mobile app, so phone capture relies on third-party clients or email.
  • Permissions centre on users and document owners, with fine-grained sharing still maturing.
  • Upgrades involve database migrations, and major versions must be followed step by step.

Product Ecosystem

Ingest, recognise, file and search: one pipeline for paper and digital documents Ingest Scan, upload or mail OCR and extract Text, dates, senders File Tags, types, paths Search Full text and fields Entry points: mail fetch · scanner drop folder · web upload · API Originals, OCR text and metadata are kept together and can be exported by rule (scope: official docs, 2026-11)
Figure 1: Document pipeline from ingest to search (scope: official documentation, 2026-11)

The centre of the system is the consume folder: files dropped there are processed automatically and end up in the matching tags and paths. Mail and scanners are just different delivery routes into the same pipeline.

Ingest and Consume Flow

Placing a file in the consume folder starts processing, covering PDFs, images and some office formats. Mail fetching polls attachments on a schedule, and scanners can deliver through a shared folder or email, which links paper to the digital archive without manual steps.

OCR and Field Extraction

Tesseract handles recognition and the installed language packs decide which scripts work. The system infers dates, correspondents and amounts from the content, then applies matching rules to tag documents and pick a storage path.

Filing Structure and Search

Documents are filed by type, correspondent and date, with a configurable filename template. Search combines full text with field filters, so tags, types and custom fields all narrow the result set.

Deployment and Backup

Official compose files are provided; PostgreSQL stores metadata while originals and OCR text sit on volumes or object storage. A backup is a database dump plus the file directories, and outbound callbacks should be verified per webhook signature verification.

Use Cases

  • Good fit|Invoice and contract digitisation: scans are recognised and filed automatically, then found by correspondent.
  • Good fit|Teams that must audit their own data: files stay on your servers, with backups and exports fully controlled.
  • Good fit|Expense and finance filing: search by date and amount, then export a package for the accountant.
  • Good fit|Household and small-team document management: one deployment covers many kinds of paper records.
  • Evaluate first|Workflows that need phone capture on the spot: first-party client capability is limited.
  • Evaluate first|Teams needing complex permissions and sharing: fine-grained roles are still evolving.
  • Evaluate first|Groups without container operations skills: deployment and upgrades need some experience.

Open Source License & Deployment Cost

Item Billing Spec and usage Notes
Software license Free Unlimited documents and users GPL-3.0, free to use and modify; redistributed derivatives must stay open
Hosting Billed by cloud vendor or hardware App container, database and OCR worker OCR is CPU-bound; scale up temporarily during bulk imports
Storage Billed by chosen service Originals, PDF/A copies and thumbnails Size the volume from pages added per month
Scanner hardware One-time purchase A scanner with an automatic feeder Scan resolution directly affects recognition quality
Operations effort Team time Upgrades, backups and language packs Major upgrades must follow the documented sequence

The software itself is free; cost sits in hosting, storage and scanning hardware, with OCR the main compute consumer.

FAQ

  • How good is Chinese OCR? Install the Chinese language data and scan at 300 dpi or higher, since skew and shadows hurt accuracy. Key fields can be corrected by hand afterwards, and both originals and OCR text are retained for re-indexing, so validate a small batch before a full import.
  • What advantage does it have over cloud archiving? Data stays on your own server, exports and backups are not limited by a platform, and there is no per-document billing. The trade-off is maintaining containers, OCR language packs and upgrades yourself, which suits teams with some operations experience.
  • Can it pull invoices from a mailbox automatically? Yes; once a mailbox is configured the system polls attachments and processes them by rule. Use a dedicated mailbox with a restricted sender list so unrelated mail stays out, and check tags after importing important documents.
  • What has to be backed up? The database dump, the original file directory and the OCR text directory are all required, and restoring must use the same image version. Take a full backup monthly and rehearse a restore, plus an extra database snapshot before upgrades, and only remove the old image after recognising and searching normally.

Integration and Code Examples

Upload and query documents with the API

# Upload a PDF, returning a task ID to track OCR progress
curl -s -X POST "https://paperless.example.com/api/documents/post_document/" \
  -H "Authorization: Token ${PAPERLESS_TOKEN}" \
  -F "document=@invoice-2026-11.pdf" \
  -F "title=November invoice"

# Search by tag and date range
curl -s "https://paperless.example.com/api/documents/?tags__id__all=3&created__date__gte=2026-11-01" \
  -H "Authorization: Token ${PAPERLESS_TOKEN}"

Container deployment essentials

services:
  webserver:
    image: ghcr.io/paperless-ngx/paperless-ngx:latest
    env_file: docker-compose.env
    volumes:
      - ./data:/usr/src/paperless/data
      - ./media:/usr/src/paperless/media
      - ./consume:/usr/src/paperless/consume

The consume directory is the automatic import entry point and media holds originals and archived copies, so both belong in the backup set.

Community and Resources

Visit Paperless-ngx Website → https://docs.paperless-ngx.com/
Visit Website ↗