Guides

Nextcloud end-to-end encryption: setup, limits, alternatives

How to turn on Nextcloud end-to-end encryption, what stops working when you do, and when server-side encryption plus a trusted host is the better call.

MTMartCC Team 12 min read
Nextcloud end-to-end encryption: setup, limits, alternatives

Nextcloud end-to-end encryption (E2EE) encrypts chosen folders on your device with keys that never reach the server, so even the host cannot read them; you turn it on in the desktop or mobile client, write down the mnemonic, and mark a new, empty subfolder as encrypted. The price is that those folders lose web access, online editing, previews, versioning and most sharing. Server-side encryption (SSE) keeps all of that working and protects the raw disks, but the server holds the keys, so it does nothing against a compromised server or a malicious admin. Use E2EE for the small set of files that must stay private from everyone including us, and SSE plus a host you trust for the rest.

We run Nextcloud for every private cloud customer, so we see both setups daily. Here is how each works, how to set them up, and where each one stops.

The three layers, in one minute

Nextcloud describes its encryption in three layers (Nextcloud blog, "Encryption in Nextcloud", 5 Feb 2018, updated 5 Jul 2024):

  1. Transport encryption (TLS). Protects data in flight between client and server. It does nothing once the file is on the server or on a compromised device.
  2. Server-side encryption. The server encrypts file contents before writing them to disk or to external storage. Keys stay on the server.
  3. End-to-end encryption. The client encrypts before upload; the server stores ciphertext and the public keys it needs to let other clients exchange keys, and never sees plaintext or private keys.

Everything else in this article is about choosing between layers two and three, since layer one is simply on.

Server-side encryption: what it is and is not

What it protects

The admin manual is unusually direct. SSE "encrypts file contents at rest on local and external storage, protecting against access by external storage providers". The target threat is an S3 bucket, an SMB share or a disk that leaves the building. It is not the Nextcloud server itself.

What it does not protect

Quoting the admin manual (Nextcloud documentation, master branch, read 3 Oct 2026):

  • "SSE does not encrypt filenames or folder structures, only file contents."
  • "SSE does not protect data from a compromised Nextcloud server or malicious administrator."
  • "Losing encryption keys or your instance secret results in permanent data loss."

Unencrypted alongside the ciphertext: filenames, folder structures, the trash bin, historical versions, thumbnails and previews, and search indexes. The 2018 blog post adds the obvious consequence of storing keys next to data: "storing the encryption keys together with the data means little protection is afforded in cases the drives are stolen" when a server-wide key is used, and per-user keys offer little more unless users are logged out during a breach.

The overhead

Encrypted files are "approximately 1% larger" since Nextcloud 25; before that the overhead was about 35% (admin manual). Quotas count the unencrypted size. CPU overhead is real but modest on modern hardware; you notice it on bulk operations like encrypt-all.

Master key or per-user keys

Master key is the default and what the manual recommends for most deployments: "Admins can decrypt any files; recovery keys unavailable". Per-user keys wrap each user's files in a key derived from their password, so an admin cannot read them without the user's password or a recovery key the user has opted into. Per-user mode is "incompatible with some authentication methods", which in practice means SSO and LDAP setups where Nextcloud never sees a password.

Turning it on

From the server as the web user (www-data on Debian-based systems):

sudo -u www-data php occ app:enable encryption
sudo -u www-data php occ encryption:enable
sudo -u www-data php occ encryption:enable-master-key
sudo -u www-data php occ encryption:encrypt-all

The first two enable the module and the feature; the third picks master-key mode; the fourth walks existing files. On a 1 TB account that last command takes hours, so run it in screen or tmux. In the admin UI under Security you can also untick "encrypt home storage" so that only external storage is encrypted, which is the configuration the manual describes as optional.

Turning it off

"Only possible via occ. Must run occ encryption:decrypt-all before disabling", and the manual warns that "Disabling encryption without decrypting all files will cause unpredictable errors". We have cleaned up after exactly this. Decrypt first, confirm, then disable.

On our hosted plans SSE is already on in master-key mode, which is why uploads show the ~1% overhead and why external-storage mounts you add in the UI are protected without further work.

End-to-end encryption: what it is and is not

What it protects

The E2EE app is Nextcloud's answer to "I do not trust the server". The server facilitates key exchange and stores ciphertext but keeps "Zero Knowledge", never touching unencrypted data (nextcloud.com/encryption, read 3 Oct 2026). A hosting provider, an attacker with a database dump, or a subpoena served on the host gets ciphertext and a public key.

What stops working

