Skip to content

How-ToOS

How to Create an Encrypted Container with VeraCrypt on Windows

Step-by-step guide to creating, mounting and unmounting an encrypted VeraCrypt container on Windows, plus encrypting a whole USB drive, based on VeraCrypt's official Beginner's Tutorial.

By , Systems & Technical Editor

4 min read

How to Create an Encrypted Container with VeraCrypt on Windows

The steps below come from VeraCrypt's official Beginner's Tutorial and downloads page, read on 23 November 2026, so wording in the wizard may differ slightly between versions.

BitLocker encrypts whole drives, but sometimes you just want a locked vault for a few sensitive folders, or an encrypted area on a USB stick you can carry around. VeraCrypt, a free and open-source encryption tool, handles this with a container: a normal-looking file that VeraCrypt mounts as a virtual drive once you enter the password. If you're weighing up Windows' built-in options first, see our explainer on BitLocker vs Device Encryption.

Before you start

  • Get VeraCrypt from the official site. At the time of writing, VeraCrypt's downloads page lists version 1.26.31, dated 2 November 2026, with an EXE installer for x64 and ARM64 Windows, MSI installers and a portable version.

  • Pick a strong password and keep it safe. The password is what protects the container. VeraCrypt calls choosing it "one of the most important steps".

  • Know that existing files aren't encrypted in place. VeraCrypt warns that if you point the wizard at an existing file, that file is overwritten and lost, not encrypted. You create a new, empty container and move files into it afterwards.

Step 1: Start the Volume Creation Wizard

  1. Install and launch VeraCrypt.

  2. In the main window, click Create Volume.

  3. Leave the default option, which creates an encrypted file container, and click Next.

  4. Leave Standard VeraCrypt volume selected and click Next. (Hidden volumes are a more advanced option covered elsewhere in VeraCrypt's manual.)

Step 2: Choose where the container lives

  1. Click Select File and browse to the folder where you want the container. This can be an internal drive or a USB stick.

  2. Type a new filename, such as MyVolume.hc, and click Save. Don't pick an existing file, because it will be overwritten.

  3. Click Next.

Step 3: Encryption settings, size and password

  1. Encryption and hash algorithms: VeraCrypt says that if you're not sure what to choose, you can keep the defaults and click Next.

  2. Size: enter how large the container should be. VeraCrypt's tutorial uses 250 MB, but size it for what you plan to store, with some room to grow.

  3. Password: read the wizard's guidance on good passwords, type yours twice and click Next. The button stays greyed out until both entries match.

Step 4: Generate keys and format

Move your mouse randomly inside the wizard window, at least until the randomness indicator turns green. VeraCrypt recommends at least 30 seconds, because the movement increases the cryptographic strength of the encryption keys. Then click Format. Large containers can take a long time to create. When the confirmation appears, click OK, then Exit.

Step 5: Mount the container as a drive

  1. In the main VeraCrypt window, select a free drive letter from the list.

  2. Click Select File, browse to your container and click Open.

  3. Click Mount and enter your password.

  4. Leave the PRF setting on autodetection if you can't remember it (SHA-512 is VeraCrypt's default). Autodetection just makes mounting slower. Click OK.

The container now appears as a normal drive in File Explorer. You only enter the password when mounting. After that, files are encrypted and decrypted on the fly as you save and open them. VeraCrypt says decrypted data is only ever held in RAM, never written to disk.

Step 6: Move your files in, then lock it

Copy or drag files into the mounted drive. VeraCrypt advises securely erasing (wiping) the original unencrypted copies afterwards, and notes that many secure-erasure tools are free.

To lock the vault, select the volume in VeraCrypt's main window and click Unmount. Restarting or shutting down Windows also unmounts it. VeraCrypt says files stay encrypted and inaccessible even after a sudden power cut.

Encrypting a whole USB drive instead

VeraCrypt can also encrypt an entire partition or drive. Choose the second or third option in the wizard's first step, then follow the remaining prompts. You can mount these non-system volumes with Auto-Mount Devices. Read each wizard screen carefully and back up the drive first. Our pick of the best free backup software for Windows can help.

Our verdict

A VeraCrypt container is a simple, free way to keep sensitive files locked in a single file you can store anywhere, including on a USB stick. Create a new container (never select an existing file), keep the default algorithms if you're unsure, choose a strong password and move the mouse for at least 30 seconds before formatting. Wipe the unencrypted originals afterwards, and unmount the volume whenever you're done. Above all, don't lose the password. Without it, your files can't be opened.

The bottom line

A VeraCrypt container is a simple, free way to keep sensitive files locked in a single file you can store anywhere, including on a USB stick. Create a new container (never select an existing file), keep the default algorithms if you're unsure, choose a strong password and move the mouse for at least 30 seconds before formatting. Wipe the unencrypted originals afterwards, and unmount the volume whenever you're done. Above all, don't lose the password. Without it, your files can't be opened.

Sources

  1. 01VeraCrypt, Beginner's Tutorial
  2. 02VeraCrypt, Downloads

About the author

Marcus Thorne

Systems & Technical Editor

Marcus writes Forge PC's step-by-step build, troubleshooting and system optimisation guides. His background spans Windows kernel and power-state diagnostics, UEFI/BIOS configuration, NVMe storage arrays, ATX 3.1 power delivery and running local AI and LLM workloads on consumer graphics cards.

More from Marcus Thorne

Read next

How to Set Up a UPS to Shut Down Your PC Automatically

How-To

How to Set Up a UPS to Shut Down Your PC Automatically

How to make a UPS shut your PC down automatically in a power cut: connect the UPS's USB data cable, install the maker's software (CyberPower PowerPanel Personal as the example), choose Keep Computer Running or Preserve Battery Power, pick shutdown or hibernation, then test it.

Marcus Thorne7 min

Clonezilla vs Rescuezilla: Which Free Disk Imaging Tool Should You Use?

Versus

Clonezilla vs Rescuezilla: Which Free Disk Imaging Tool Should You Use?

Clonezilla vs Rescuezilla: both are free bootable disk imaging and cloning tools that share an image format. Clonezilla adds network destinations, encryption, scripting and mass deployment; Rescuezilla offers a point-and-click desktop, image browsing and extra rescue tools.

Callum Reid6 min

ShareX vs Snipping Tool: Which Free Screenshot Tool Should You Use?

Versus

ShareX vs Snipping Tool: Which Free Screenshot Tool Should You Use?

ShareX vs Snipping Tool: Windows' built-in Snipping Tool is quick and now does local OCR and video snips, while free, open-source ShareX adds scrolling captures, richer annotation, automated after-capture tasks, uploads and many extra tools. Here's which suits you.

Callum Reid7 min

How to Set Up SillyTavern with a Local LLM Using KoboldCpp

How-To

How to Set Up SillyTavern with a Local LLM Using KoboldCpp

How to set up SillyTavern with a local LLM: installing it on Windows or Linux, loading a GGUF model in KoboldCpp, connecting the two, tuning GPU layers to fit your graphics card's VRAM, adjusting context settings and fixing common problems.

Marcus Thorne8 min