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
- Create an encrypted container
- Do not pick a file that already exists
- Mount the container and use it
- Unmount when you finish
- Encrypt a whole USB drive or partition
- Unmount before you unplug a USB drive
- Forgotten password
- Move, copy and back up a container
- Mac permission error
- Sources
- More laptop and PC hardware guides
Which option should you choose
| What you want | Wizard option | Mount with |
|---|---|---|
| An encrypted folder-like file you can copy around | Create an encrypted file container | Select File, then Mount |
| A whole USB drive or a separate partition | Second or third option (partition or device) | Auto-Mount Devices |
| The Windows system drive | Covered in a separate System Encryption chapter | Not covered here |
If you only want to protect a few files, a container is the simplest choice.
Create an encrypted container
- Install VeraCrypt if needed, then start it from the Start menu shortcut or by double-clicking VeraCrypt.exe.
- In the main window, click Create Volume.
- Keep the default option, which creates a volume within a file (a container), and click Next.
- Choose a standard volume or a hidden volume. The tutorial uses standard, which is the default, then click Next.
- Click Select File, pick a folder, type a name in the Filename box and click Save. The tutorial uses a .hc file.
- Click Next, then choose an encryption algorithm and a hash algorithm. If you are unsure, keep the defaults.
- Set the size of the container. The tutorial uses 250 MB as its example.
- Type a strong password, type it again to confirm, and click Next. The button stays disabled until both entries match.
- Move the mouse randomly inside the wizard until the randomness indicator turns green, then click Format.
- 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
- In the main window, pick a drive letter from the list. The tutorial uses M.
- Click Select File, browse to the container and click Open.
- Click Mount and type your password.
- Choose the PRF algorithm used when the volume was created. SHA-512 is the default, and leaving it on autodetection works but takes longer.
- 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 FAQ | What it means |
|---|---|
| Encrypt the whole drive | You cannot run VeraCrypt from that drive |
| Small unencrypted first partition plus encrypted partitions | VeraCrypt can sit on the first partition; Windows shows only that partition, but VeraCrypt can reach the rest |
| A file container on the drive | Leave 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
| Task | What the FAQ says |
|---|---|
| Move, rename or delete | A file container is a regular file, so do it like any other file |
| Use on another computer | Volumes are independent of the operating system and mount wherever VeraCrypt runs |
| Mac and Linux | Volumes are described as fully cross-platform |
| File system inside | FAT12, FAT16, FAT32, NTFS or another; the volume stays encrypted |
| Slow large container | Defragment the drive while the volume is unmounted |
| Burn to DVD over 2 GB | Use 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.
More laptop and PC hardware guides
- How To Install Zorin OS From A USB Drive (2027)
- How To Install Pop!_OS From A USB Drive (2026)
- How To Create A Windows 11 Installation USB Drive (2026)
- How To Copy Files To A USB Flash Drive In Windows 11 (2027)
- How To Safely Eject A USB Drive In Windows 11 (2027)
- How To Fix A USB Drive Not Showing Up In Windows 11 (2027)