This is where people get burned, so here it is in full. From the E2EE app README (GitHub, read 3 Oct 2026) and the product page:

  • "E2EE files can currently only be read (using the viewer app) and downloaded from the Nextcloud Web UI." You cannot upload, rename, move or create files in an encrypted folder from the browser.
  • "it's neither possible to encrypt the root folder of a folder synchronization, nor to encrypt a subfolder with existing content." New, empty subfolder only.
  • No online editing: the product page explains Nextcloud deliberately avoids "using a browser to encrypt or decrypt files with code coming from the server".
  • No public links or group shares; the 2018 blog lists "no web interface access or public sharing" and "no group sharing functionality". Sharing an encrypted folder with another user is supported in current clients, but it is user-to-user, by key exchange, not a link.
  • "E2EE focuses on protecting your file-based data, but not other application data (e.g. calendars)."
  • The README acknowledges "some functions will never be supported because they are inherently incompatible with the threat model of E2EE": server-side previews, full-text search, and server-side versioning among them.
  • All clients in use should be "kept relatively aligned (in terms of release version/period)". Minimum versions in the app's configuration are Android 3.13.0, desktop 3.0.0 and iOS 3.0.5.
  • The Server-Side Encryption app must be disabled for E2EE to be used, per the README's server requirements. In practice that means E2EE and SSE are a choice per instance, not per folder.

The mnemonic

When the first client enables E2EE it generates a mnemonic passphrase. The README: "Carefully note your mnemonic (encryption passphrase) generated by your first client." It is used "for recovery access to your data (i.e. if your device is lost or you need to reinstall the app) as well as to setup additional clients", and "The mnemonic is not recoverable by a server administrator. If you lose your mnemonic you will lose access to your encrypted data." Every device must use the same mnemonic; different ones cause "undefined behavior". Current clients generate a 12-word phrase.

An enterprise option exists: admins "can create an offline master recovery key" so a company can decrypt files if a user loses their mnemonic (nextcloud.com/encryption). That key is a deliberate hole in the zero-knowledge model and should be kept offline and documented.

Turning it on

On the server

  1. Make sure the Server-Side Encryption app is disabled, or use a separate instance.
  2. In Apps, install and enable "End-to-End Encryption".

On the first client (desktop)

  1. Update the desktop client to a current release.
  2. Open Settings for the account. Under the account, click "Enable encryption" (the label varies by version; it sits on the account card).
  3. The client shows the mnemonic. Write it down on paper. Do not screenshot it into a synced folder.
  4. In the sync folder, create a new empty subfolder, right-click it, and choose "Encrypt". The folder gains a lock icon.
  5. Copy files in. They upload as ciphertext.

On the second client (Android or iOS)

  1. Open the app, go to Settings, and find the end-to-end encryption entry.
  2. Enter the same mnemonic from step 3 above.
  3. The encrypted folder appears with a lock and opens normally.

Test it before trusting it: open the web UI, browse to the folder. You should see files you can download but not edit, and previews should be absent. If you can preview an image in the browser, the folder is not end-to-end encrypted.

Server-side encryption (SSE) Your device Nextcloud server holds the key Disk / S3 plaintext over TLS ciphertext Works: web UI, editing, previews, versions, link shares, search Does not stop: a compromised server or a malicious admin End-to-end encryption (E2EE) Your device holds the key Nextcloud server no key, ciphertext only Disk / S3 ciphertext over TLS ciphertext 12-word mnemonic Works: sync on desktop and mobile, user-to-user sharing by key exchange, download from web Unavailable: web upload or editing, previews, versions, public links, search; mnemonic loss is permanent Sources: Nextcloud admin manual and E2EE app README (read 3 Oct 2026); Nextcloud blog, 5 Feb 2018, updated 5 Jul 2024.

Side by side

