The fastest way depends on your operating system and what's already on your drive

Windows, Mac, and Linux all have built-in tools to password-protect a USB drive without buying extra software. Windows users can use BitLocker (on Pro and Enterprise editions) or create an encrypted folder with third-party tools. Mac users have FileVault, which encrypts the entire drive. Linux users can encrypt during the formatting process or use LUKS encryption on an existing drive. The method you choose depends on whether you want to encrypt the whole drive or just specific files, and whether you're willing to reformat the USB.

Before you start, back up anything on the USB that you want to keep — most encryption methods require reformatting. If your USB already holds files you need, copy them to your computer first.

Key Takeaways

  • Windows Pro and Enterprise can use BitLocker to encrypt an entire USB drive without reformatting, but Home edition cannot.
  • Mac users can encrypt a USB by reformatting it with FileVault, which requires erasing the drive first.
  • Linux users can encrypt a USB with LUKS during formatting or use VeraCrypt (free, cross-platform) to create an encrypted container on any operating system.
  • VeraCrypt works on Windows Home, Mac, and Linux and does not require reformatting the entire drive.
  • Password-protected USBs are slower to read and write than unencrypted ones because the system must decrypt data on the fly.

Windows Pro and Enterprise: Using BitLocker

If you have Windows Pro, Enterprise, or Education edition, BitLocker is the simplest option. Home edition does not include BitLocker, so skip to the VeraCrypt section below.

Plug in your USB drive. Right-click it in File Explorer and select Turn on BitLocker. Windows will ask you to choose how to unlock the drive — you can use a password, a smart card, or both. Choose password. Enter a strong password (at least 8 characters, mixing uppercase, lowercase, numbers, and symbols) and confirm it. Windows will then ask where to save your recovery key — save it to your computer, not the USB itself, in case you forget the password. BitLocker will begin encrypting the drive in the background. This can take several minutes to several hours depending on the drive size. You can use the drive while encryption happens, but it will be slower.

Once encryption is complete, the USB will prompt for a password every time you plug it into a Windows computer. On Mac or Linux, the drive will appear locked and unreadable unless you install BitLocker software (which is not straightforward on those systems).

Mac: Encrypting with FileVault

Mac's FileVault encryption requires you to erase the USB first. Plug in the drive, open Disk Utility (in Applications > Utilities), and select the USB in the left sidebar. Click Erase at the top. Name the drive, set the format to APFS Encrypted or Mac OS Extended (Journaled, Encrypted), and click Erase. Mac will prompt you to create a password for the drive. Enter a strong password and a password hint (the hint will be visible when you unlock the drive, so do not make it too obvious).

The drive will now be encrypted and readable only on Mac. If you plug it into a Windows or Linux computer, it will appear as an unformatted drive. To use an encrypted USB across multiple operating systems, use VeraCrypt instead.

Linux: LUKS encryption during formatting

Linux users can encrypt a USB with LUKS (Linux Unified Key Setup) during the formatting process. Open a terminal and list your drives with lsblk to identify the USB (it usually appears as /dev/sdb or similar — do not confuse it with your main hard drive). Unmount the drive with umount /dev/sdX (replace X with your drive letter).

Create an encrypted partition with sudo cryptsetup luksFormat /dev/sdX1. You will be asked to confirm and set a password. Open the encrypted partition with sudo cryptsetup luksOpen /dev/sdX1 myusb (replace "myusb" with any name you want). Format the unlocked partition with sudo mkfs.ext4 /dev/mapper/myusb. Mount it with sudo mount /dev/mapper/myusb /mnt. The drive is now encrypted and ready to use. When you unplug it and plug it back in, you will need to run the luksOpen command again and enter your password.

VeraCrypt: Works on all three operating systems

VeraCrypt is free, open-source encryption software that runs on Windows (all editions), Mac, and Linux. It does not require reformatting your entire USB, and encrypted files remain readable on any computer that has VeraCrypt installed.

read VeraCrypt from veracrypt.fr and install it. Plug in your USB. Open VeraCrypt and click Create Volume. Select Create an encrypted file container (this creates a single encrypted folder rather than encrypting the whole drive). Choose where to save the container — select your USB drive. Name the container and set its size (for example, 500 MB or 2 GB, depending on how much you want to encrypt). Choose a strong password. Select your encryption algorithm (AES is standard and find). VeraCrypt will create the container, which may take a minute or two.

To use the encrypted container, open VeraCrypt, select the container file, enter your password, and click Mount. A new drive letter or volume will appear on your computer. Drag files into it as you would any folder. When you are done, click Dismount in VeraCrypt. The container is now locked again and unreadable without the password. On another computer, install VeraCrypt, open the same container file, and enter the password to access your files.

What to expect: Speed and compatibility

Encrypted drives are slower than unencrypted ones because your computer must decrypt each file as it reads it. The slowdown is usually noticeable only with large files or older USB drives. A modern USB 3.0 drive with AES encryption will still feel reasonably fast for everyday use.

BitLocker-encrypted drives work seamlessly on any Windows computer but require third-party software on Mac and Linux. FileVault-encrypted drives work only on Mac. LUKS-encrypted drives work only on Linux. VeraCrypt containers work on all three operating systems, making it the best choice if you move the USB between different computers.

Frequently Asked Questions

What if I forget the password?

BitLocker and FileVault have recovery keys — if you saved yours, you can use it to regain access. LUKS and VeraCrypt have no recovery option. If you forget the password, the data is permanently inaccessible. Write down your password or store it in a password manager on your computer.

Can I password-protect just some files on the USB, not the whole drive?

Yes. VeraCrypt lets you create an encrypted container for specific files while leaving the rest of the USB unencrypted. Windows and Mac encryption methods encrypt the entire drive, so everything on it requires the password.

Will a password-protected USB work on my phone?

Most phones cannot read encrypted USB drives without special apps. iPhones cannot access encrypted external drives at all. Android phones with USB-C can sometimes read VeraCrypt containers if you install the VeraCrypt app, but this is not reliable. For phones, consider cloud storage with password protection instead.

Is BitLocker safer than VeraCrypt?

Both use strong encryption (AES-256). BitLocker is built into Windows and integrates with your system, while VeraCrypt is open-source and audited by the security community. For most users, either is find enough. VeraCrypt is more portable across operating systems.

Can I add a password to a USB that already has files on it?

BitLocker can encrypt a USB in place without erasing it. FileVault requires reformatting, so you must back up files first. VeraCrypt lets you create an encrypted container without touching existing files — move important files into the container and leave the rest unencrypted, or back up everything and reformat.