How to Encrypt Files Before Uploading to Any Cloud Storage

By Alex Morgan, Cloud Security Researcher
Last Updated: May 2026 · 10 min read

You don't need to trust Google, Dropbox, or Microsoft with your sensitive files. Even the best cloud storage providers hold encryption keys that they could use to access your data if compelled. The solution? Encrypt your files before they leave your computer. Here are three methods — from dead-simple to power-user.

Why Cloud Encryption Matters

Google Drive, Dropbox, and OneDrive all encrypt your files in transit (TLS) and at rest (AES-256). But there's a critical distinction: they hold the encryption keys. This means:

Client-side encryption — encrypting files on your device before uploading — ensures that even if the cloud provider is compromised or subpoenaed, your files remain unreadable. They simply don't have the key.

Method 1: Cryptomator — Best for Ongoing Cloud Sync (Free & Open-Source)

🔐 Cryptomator: Encrypt Individual Files Transparently

Best for: Files you actively work with and sync to the cloud.

Cryptomator creates an encrypted vault inside your cloud storage folder. When you unlock the vault (with your password), it appears as a regular drive. Any file you place inside is automatically encrypted — but you can still open, edit, and save it normally.

Step-by-Step:

  1. Download Cryptomator from cryptomator.org (Windows, Mac, Linux, iOS, Android).
  2. Click "Add Vault" → choose "Create New Vault" → name it.
  3. Location: Choose a folder inside your Google Drive, OneDrive, or Dropbox directory.
  4. Set a strong, unique password. There is no recovery option — lose this password, lose your files.
  5. Click "Unlock Now" — Cryptomator mounts a virtual drive. Copy files into it. They auto-encrypt.

Why I recommend it: Open-source, audited, and works with any cloud provider. Files are encrypted individually, so only changed files need to be re-synced — efficient for large vaults.

Important: Cryptomator encrypts file contents and names. However, an attacker can still see how many files you have and their approximate sizes. For absolute metadata secrecy, use Veracrypt (Method 2).

Method 2: Veracrypt — Best for Long-Term Archival (Free & Open-Source)

📦 Veracrypt: Create an Encrypted Container

Best for: Archiving sensitive documents you rarely access but need stored securely.

Veracrypt creates a single encrypted file (a "container") on your computer. You mount this container as a virtual drive, place files inside, then unmount it. The result is one encrypted blob you can upload anywhere.

Step-by-Step:

  1. Download Veracrypt from veracrypt.fr.
  2. Click "Create Volume" → "Create an encrypted file container" → "Standard Veracrypt volume."
  3. Choose a file location (e.g., your Desktop) and container size (100 MB, 1 GB, whatever you need).
  4. Set encryption algorithm: AES is fine. Set hash algorithm: SHA-512.
  5. Create a strong password. No recovery.
  6. Format the volume. Then mount it, copy sensitive files inside, and unmount.
  7. Upload the single encrypted container file to your cloud storage.

Why I recommend it: The gold standard for encrypted containers. Audited. The entire container is one encrypted binary — no metadata leakage about individual files.

Method 3: 7-Zip — Quick & Dirty (Free, Built-In AES-256)

🗜️ 7-Zip: Encrypt and Compress in One Step

Best for: Quick, one-off encryption of a few files before sending them anywhere.

If you already have 7-Zip installed (and on Windows, you probably should), you can create an AES-256 encrypted archive in seconds.

Step-by-Step:

  1. Right-click the file(s) or folder → 7-Zip → Add to archive.
  2. Archive format: 7z (recommended) or ZIP.
  3. Encryption method: AES-256.
  4. Enter a strong password. Enable "Encrypt file names" (critical — otherwise someone can see what's inside even if they can't open it).
  5. Click OK. Upload the resulting .7z or .zip file.

Limitation: To access the files, the recipient must download the entire archive, decrypt it, and extract it. Not suitable for files you edit frequently. But perfect for sending tax documents to your accountant.

Which Method Should You Use?

ScenarioBest Tool
Files you edit regularly, synced to cloudCryptomator
Long-term archives you rarely accessVeracrypt
Quick, one-time sharing7-Zip (AES-256)
Maximum security + regular accessCryptomator + Veracrypt combined

My personal setup: Cryptomator for daily work files (mounted inside Google Drive), Veracrypt for archived financial documents, and 7-Zip for sending sensitive files to clients.

Some links in this article may be affiliate links. We only recommend tools we've tested and trust. See our Affiliate Disclosure.

Questions about file encryption, or want us to test another tool? Reach us at contact@viperstream.cloud.