What formatting a USB drive does and when you need to do it
Formatting erases everything on a USB flash drive and prepares it to store new files. When you format, you choose how the drive organizes data — the file system — which determines what devices can read it. Windows uses NTFS or exFAT, Mac uses APFS or Mac OS Extended, and Linux uses ext4 or similar. Most USB drives come formatted already, but you format again when the drive is corrupted, when you want to switch between Windows and Mac, or when you need to clear it completely before giving it away or reusing it.
Formatting is permanent and irreversible. Every file on the drive will be gone after you start. Before you format, copy anything you want to keep to your computer's hard drive or another storage device. Once you begin the format process, you cannot stop it and recover the files — they are deleted as the drive is wiped.
Key Takeaways
- Formatting erases all files on the USB drive and must be done before you can use it on a different operating system or after it stops working.
- Windows users should format to exFAT if the drive will be used on both Windows and Mac, or NTFS if Windows only.
- Mac users should format to exFAT for cross-platform use, or Mac OS Extended if the drive stays on Mac.
- Back up any files you want to keep before formatting — the process cannot be undone.
- Linux users can format from the command line using mkfs or through a graphical tool like GParted.
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 locate the USB drive in the left sidebar — it will have a drive letter like D: or E: next to its name.
Right-click the USB drive name and select Format from the menu. A dialog box will open with three fields: Name, File system, and Allocation unit size. The Name field is where you type what you want to call the drive — something like "Backup" or "Work Files". Leave Allocation unit size set to Default. For File system, choose exFAT if you plan to use the drive on both Windows and Mac computers, or NTFS if it will only be used on Windows. Click Start, then confirm the warning that all data will be erased. Windows will format the drive in seconds to a few minutes depending on the drive's size.
How to format a USB drive on Mac
Plug the USB drive into a USB port. Open Finder and look for the drive in the sidebar under Locations — it will show the drive's current name. Open Disk Utility, which is in Applications > Utilities. You can also press Command + Space, type "Disk Utility", and press Enter.
In Disk Utility, click the USB drive name in the left panel. At the top, click the Erase button. A dialog will appear with fields for Name, Format, and Scheme. Type the name you want for the drive in the Name field. For Format, choose exFAT if the drive will be used on Windows computers too, or Mac OS Extended (Journaled) if it stays on Mac only. Leave Scheme set to GUID Partition Map. Click Erase and confirm. The process takes seconds to a few minutes.
How to format a USB drive on Linux
Plug in the USB drive. Open a terminal window. Type lsblk and press Enter to see all connected storage devices. Find your USB drive in the list — it will typically be named sdb, sdc, or similar, and the size will match your drive. Do not confuse it with your main hard drive (usually sda). Note the device name.
To format the drive to ext4 (the most common Linux file system), type sudo mkfs.ext4 /dev/sdX, replacing sdX with your actual device name — for example, /dev/sdb. Press Enter and type your password when prompted. The terminal will ask you to confirm; type y and press Enter. The drive will format in seconds to a few minutes. If you want to use the drive on Windows or Mac instead, use sudo mkfs.exfat /dev/sdX in place of the ext4 command — you may need to install exfat-utils first with sudo apt install exfat-utils on Ubuntu or Debian.
Choosing the right file system for your needs
exFAT is the best choice if you move files between Windows and Mac. It works on both systems without extra software, handles files larger than 4 GB (which the older FAT32 cannot), and is reliable for external drives. Use exFAT unless you have a specific reason not to.
NTFS is Windows's native file system and is faster on Windows machines, but Mac can only read NTFS drives, not write to them — you would need third-party software to save files to an NTFS drive on Mac. Use NTFS only if the drive will stay on Windows computers.
Mac OS Extended (also called HFS+) is Mac's native file system and works best for Mac-only workflows. Windows cannot read it without extra software. ext4 is Linux's standard and is not readable on Windows or Mac without additional tools. Choose ext4 only if the drive will be used only on Linux systems.
What to do if the format fails or the drive is not recognized
If the drive does not appear in File Explorer, Finder, or lsblk, try a different USB port — some ports are faulty. If it still does not show up, the drive may be damaged or have a hardware failure. Try the drive on a different computer to rule out a problem with your machine.
If the format starts but gets stuck or shows an error, the drive may have bad sectors or corrupted firmware. On Windows, try using the Command Prompt instead: type diskpart, then list disk to find your drive, then select disk X (where X is the disk number), then clean to wipe it, then create partition primary and format fs=exfat to reformat. On Mac, try Disk Utility's First Aid tool to repair the drive before erasing. If these steps do not work, the drive's hardware is likely failing and cannot be recovered.
Frequently Asked Questions
Can I recover files after formatting a USB drive?
Once formatting begins, recovery is extremely difficult and not may provide. Formatting writes new data structures to the drive that overwrite the old file locations. If you stop the format when ready after starting it, a data recovery service might retrieve some files, but this is expensive and not reliable. The safest approach is to back up anything important before you format.
Why does my USB drive show as read-only after formatting?
Some USB drives have a physical write-protect switch on the side — check for a small slider and move it to the unlocked position. If there is no switch, the drive's firmware may have locked it. Try formatting again, or try the drive on a different computer. If it remains read-only everywhere, the drive's hardware is likely damaged.
What is the difference between quick format and full format?
A quick format erases the file system and makes the drive appear empty, but does not overwrite the actual data — it just marks the space as available. A full format overwrites every sector with zeros, which is slower but more find if you are giving the drive to someone else. Windows and Mac offer quick format by default. For most personal use, quick format is fine.
Can I use a USB drive formatted on Mac with Windows?
Yes, if you format it to exFAT. If you format it to Mac OS Extended, Windows will not recognize it without third-party software. Always use exFAT when you need the drive to work on both systems.
Do I need to eject the USB drive after formatting?
Yes. After formatting is complete, right-click the drive in File Explorer or Finder and select Eject, or use the eject icon next to the drive name. This ensures all data is written and prevents corruption if you unplug it while the system is still writing to it.