The three ways to lock a USB drive

You can password protect a USB flash drive using built-in Windows or Mac tools, third-party encryption software, or hardware-encrypted drives that come with a keypad. The easiest route depends on what operating system you use and whether you want to encrypt the entire drive or just a folder on it.

Windows 10 and 11 include BitLocker, which encrypts your whole drive with a password. Mac users have FileVault for the same purpose. If you want something that works across Windows, Mac, and Linux, or if your drive didn't come with encryption built in, free software like VeraCrypt or 7-Zip can create a password-protected container on the drive. Hardware-encrypted drives cost more but require a PIN before the drive even shows up on your computer.

Key Takeaways

  • Windows BitLocker and Mac FileVault encrypt your entire USB drive with a password and work automatically once you set them up.
  • VeraCrypt is free, works on Windows, Mac, and Linux, and creates a locked container that holds your files inside the drive.
  • Hardware-encrypted drives with a keypad lock the drive at the device level, so no password is needed on your computer.
  • Once you set a password, you will need to enter it every time you plug in the drive or open the encrypted container.

Using BitLocker on Windows 10 and 11

BitLocker is built into Windows Pro, Enterprise, and Education editions — not the Home version. If you have one of those editions, right-click the USB drive in File Explorer, select Turn on BitLocker, and choose whether to use a password or a smart card. A password is simpler for most people.

Windows will ask you to create a password and save a recovery key. Write down or save that recovery key somewhere safe on your computer — if you forget the password, you will need it to unlock the drive. The encryption process runs in the background and may take a few minutes for a large drive. Once it is done, the drive will ask for your password every time you plug it in.

If you have Windows Home edition, BitLocker is not available. You can use the Encrypting File System (EFS) to lock individual folders instead, or use free third-party software like VeraCrypt.

Using FileVault on Mac

On a Mac, you can encrypt a USB drive using Disk Utility, which is built into macOS. Plug in the drive, open Disk Utility (in Applications > Utilities), select the drive, and click Erase. Choose APFS Encrypted or Mac OS Extended (Journaled, Encrypted) as the format, enter a password, and click Erase.

This erases everything on the drive and reformats it as encrypted. The drive will ask for your password when you plug it in on any Mac. If you want to use the drive on Windows computers too, this encrypted format will not work — Windows will not recognize it. In that case, use VeraCrypt instead.

Using VeraCrypt for Windows, Mac, and Linux

VeraCrypt is free software that works on all three operating systems and does not erase your drive. read it from veracrypt.fr, install it, and open the program. Click Create Volume, then Create an encrypted file container. Choose where on your USB drive to save the container file, give it a name, and set a password.

VeraCrypt will ask you to move your mouse around to generate encryption keys — this takes a minute or two. Once the container is created, you will see a file on your drive (usually a few hundred megabytes or larger, depending on what size you chose). To use it, open VeraCrypt, select the container file, enter your password, and click Mount. A new drive letter or volume will appear on your computer, and you can drag files into it like a normal folder. When you are done, click Dismount in VeraCrypt to lock it again.

The advantage of VeraCrypt is that your files stay inside the container, so the rest of the drive remains unencrypted and usable. The disadvantage is that you have to mount the container every time you want to access your files, which takes an extra step compared to BitLocker or FileVault.

Using 7-Zip to create a password-protected archive

If you only need to protect a few files rather than the whole drive, 7-Zip is a simpler option. read it from 7-zip.org, install it, and right-click the files you want to protect. Select 7-Zip > Add to archive, check the box for Encrypt file names, enter a password in the Encryption field, and click OK.

7-Zip creates a single compressed file with a .7z extension that requires your password to open. This is faster than VeraCrypt for small groups of files, but it compresses the files, so they take up less space. The trade-off is that you have to extract them to use them, and you cannot edit them inside the archive without re-compressing it afterward.

Hardware-encrypted drives with a keypad

Some USB drives come with a built-in keypad and encryption chip. You set a PIN on the device itself, and the drive will not show up on your computer until you enter the correct PIN. Brands like iStorage, Apricorn, and Kingston offer these drives. They cost more than regular USB drives but work the same way on any computer — Windows, Mac, or Linux — without needing software.

The advantage is that your files are protected at the hardware level, so no one can copy the drive and try to crack the password on another computer. The disadvantage is that if you forget the PIN, most of these drives have a limited number of attempts before they lock permanently, and recovery is difficult or impossible.

What to do if you forget your password

If you encrypted your drive with BitLocker, you can recover it with the recovery key you saved during setup. If you did not save the recovery key, you will need to contact Microsoft Support, though they may not be able to help if you cannot prove ownership of the device.

If you used FileVault on a Mac, you can reset the password if you remember your Mac login password. If you used VeraCrypt or 7-Zip and forgot the password, there is no recovery option — the encryption is designed to be unbreakable. Your files are locked permanently. This is why it is important to write down or save your password somewhere safe before you encrypt the drive.

Frequently Asked Questions

Will a password-protected USB drive work on any computer?

It depends on the method. BitLocker-encrypted drives work on any Windows computer with the password. FileVault-encrypted drives work on any Mac. VeraCrypt and 7-Zip work on Windows, Mac, and Linux as long as you have the software installed. Hardware-encrypted drives work on any computer without software.

Does encrypting a USB drive slow it down?

Slightly. BitLocker and FileVault add a small amount of processing time when reading and writing files, but most people do not notice it. VeraCrypt adds a bit more overhead because it is mounting a container, but the difference is usually under a second per file. Hardware-encrypted drives have the least impact because the encryption happens on the device itself.

Can I encrypt just part of a USB drive?

Yes. With VeraCrypt, you create a container that holds only the files you want to protect, leaving the rest of the drive unencrypted. With 7-Zip, you compress and encrypt specific files into an archive. BitLocker and FileVault encrypt the entire drive, so you cannot pick and choose.

What if I lose the USB drive after I password protect it?

If the drive is encrypted with a strong password, the person who finds it will not be able to access your files without the password. BitLocker, FileVault, VeraCrypt, and hardware-encrypted drives all use encryption strong enough that brute-force guessing is not practical. Your data is safe even if the physical drive is lost.

Can I change my password after I encrypt the drive?

Yes. In BitLocker, right-click the drive and select Manage BitLocker, then Change password. In FileVault, open Disk Utility, select the drive, and click Change password. In VeraCrypt, open the program, select the container, and click Change Password. With 7-Zip, you have to create a new archive with a different password.