Question Server-side encryption End-to-end encryption
Who holds the key The server (master key, or per-user key unlocked by the user's password) The client; derived from the mnemonic
Protects against stolen disk or external storage leak Yes Yes
Protects against compromised server or malicious admin No Yes
Filenames and folder structure encrypted No Yes (metadata is encrypted in E2EE folders)
Web UI Full List and download only
Online editing (Office, Text) Yes No
Previews and thumbnails Yes No
File versioning on server Yes No
Full-text search Yes No
Public link sharing Yes No
Share with another user Yes Yes, via key exchange in supported clients
Calendars, contacts, Talk Unaffected Not covered
Scope Whole instance (optionally external storage only) Chosen empty subfolders
Storage overhead ~1% (Nextcloud 25+) Small; not published
If the key is lost Data lost (instance secret or keys) Data lost (mnemonic), unless an admin recovery key was set up
Can run together on one instance Yes with TLS No; SSE app must be disabled

Sources: Nextcloud admin manual, E2EE app README, nextcloud.com/encryption (all read 3 Oct 2026); Nextcloud blog (updated 5 Jul 2024).

When server-side encryption is enough

Be honest about the threat you are defending against.

You are defending against the storage layer. Object storage at a third party, a disk in a colocation cage, a backup tape. SSE was built for this. On our plans the data disks are encrypted and SSE is on, so a drive pulled from a server is ciphertext.

You need the collaboration features. Shared folders with link access, Collabora or OnlyOffice editing, photo previews on your phone, document search, version history after a bad edit. All of this needs a server that can read the file. If the folder is a team workspace, E2EE will make it unusable for the team.

Your real risk is your own devices. A laptop without full-disk encryption is a bigger hole than the server. E2EE does nothing for a device that is lost while unlocked.

You trust the operator, with evidence. Trust is not a feeling; it is a jurisdiction, a logging policy, a payment model that does not require your identity, and a history. Our cloud storage pages state what we log (access logs, retained briefly, no content indexing by us) and how we are paid (crypto only, so no card record ties a name to an instance). That is not the same as zero knowledge, and we do not call it that.

When you want end-to-end

A small set of files must survive a server compromise. Keys, seed phrases, legal documents, source material a journalist holds. Put them in one encrypted folder, sync it to two devices, and store the mnemonic on paper. The 2024-updated Nextcloud blog says it plainly: a "full, undetected Nextcloud server breach by skilled attackers or malicious server administrator still risks exposing user data" under SSE. E2EE is the answer to that sentence.

You do not want to trust the host, including us. Fair enough; that is why the option exists. Our Private tier (1 TB for $9.99 a month) is a single-tenant instance where you can disable SSE and enable E2EE yourself, because a shared instance has to run one mode for everyone.

Regulation says the provider must not be able to read the data. Some professional-secrecy rules are satisfied only by client-held keys.

In each case, keep the encrypted folder small and specific. People who encrypt their whole photo library end-to-end are back a week later asking why the phone app shows no thumbnails.

A practical setup we recommend

  1. Pick a plan sized for the whole library, not the secret part. Our Nextcloud plans are 200 GB for $3.99 a month, 1 TB for $7.99, 2 TB for $12.99, and the single-tenant Private 1 TB at $9.99 or 5 TB at $27.99.
  2. Leave SSE on for everything, unless you took the Private tier specifically for E2EE.
  3. If you need E2EE, take the Private tier, disable SSE before uploading anything, enable the E2EE app, and set up one encrypted folder from the desktop client.
  4. Write the 12-word mnemonic on paper, twice, in two places.
  5. Add your phone with the same mnemonic and confirm the folder opens.
  6. Open the web UI and confirm you cannot preview a file in the folder.
  7. Keep the clients updated together, since the README asks for versions to be "relatively aligned".

MartCC Nextcloud plans, USD per month (launch pricing) 200 GB shared $3.99 1 TB shared $7.99 2 TB shared $12.99 Private 1 TB (E2EE ok) $9.99 Private 5 TB (E2EE ok) $27.99 Scale: $27.99 = full width. Shared tiers run SSE for all tenants; Private tiers are single-tenant so SSE can be swapped for E2EE.

Plans are paid through our checkout in BTC, USDT on TRON, Monero, Litecoin and six other coins, with a $9 minimum per payment; the 200 GB plan is usually bought as a three-month term or from a wallet balance for that reason. Refunds are issued as store credit.

FAQ

Can I use server-side and end-to-end encryption at the same time? Not on one instance. The E2EE app README requires the Server-Side Encryption app to be disabled. TLS runs in both cases. This is why E2EE is only offered on our single-tenant Private tier.

Does end-to-end encryption hide filenames? Inside an encrypted folder, yes: the client encrypts the folder's metadata, so the server sees opaque identifiers. Server-side encryption, by contrast, "does not encrypt filenames or folder structures" (admin manual).

What happens if I lose the mnemonic? The README is unambiguous: "If you lose your mnemonic you will lose access to your encrypted data." No admin can help unless an enterprise recovery key was configured beforehand. Write it down.

Can I encrypt an existing folder? No. The client refuses to encrypt "a subfolder with existing content" or the sync root. Create a new empty folder, encrypt it, then move files in.

Will my phone show thumbnails of encrypted photos? Not from the server, because the server cannot generate them. Some mobile client versions render previews locally after download; do not rely on it.

Is server-side encryption worth turning on at all, then? Yes, for the threat it addresses. It makes a stolen disk, a leaked bucket or a mis-shipped backup worthless to the finder, at about 1% storage cost. It is not a substitute for trusting the operator; it is a floor.

Does encryption slow down sync? SSE adds server CPU work, noticeable mostly during bulk encrypt-all. E2EE adds client CPU work per file; on a modern phone or laptop it is hard to notice except with very large files.

Can I share an end-to-end encrypted folder with a colleague? Yes, user to user, in supported client versions: the client re-wraps the folder key for the recipient's public key. Public links and group shares are not possible, and the recipient needs an E2EE-capable client with their own mnemonic set up.

Sources

  • Nextcloud documentation (admin manual), "Encryption configuration", source file on GitHub master, https://github.com/nextcloud/documentation/blob/master/admin_manual/configuration_files/encryption_configuration.rst (read 3 Oct 2026; the rendered page at docs.nextcloud.com blocks automated fetching)
  • Nextcloud, End-to-End Encryption app README, https://github.com/nextcloud/end_to_end_encryption (read 3 Oct 2026)
  • Nextcloud, "End-to-end encryption" product page, https://nextcloud.com/encryption/ (read 3 Oct 2026)
  • Nextcloud blog, "Encryption in Nextcloud", https://nextcloud.com/blog/encryption-in-nextcloud/ (5 Feb 2018, updated 5 Jul 2024; read 3 Oct 2026)
MT
Written by MartCC Team · Editorial The MartCC editorial team covers crypto payments, privacy and digital services.

Ready when your wallet is

Pick a product, choose a coin, and pay in one step. No card, no forms, no waiting on a bank.

Browse the mart