What formatting a USB drive does and why you might need to do it

Formatting a USB flash drive erases everything on it and prepares the drive to store new files. When you format, you choose a file system — the invisible structure that tells your computer how to organize and find files on that drive. Most USB drives come formatted already, but you may need to reformat if the drive is corrupted, if you want to change which devices can read it, or if you want to wipe it completely before giving it away or recycling it.

The file system you choose matters. FAT32 works on Windows, Mac, and Linux, but cannot store files larger than 4 GB. NTFS works on Windows and newer Macs, handles large files, but is less compatible with older devices. exFAT works on Windows and Mac, handles large files, and is becoming the standard for cross-platform drives. Linux systems typically use ext4, which Windows cannot read without extra software.

Formatting is permanent — the drive will not recover erased files afterward. If you have files on the drive you want to keep, copy them to your computer first.

Key Takeaways

  • Formatting erases all files on the drive and prepares it to store new data in a chosen file system.
  • FAT32 works everywhere but cannot store files larger than 4 GB; exFAT is the better choice for cross-platform use with large files.
  • On Windows, right-click the drive in File Explorer, select Format, choose your file system, and confirm; on Mac, use Disk Utility and select the format from the Erase menu.
  • Linux users can format in the file manager's right-click menu or use the command line with mkfs if the graphical option is not available.
  • Back up any files you want to keep before formatting, because the process cannot be undone.

How to format a USB drive on Windows

Plug the USB drive into a USB port on your computer. Wait a few seconds for Windows to recognize it. Open File Explorer (the folder icon on your taskbar), and you should see the drive listed on the left side or in the main window.

Right-click the drive name and select Format from the menu. A dialog box will open. In the File system dropdown, choose FAT32 for maximum compatibility, exFAT for large files and cross-platform use, or NTFS if you only use Windows. Leave the Allocation unit size set to Default. Type a name for the drive in the Volume label field if you want to — this is optional. Check the box next to Quick Format to speed up the process; unchecking it takes longer but is more thorough if the drive is old or damaged.

Click Start, then confirm the warning that all data will be erased. Windows will format the drive in seconds (or a few minutes if you did not use Quick Format). When it finishes, the drive is ready to use.

How to format a USB drive on Mac

Plug the USB drive into your Mac. Open Disk Utility — you can find it by clicking the Spotlight icon (magnifying glass) in the top right, typing "Disk Utility", and pressing Enter. The application will open and show all your drives.

Click the USB drive name in the left panel. At the top of the window, click the Erase button. A dialog will appear asking for a name and format. Type a name for the drive in the first field. In the Format dropdown, choose Mac OS Extended if you only use Macs, exFAT if you share the drive with Windows computers, or FAT32 for maximum compatibility with older devices. Leave the Scheme set to GUID Partition Map unless you have a specific reason to change it.

Click Erase and confirm. The process takes a few seconds. Your Mac will then mount the drive and show it on the desktop as a new icon.

How to format a USB drive on Linux

Plug the USB drive in and open your file manager. Locate the drive in the left sidebar or main window. Right-click it and look for an option called Format, Format Drive, or Format Partition. If you see this option, click it, choose your file system (exFAT for cross-platform use, ext4 for Linux-only), type a name, and confirm.

If the right-click menu does not show a format option, open a terminal instead. Type lsblk to list all drives and find your USB drive's name — it usually appears as sdb, sdc, or similar. Then type sudo mkfs.ext4 /dev/sdX (replace X with your drive's letter) to format it as ext4, or sudo mkfs.exfat /dev/sdX for exFAT. The system will ask for your password and warn you that data will be erased. Type your password and press Enter to proceed.

After formatting completes, unplug and replug the drive so your file manager recognizes the new format.

Choosing the right file system for your situation

If you use only one type of computer — only Windows, only Mac, or only Linux — you can choose the native format for that system: NTFS for Windows, Mac OS Extended for Mac, or ext4 for Linux. These formats offer the best performance and support all file sizes.

If you share the drive between Windows and Mac, use exFAT. It works on both systems, handles files larger than 4 GB, and is becoming the standard for external drives. If you need to share with very old devices or older versions of Windows (before Windows XP), use FAT32, but remember the 4 GB file size limit.

If you share between Linux and Windows or Mac, exFAT is again your best choice. Linux can read exFAT if the exfat-fuse package is installed, which most modern distributions include by default. If exFAT does not work on your Linux system, you can install the package through your package manager or format as FAT32 instead.

What to do if the drive will not format

If you try to format and get an error, the drive may be write-protected. Check for a small physical switch on the side of the drive — if it is in the locked position, slide it to unlock. Some drives have this switch; others do not.

If there is no switch and the drive still will not format, try a different USB port on your computer. Faulty ports are common. If a different port does not work, try a different computer — the drive itself may be failing.

On Windows, if the format dialog will not open, try opening Disk Management instead. Press Windows key + X, select Disk Management, right-click the drive, and select Format. On Mac, if Disk Utility shows the drive as unmountable or greyed out, the drive may be damaged beyond repair. On Linux, if the terminal command fails with a permission error, make sure you used sudo at the start of the command.

Frequently Asked Questions

Can I undo a format if I accidentally erased files I needed?

Formatting is designed to be permanent, and standard recovery tools rarely recover files after a format. Your best option is to stop using the drive immediately and take it to a data recovery service, which may be able to retrieve files depending on how long ago the format happened and how much the drive has been used since. This is expensive and not always successful.

Why does my USB drive show as read-only and will not let me delete files?

The drive may have a write-protection switch on the side — check for a small slider and move it to the unlocked position. If there is no switch, the drive may be failing or the file system may be corrupted. Try formatting it; if the format dialog says the drive is read-only, the drive hardware is likely damaged and cannot be fixed by formatting.

What file system should I use if I am not sure what devices will read the drive?

Use exFAT. It works on Windows, Mac, and Linux (on most modern systems), handles large files, and is becoming the standard for USB drives sold today. FAT32 is more compatible with very old devices but cannot store files larger than 4 GB.

Does formatting a USB drive make it faster?

Formatting does not change the drive's speed. A drive that feels slow before formatting will feel the same speed after. If a drive is noticeably slower than it used to be, the hardware may be wearing out, and formatting will not fix that.

Can I format a USB drive while files are still on it?

You can start the format process, but the system will warn you that all data will be erased and ask you to confirm. If you proceed, everything on the drive will be deleted. Always copy files you want to keep to your computer before formatting.