What formatting does and when you need it
Formatting erases everything on a drive and prepares it to store new files. When you format, the drive removes all existing data and sets up a fresh file system — the invisible structure that lets your computer organize and find files. You format a drive when you want to reuse it for a different purpose, when it has errors that won't repair, or when you're selling or giving it away and want to make sure nothing personal remains.
Formatting is not the same as deleting files. When you delete a file normally, the data stays on the drive but the file system stops pointing to it — a recovery tool can still find it. Formatting wipes the entire structure, making recovery much harder. This is why formatting is the right choice when you're clearing a drive for someone else to use.
You can format an internal drive (the one inside your computer), an external hard drive, a USB stick, or an SD card. The steps are similar across all of them, though the exact menu locations change depending on whether you use Windows, Mac, or Linux.
Key Takeaways
- Formatting erases all data on a drive and sets up a new file system, which is different from deleting individual files.
- Back up anything you want to keep before you format, because the process cannot be undone.
- Windows uses Disk Management or File Explorer; Mac uses Disk Utility; both are built into the operating system.
- Choose between NTFS (Windows standard), exFAT (works on Windows and Mac), or APFS (Mac standard) depending on which computers will use the drive.
- Formatting an external drive or USB stick takes a few minutes; formatting an internal drive requires booting from another source and is riskier.
Back up your data before you start
Formatting cannot be undone. Once you start, everything on that drive is gone. Before you format anything, copy any files you want to keep to another drive — a second external drive, cloud storage, or a different computer. This step takes the longest part of the process, so do it first.
If the drive is failing and you cannot copy files off it, you have two choices: take it to a data recovery service (which is expensive), or accept that the data is lost. Formatting a failing drive will not make it work better — it will only erase what is left. If the drive is making clicking sounds, has bad sectors, or keeps disconnecting, stop using it and do not format it yourself.
How to format an external drive or USB stick on Windows
Plug the drive into your computer. Open File Explorer, find the drive in the left sidebar, right-click it, and select Format. A window will appear asking for a name (the label that will show in File Explorer), a file system, and whether to do a quick format.
For the file system, choose NTFS if only Windows computers will use it, or exFAT if you want to use the drive on both Windows and Mac. NTFS is faster and more reliable for large files; exFAT is slower but works everywhere. Quick Format is fine for most purposes and takes seconds; full format takes much longer and is only necessary if you want to be absolutely certain the data cannot be recovered.
Click Start, then confirm that you want to erase the drive. The process usually finishes in under a minute for a USB stick or in a few minutes for an external hard drive.
How to format an external drive or USB stick on Mac
Plug the drive in. Open Disk Utility (search for it in Spotlight or find it in Applications > Utilities). Select the drive from the list on the left — make sure you select the drive itself, not a partition inside it. Click the Erase button at the top.
A dialog will ask for a name and a format. Choose APFS if only Mac computers will use it, or exFAT if you want to use it on both Mac and Windows. Click Erase, then confirm. The process takes a few seconds to a few minutes depending on the drive size.
How to format an internal drive
Formatting the drive your operating system runs on is more complicated because you cannot format a drive while the computer is using it. You need to boot from a different source — either a USB stick with Windows or Mac installation media, or a second drive.
On Windows, create a bootable USB stick using the Windows Media Creation Tool (available from Microsoft's website), restart your computer, and boot from that USB stick instead of your normal drive. Once Windows setup loads, choose Custom Install and select the drive you want to format. The setup process will format it and install Windows fresh.
On Mac, restart while holding Command + R to boot into Recovery Mode. Open Disk Utility, select your main drive, click Erase, choose APFS as the format, and confirm. This erases your entire Mac and prepares it for a fresh macOS install. You can then reinstall macOS from the same Recovery Mode menu.
Formatting an internal drive is risky because a mistake can make your computer unbootable. If you are not confident, take the drive to a repair shop or ask someone experienced to do it.
Choosing the right file system for your needs
NTFS is the standard for Windows. It handles large files well, supports file permissions, and is reliable. Use it if the drive will only connect to Windows computers. NTFS drives do not work on older Macs without extra software.
exFAT works on Windows, Mac, and Linux. It is slower than NTFS and does not support file permissions, but it is the best choice if you need to move the drive between different operating systems. Most USB sticks and SD cards come formatted as exFAT for this reason.
APFS is Apple's modern file system and is the standard on newer Macs. It is fast and efficient but does not work on Windows or older Macs. Use it only if the drive will stay on Mac computers.
FAT32 is old and has a 4 GB file size limit, so avoid it unless you have a specific reason — some older devices require it.
What to do if formatting fails
If the format process starts but does not finish, the drive may have a hardware problem. Unplug it, wait a minute, plug it back in, and try again. If it fails a second time, try a different USB port or a different computer.
If the drive does not show up in Disk Management (Windows) or Disk Utility (Mac) at all, it may not be recognized by the operating system. Try a different cable first — the cable may be damaged. If a different cable does not help, the drive itself may be failing and may need professional recovery or replacement.
If you see an error message about permissions, make sure you are logged in as an administrator (Windows) or using an account with admin rights (Mac). Right-click and select Run as Administrator on Windows, or enter your password when Mac asks for it.
Frequently Asked Questions
Can I recover files after formatting?
Possibly, but it is difficult and gets harder the more you use the drive after formatting. Recovery software can sometimes find files if the drive has not been written to much since the format. However, recovery is not may provide, which is why backing up before you format is essential. If you accidentally formatted a drive with important files, stop using it when ready and take it to a data recovery service.
How long does formatting take?
Quick format on a USB stick or external drive usually takes under a minute. Full format can take 10 minutes to an hour depending on the drive size. Formatting an internal drive as part of a Windows or Mac reinstall takes 15 to 30 minutes total, including the operating system installation.
What is the difference between formatting and partitioning?
Formatting prepares a drive or partition to store files. Partitioning divides a single drive into separate sections, each with its own file system. You can partition a drive without formatting it, or format a partition without changing the partition layout. Most people only need to format, not partition.
Do I need to format a new external drive before using it?
No. New drives usually come formatted and ready to use. You only need to format if you want to change the file system (for example, from NTFS to exFAT), if the drive has errors, or if you want to erase everything on it.
Is it safe to format a drive while other programs are using it?
No. Close all programs that might be accessing the drive before you format. On Windows, make sure no File Explorer windows are showing the drive. On Mac, make sure the drive is not mounted in Finder. If a program is using the drive, the format may fail or leave the drive in an unusable state.