Open source document management

Self-Hosted Document Management in 2026

A self-hosted document management system (DMS) scans, reads and files your documents, then finds any of them in seconds, on your own server. Paperless-ngx, Papermerge and Docspell bring OCR, automatic classification and full-text search; Nextcloud adds file sync and sharing. From $11 per month on Elestio for Papermerge and Docspell, $16 for Paperless-ngx and Nextcloud.

Deploy Paperless-ngx Compare the tools
AWS Azure Hetzner DigitalOcean Vultr Linode Scaleway Netcup TensorDock On-Premise
Trustpilot 4.6/5 G2 G2 4.8/5 SOC 2 ISO 27001 GDPR

Why self-host document management

Document management touches sensitive content: contracts, invoices, HR files, legal and tax documents.

Privacy

Your documents stay on your own server, not on a SaaS provider's infrastructure, and you decide who can access them.

Data residency

Choose where documents are stored, including EU-owned providers such as Hetzner, Netcup, Scaleway and OVHcloud. Elestio is SOC 2 and ISO 27001 certified.

Predictable cost

Commercial DMS platforms are usually billed per user. A self-hosted DMS costs the same for 2 or 50 users: a fixed price per instance.

A searchable archive

OCR turns scans and photos into searchable text, so a contract or an invoice can be found in seconds instead of in a filing cabinet.

4 open source document management tools you can self-host

01

Paperless-ngx

Scan, OCR, classify and find your documents

Drop PDFs, scans and photos: Paperless-ngx runs OCR, learns to assign tags, document types and correspondents from your own data, and indexes everything for full-text search. Can also ingest documents from email and from a scanner folder.

Pricing
License: GPL 3.0
From $16/month on Elestio
Best for
Digitizing paper archives and automating their classification.
02

Papermerge

Document management with folders and versions

A document management system for scanned documents and PDFs, with OCR, full-text search, tags, a hierarchical folder tree, document versioning and sharing between users and groups, in a desktop-like web interface.

Pricing
License: Apache 2.0
From $11/month on Elestio
Best for
Teams that think in folders and need document versions.
03

Docspell

Assisted filing and full-text search

Collects documents from scanners and email, runs OCR when needed, and suggests correspondents, tags and dates to file each document quickly, with full-text search across everything.

Pricing
License: AGPL 3.0
From $11/month on Elestio
Best for
Individuals and small organizations who want fast, assisted filing.
04

Nextcloud

File sync and sharing, not a strict DMS

Nextcloud syncs and shares files across desktop and mobile apps, with versioning, permissions and collaboration apps. It is a file platform rather than a document management system: OCR and automatic classification require additional apps.

Pricing
License: AGPL 3.0
From $16/month on Elestio
Best for
Teams that mainly need shared files, with document features added on top.

Comparison table

Tool OCR Automatic classification Full-text search Folders Versioning License From
Paperless-ngx Yes (Tesseract) Yes (learns from your data) Yes Storage paths, no folder tree Original and archived copy GPL 3.0 $16/mo
Papermerge Yes No (manual tags) Yes Yes Yes Apache 2.0 $11/mo
Docspell Yes Yes (suggestions) Yes Folders for grouping No AGPL 3.0 $11/mo
Nextcloud Via additional apps Via additional apps Via the full-text search app Yes Yes AGPL 3.0 $16/mo

Indicative server sizes for a self-hosted DMS

Volume VM size Monthly cost on Elestio
Personal (10K docs, < 50 GB) 2 vCPU / 4 GB From $16
Small team (100K docs, 200 GB) 4 vCPU / 8 GB From $30
Mid-market (1M docs, 1 TB+) 16 vCPU / 32 GB From $112

Sizes are indicative: OCR load and storage depend on how many pages you import and how often. Papermerge and Docspell start on a smaller plan, from $11/month.

What to expect

These are not enterprise ECM platforms. Paperless-ngx, Papermerge and Docspell are excellent at capturing, reading and finding documents, but they are not equivalents of M-Files or SharePoint: approval workflows and regulatory retention rules are limited.

OCR uses CPU. Importing a large backlog of scans keeps the processor busy for a while; plan a larger server for the initial import, then size down if you want.

Scans take space. Storage grows quickly with scanned PDFs and images, especially when the original and an archived copy are both kept.

Not a wiki. These tools archive and retrieve documents. For collaborative team documentation, look at wiki tools such as BookStack, Docmost or Wiki.js instead.

Own your documents, scale as you grow

Free trial. Paperless-ngx live in minutes with HTTPS, backups and your own URL.

Start free trial

Reviews

Trusted by 10,000+ Developers Worldwide

Real reviews from real users on Trustpilot.

Frequently Asked Questions

  • What is the best open source document management system?

    It depends on how you work. Paperless-ngx is the most popular for scanning and automatic classification, Papermerge suits teams that organize documents in folders and need versions, and Docspell offers fast assisted filing. If you mostly need shared files, Nextcloud is a file platform you can extend with document features.

  • Paperless-ngx vs Papermerge: which one should I choose?

    Paperless-ngx learns from your data to tag and classify new documents automatically, and works with tags, document types and correspondents rather than folders. Papermerge keeps a classic folder tree, with document versioning and sharing between users. Choose Paperless-ngx for automation, Papermerge for a folder-based workflow.

  • Does Paperless-ngx support OCR in several languages?

    Yes. Paperless-ngx uses Tesseract, which supports more than 100 languages, and you can enable several languages at once for mixed documents. The languages to use are set in the Paperless-ngx configuration.

  • Can a self-hosted DMS replace SharePoint or M-Files?

    For capturing, organizing and finding documents, often yes, especially for small and mid-sized teams. For enterprise needs such as complex approval workflows, records management and regulatory retention policies, these tools are more limited than SharePoint or M-Files.

  • How much storage do I need for scanned documents?

    It depends on resolution and color: a scanned page usually takes from a few dozen kilobytes to a few hundred kilobytes as a PDF, more in color. Estimate your number of pages, multiply by an average page size, and keep room for growth and for the archived copies some tools keep alongside the originals.

Self-host your document management

Free trial. Paperless-ngx, Papermerge, Docspell or Nextcloud in minutes, with full data ownership.

Start free trial