Formatting a USB drive on Mac erases everything on it and prepares it to work with your computer
Formatting is the process of preparing a USB drive to store files. When you format, your Mac wipes the drive clean and sets up a file system — the invisible structure that lets your computer organize and find files. On a Mac, you have two main choices: APFS (Apple File System), which is faster and works best if you only use Apple devices, or exFAT, which works on both Macs and Windows computers.
Before you start, understand that formatting erases everything on the drive permanently. If there are files you need, copy them to your Mac first. Once you format, recovery is difficult and often requires paid software.
Key Takeaways
- Formatting erases all files on the USB drive, so back up anything you need before you begin.
- APFS is faster but only works on Macs; exFAT works on both Macs and Windows computers.
- Use Disk Utility, the built-in Mac tool, to format by connecting the drive, selecting it, and clicking Erase.
- If your drive does not appear in Disk Utility, try a different USB port or restart your Mac.
How to format using Disk Utility
Disk Utility is the standard Mac tool for formatting drives. Connect your USB drive to your Mac, then open Disk Utility by going to Applications > Utilities > Disk Utility (or search for it in Spotlight by pressing Command + Space, typing "Disk Utility", and pressing Enter).
In Disk Utility, you will see your USB drive listed on the left side. Click it once to select it. At the top of the window, click the Erase button. A dialog box will appear asking for a name (you can call it anything — "Backup" or "Work Files" are common choices) and a format. Choose APFS if you only use Macs, or exFAT if you share the drive with Windows computers. Click Erase, then confirm by clicking Erase again in the warning dialog. The process takes a few seconds to a minute depending on the drive size.
Choosing between APFS and exFAT
APFS is Apple's newer file system. It is faster, handles large files more efficiently, and includes built-in encryption if you want it. Use APFS if the drive will only connect to Macs and you want the best performance.
exFAT is older and works on both Macs and Windows computers without extra software. If you plan to use the drive on a Windows PC, a friend's Windows laptop, or a work computer that runs Windows, format as exFAT. The trade-off is slightly slower performance and a file size limit of 4 GB per file (though most files you store will be smaller than that).
If you are unsure, exFAT is the safer choice because it works everywhere. You can always reformat later if your needs change.
What to do if the drive does not appear in Disk Utility
If you plug in the USB drive and it does not show up in Disk Utility, try these steps in order. First, disconnect the drive and try a different USB port on your Mac — sometimes a port is not working properly. Wait a few seconds and reconnect.
If that does not work, restart your Mac with the drive connected. Sometimes macOS needs to recognize the drive after a restart. If the drive still does not appear, the drive itself may be damaged or not compatible with your Mac. Try connecting it to another Mac or computer to see if it appears there. If it works on another computer, the issue is with your Mac's USB ports or settings, not the drive.
Fixing a drive that your Mac recognizes but will not erase
Occasionally Disk Utility will show your drive but the Erase button is grayed out or the erase fails. This usually means the drive is write-protected or has a file system your Mac does not recognize. First, check if the drive has a physical write-protect switch — some USB drives have a small sliding switch on the side. If it is in the locked position, slide it to unlock.
If there is no physical switch, try unplugging the drive, waiting 10 seconds, and plugging it back in. Then try erasing again. If the drive still will not erase and you are certain it is not write-protected, the drive may be failing. In that case, it is usually not worth troubleshooting further — consider replacing it.
Using Terminal if Disk Utility does not work
If Disk Utility fails completely, you can format from Terminal, the command-line tool on your Mac. Open Terminal (Applications > Utilities > Terminal) and type diskutil list, then press Enter. This shows all connected drives with their names and identifiers (like disk2 or disk3).
Find your USB drive in the list — it is usually the smallest one and often labeled as external. Note its identifier. Then type diskutil secureErase freespace 0 /Volumes/DriveName (replacing DriveName with your drive's actual name) and press Enter. This erases the drive securely. Terminal is more powerful but also less forgiving, so only use this method if Disk Utility truly will not work.
What happens after formatting
Once formatting is complete, your USB drive is empty and ready to use. You can now drag and drop files onto it like any other folder on your Mac. The drive will appear on your desktop and in Finder under Locations on the left sidebar.
If you formatted as exFAT and plan to use the drive on Windows, the drive will work immediately on any Windows computer without installing software. If you formatted as APFS, the drive will only work on Macs running macOS 10.13 or later — older Macs and all Windows computers will not recognize it.
Frequently Asked Questions
Can I undo a format if I accidentally erased the wrong drive?
Once you format, the files are very difficult to recover. macOS does not have a built-in undo for formatting. You can try data recovery software like DiskWarrior or Data Rescue, but recovery is not may provide and costs money. The best protection is to double-check the drive name in Disk Utility before clicking Erase.
Why does my USB drive show less storage space than it says on the box?
Manufacturers measure storage in decimal (1 billion bytes = 1 TB), but computers measure in binary (1 trillion bytes = 1 TB). A 1 TB drive shows as about 930 GB on your Mac. This is normal and not a defect. Formatting does not change this — it is how the math works.
Should I format my drive if I am moving it between a Mac and a Windows computer?
If the drive is already formatted as exFAT, no — it works on both. If it is formatted as APFS, Windows will not recognize it at all, so yes, reformat as exFAT. If you are unsure what format it is, right-click the drive in Finder, click Get Info, and look for the format listed under Kind.
Is APFS encryption worth using when I format?
Encryption scrambles your files so they cannot be read without a password. Use it if the drive contains sensitive information like financial records or passwords. For general backups and file sharing, encryption is not necessary and makes the drive slightly slower to use.