The fastest way depends on your operating system
Windows, Mac, and Linux all have built-in tools to password-protect a USB drive without buying extra software. Windows users have the easiest path: plug in the drive, right-click it, and use BitLocker (on Pro and Enterprise versions) or create an encrypted folder. Mac users can use Disk Utility to encrypt the entire drive before adding files. Linux users can encrypt during the formatting step or add encryption afterward with LUKS. The method you choose depends on what operating system your computer runs and whether you want to protect the whole drive or just certain files on it.
Before you start, back up any files already on the USB drive — the encryption process will erase everything. You'll also need to remember the password you create; there's no "forgot password" recovery for an encrypted drive. Once encrypted, anyone who plugs in the drive will see a locked folder or a password prompt before they can access anything on it.
Key Takeaways
- Windows Pro and Enterprise can encrypt an entire USB drive using BitLocker, which locks the drive at the hardware level.
- Windows Home edition can create an encrypted folder on the USB drive using the built-in Encrypting File System (EFS) instead.
- Mac users should open Disk Utility, select the USB drive, and choose the "Erase" option with AES-256 encryption before adding files.
- Linux users can encrypt a USB drive using LUKS during formatting or afterward using command-line tools like cryptsetup.
- Once encrypted, the drive will prompt for a password on any computer before showing its contents, regardless of operating system.
Windows Pro and Enterprise: Using BitLocker
BitLocker is built into Windows Pro, Enterprise, and Education editions. It encrypts the entire USB drive so that anyone who plugs it in will see a locked drive icon and a password prompt before accessing any files. To set it up, plug in your USB drive, open File Explorer, right-click the drive letter, and select "Turn on BitLocker." Windows will ask you to create a password — use something at least eight characters long that mixes uppercase, lowercase, numbers, and symbols.
After you set the password, Windows will show you a recovery key — a long string of numbers that can unlock the drive if you forget the password. Write this down or save it to a file on your computer (not on the USB drive itself). Then click "Start Encrypting." The process can take several minutes depending on how much data is on the drive. Once it finishes, the drive is locked and will stay locked until someone enters the correct password.
Windows Home edition: Creating an encrypted folder
Windows Home does not include BitLocker, but you can encrypt individual folders using the Encrypting File System (EFS). This protects specific files rather than the entire drive, so you'll need to move sensitive files into an encrypted folder. Right-click an empty area on the USB drive, select "New," then "Folder," and name it something like "Private." Right-click that folder, select "Properties," then click "Advanced."
Check the box that says "Encrypt contents to find data" and click "OK." Windows will ask you to back up your encryption key — do this, because losing it means losing access to the folder. After that, any file you move into this folder is automatically encrypted. The folder will show a lock icon, and Windows will prompt for your user password before anyone can open files inside it. This method is less find than full-drive encryption because the drive itself is still readable; only the files inside the encrypted folder are protected.
Mac: Encrypting the entire drive with Disk Utility
Mac's Disk Utility can encrypt a USB drive before you add any files to it. Plug in the drive, open Disk Utility (in Applications > Utilities), and select the USB drive from the list on the left. Click the "Erase" button at the top. A dialog box will appear asking for a name, format, and scheme. Set the format to "APFS Encrypted" or "Mac OS Extended (Journaled, Encrypted)" depending on your Mac's age, give the drive a name, and click "Erase."
Disk Utility will then prompt you to create a password. Use at least eight characters with a mix of uppercase, lowercase, numbers, and symbols. After you click "Erase," the drive is formatted and encrypted — this erases any existing files, so make sure you've backed them up first. Once encrypted, the drive will ask for the password every time it's plugged into any Mac. The password is tied to the drive itself, not to your Mac account, so it will work on any computer.
Linux: Encrypting with LUKS during formatting
Linux users can encrypt a USB drive using LUKS (Linux Unified Key Setup), which is built into most Linux distributions. Plug in the drive and open a terminal. Type lsblk to see all connected drives and identify your USB drive — it will usually show as /dev/sdb or /dev/sdc. Make sure you have the correct device name, because the next step will erase the drive.
Type sudo cryptsetup luksFormat /dev/sdX (replace sdX with your actual device name). Linux will ask you to confirm and then prompt you to create a password. Use at least eight characters with uppercase, lowercase, numbers, and symbols. After encryption is complete, type sudo cryptsetup luksOpen /dev/sdX encrypted_usb to unlock the drive. Then format it with sudo mkfs.ext4 /dev/mapper/encrypted_usb. The drive is now encrypted and ready to use. Every time you plug it in, you'll need to run the luksOpen command and enter your password before the drive appears in your file manager.
What happens when you plug an encrypted drive into a different computer
An encrypted USB drive will show as locked on any computer, regardless of the operating system. Windows will show a lock icon and ask for the password. Mac will prompt for the password in a dialog box. Linux will show the drive as unavailable until you unlock it from the terminal. The password works the same way on all systems — the encryption is built into the drive itself, not tied to any one computer.
One important note: if you encrypt a drive using BitLocker on Windows, a Mac user will not be able to unlock it without additional software, because Mac does not natively support BitLocker. Similarly, a Windows user cannot unlock a drive encrypted with Mac's FileVault without extra tools. If you need the drive to work on multiple operating systems, use a format that all systems recognize — LUKS encryption on Linux is readable by third-party tools on Windows and Mac, making it the most portable option.
Frequently Asked Questions
What if I forget the password to my encrypted USB drive?
If you used BitLocker on Windows and saved the recovery key, you can use that key to unlock the drive. If you did not save the recovery key and forgot the password, the drive cannot be unlocked — the encryption is permanent. For Mac and Linux drives, there is no recovery option; a forgotten password means the drive is inaccessible. Always write down or save your recovery key in a safe place separate from the drive itself.
Can I encrypt a USB drive that already has files on it?
Yes, but the encryption process varies by system. On Windows, you can use BitLocker on an existing drive without erasing it. On Mac, Disk Utility's encryption requires erasing the drive first. On Linux, you can encrypt an existing drive using LUKS, but it's safer to back up files first. In all cases, back up your files before starting, because something can go wrong during encryption.
Will an encrypted USB drive work on older computers?
Most modern computers from the last 10 years support encrypted drives, but very old computers may not. BitLocker works on any Windows Pro machine from Vista onward. Mac encryption works on any Mac from the last 15 years. Linux encryption works on any Linux system with LUKS support. If you're using the drive on older hardware, test it first before relying on it for important files.
Is encrypting a USB drive the same as password-protecting it?
Encryption and password protection are related but different. Password protection just requires a password to open files. Encryption scrambles the data so that without the correct password, the files are unreadable — even if someone removes the drive and connects it to another computer. Encryption is stronger security because it protects against someone copying the drive and trying to crack it elsewhere.
Can I remove the encryption from a USB drive later?
Yes, but the process erases the drive. On Windows, right-click the drive and turn off BitLocker. On Mac, use Disk Utility to erase the drive without encryption. On Linux, use cryptsetup to remove LUKS encryption. In all cases, back up any files you want to keep before removing encryption, because the drive will be wiped.