How To Encrypt A USB Drive Or Folder With VeraCrypt (2027)

Quick answer

  • Open VeraCrypt, click Create Volume, keep the first option (Create an encrypted file container), set a location, a size and a strong password, move the mouse until the randomness bar turns green, then click Format.
  • To use it, pick a drive letter in the main window, click Select File, choose the container, click Mount and enter the password; click Unmount before you unplug or switch off.
  • VeraCrypt has no backdoor, so a forgotten password cannot be recovered by the developers; back up the volume header early with Tools > Backup Volume Header.

Applies to: VeraCrypt on Windows (the steps follow the official Beginner’s Tutorial)

To encrypt files with VeraCrypt, you create a container file, mount it as a virtual drive, and copy your files onto that drive. Everything you save there is encrypted on the fly.

This guide follows the official VeraCrypt Beginner’s Tutorial and FAQ, in the same order, and adds the warnings that stop people losing data.

Table of Contents

Which option should you choose

What you wantWizard optionMount with
An encrypted folder-like file you can copy aroundCreate an encrypted file containerSelect File, then Mount
A whole USB drive or a separate partitionSecond or third option (partition or device)Auto-Mount Devices
The Windows system driveCovered in a separate System Encryption chapterNot covered here

If you only want to protect a few files, a container is the simplest choice.

Create an encrypted container

  1. Install VeraCrypt if needed, then start it from the Start menu shortcut or by double-clicking VeraCrypt.exe.
  2. In the main window, click Create Volume.
  3. Keep the default option, which creates a volume within a file (a container), and click Next.
  4. Choose a standard volume or a hidden volume. The tutorial uses standard, which is the default, then click Next.
  5. Click Select File, pick a folder, type a name in the Filename box and click Save. The tutorial uses a .hc file.
  6. Click Next, then choose an encryption algorithm and a hash algorithm. If you are unsure, keep the defaults.
  7. Set the size of the container. The tutorial uses 250 MB as its example.
  8. Type a strong password, type it again to confirm, and click Next. The button stays disabled until both entries match.
  9. Move the mouse randomly inside the wizard until the randomness indicator turns green, then click Format.
  10. When the confirmation appears, click OK, then click Exit in the wizard.

The tutorial recommends moving the mouse for at least 30 seconds, and says creating a large volume can take a long time.

Do not pick a file that already exists

VeraCrypt does not encrypt existing files when it creates a container.

If you select a file that already exists in the Select File step, the tutorial warns that the overwritten file will be lost, not encrypted.

Always type a new filename for the container.

Mount the container and use it

  1. In the main window, pick a drive letter from the list. The tutorial uses M.
  2. Click Select File, browse to the container and click Open.
  3. Click Mount and type your password.
  4. Choose the PRF algorithm used when the volume was created. SHA-512 is the default, and leaving it on autodetection works but takes longer.
  5. Click OK. If the password is wrong, try again.

Once mounted, the container appears as a virtual disk, so you can copy, move and save files to it like any other drive.

The files are encrypted on the fly, and you are not asked for the password again until you remount.

Unmount when you finish

Select the volume in the list of mounted volumes in the main window and click Unmount.

The tutorial notes that data is decrypted only in RAM and is never saved to disk in decrypted form.

If power is cut without a proper shutdown, the files become inaccessible until you mount the volume again.

Encrypt a whole USB drive or partition

Follow the first three steps above, but on the third step choose the second or third option instead of the file container, then continue through the wizard.

To mount a volume stored on a non-system partition or drive, click Auto-Mount Devices in the main window.

If you would rather use the encryption built into Windows, see our guide to BitLocker To Go on a USB drive.

USB layout from the FAQWhat it means
Encrypt the whole driveYou cannot run VeraCrypt from that drive
Small unencrypted first partition plus encrypted partitionsVeraCrypt can sit on the first partition; Windows shows only that partition, but VeraCrypt can reach the rest
A file container on the driveLeave room for VeraCrypt itself and run it from the drive

The FAQ also says VeraCrypt can run without installing in Portable Mode, but it only links to that chapter and gives no steps.

Unmount before you unplug a USB drive

The FAQ says to unmount the volume in VeraCrypt before you unplug or power off a USB device, because otherwise data loss may occur.

You do not need to unmount before shutting down or restarting, since VeraCrypt unmounts volumes automatically then.

Forgotten password

VeraCrypt has no backdoor, so the developers cannot recover your files.

The FAQ says that without the password or key the only route is cracking it, which it estimates could take thousands or millions of years.

It adds that standard containers use 500,000 key-derivation iterations, compared with at most 2,000 in TrueCrypt.

The one safety net the FAQ names is a backup of the volume header, made beforehand with Tools > Backup Volume Header, which lets an administrator reset a password.

Make that backup right after you create the volume, and keep the password somewhere safe.

Move, copy and back up a container

TaskWhat the FAQ says
Move, rename or deleteA file container is a regular file, so do it like any other file
Use on another computerVolumes are independent of the operating system and mount wherever VeraCrypt runs
Mac and LinuxVolumes are described as fully cross-platform
File system insideFAT12, FAT16, FAT32, NTFS or another; the volume stays encrypted
Slow large containerDefragment the drive while the volume is unmounted
Burn to DVD over 2 GBUse UDF, because ISO does not support files that large

Never format a partition while its volume is unmounted, because the FAQ says that destroys the volume.

After you copy unencrypted originals into the volume, the tutorial says to securely wipe the originals with a secure-erase tool.

Mac permission error

On macOS, the FAQ says the Operation not permitted error can be fixed by giving VeraCrypt Full Disk Access in System Settings > Privacy & Security, or by launching it with sudo.

Sources

Checked on November 29, 2026 against the official VeraCrypt Beginner’s Tutorial and VeraCrypt FAQ.

If you also move passwords between apps, see how to export Chrome passwords to a CSV file.

Leave a Reply

Your email address will not be published. Required fields are marked *