On Windows 10, the ability to format a USB flash drive can be helpful in many scenarios. For instance, sometimes, you may need to reformat a removable storage device to ensure it does not contain malicious code. Or when the thumb drive is not accessible because of data corruption, you received a flash drive using a file system incompatible with your platform, or you plan to get rid of the storage device and want to make sure you are not leaving behind any personal information.
Regardless of the reason, Windows 10 includes several tools to format all kinds of storage (such as USB flash drives) using File Explorer, Disk Management, Command Prompt, and PowerShell.
This guide will walk you through the steps to format a USB flash drive to quickly erase its contents or fix problems when the device isn’t recognized.
Warning: These instructions will erase everything on the selected drive. If you have any important files, you should back them up before proceeding.
How to format USB flash drive from File Explorer
To format a USB flash drive from File Explorer on Windows 10, use these steps:
- Open File Explorer.
- Click on This PC from the left pane.
- Under the “Devices and drives” section, right-click the flash drive and select the Format option.
- Use the “File system” drop-down menu and select the NTFS option.
- Quick tip: If you plan to use the removable storage on Windows 10 and macOS systems, you may want to select the “exFAT” option for compatibility. However, if you think you might use the device on a Linux machine, “FAT32” is the best option, even though you will be limited to 4GB file sizes.
- Use the default selection in the “Allocation unit size” drop-down menu.
- In the “Volume label” field, confirm a drive name that will appear in File Explorer. For example, workUSB.
- Under the “Format options” section, select the Quick format option.
- Quick note: The “Quick format” option only deletes the file system table and the root folder, but the data may still be recoverable. If you do not check the setting, a full format operation will be performed, and it will scan for bad sectors and write zeros in all sectors deleting the data. As a result, this process can take a long time, depending on the drive size.
- Click the Start button.
- Click the Yes button.
Once you complete the steps, the flash drive will be ready to store documents, pictures, videos, and other files.
How to format USB flash drive from Disk Management
On Disk Management, you have at least two ways to format a USB flash drive. You can format the storage to rebuild the file system table and erase the content, or you can delete the partition that comes in handy to fix storage problems.
Format flash drive
To use Disk Management to format a USB drive on Windows 10, use these steps:
- Open Start.
- Search for “Create and format hard disk partitions” and click the top result to open the Disk Management app.
- Right-click the removable drive and select the Format option.
- In the “Volume label” field, confirm a name to identify the storage in File Explorer.
- Use the “File system” drop-down menu and select the NTFS option. (You can also choose the “FAT32” or “exFAT” option.)
- Use the Default option in the “Allocation unit size” drop-down menu.
- Check the “Perform a quick format” option.
- (Optional) Check the “Enable file and folder compression” option.
- Click the OK button.
After you complete the steps, the drive will be erased and reformatted to store data again.
Clean and format flash drive
When the USB drive is experiencing problems, it’s best to clean it and start again from scratch with a new partition and file system.
To clean and format a USB flash drive on Windows 10, use these steps:
- Open Start.
- Search for “Create and format hard disk partitions” and click the top result to open the Disk Management tool.
- Right-click the removable storage and select the Delete volume option.
- Click the Yes button.
- Right-click the “Unallocated” space and choose the “New Simple Volume” option.
- Click the Next button.
- Click the Next button again to use all the available space.
- Select the “Assign the following drive letter” option.
- Use the drop-down menu to select one of the available letters.
- Quick tip: If you assign a letter manually, it is best to select a letter in reverse order (Z, Y, X, and so on).
- Click the Next button.
- Select the “Format this volume with the following settings” option.
- Use the File system drop-down menu and select the NTFS option.
- Quick note: Using this method, you can only use “NTFS” or “FAT32.” If you need to format the drive using “exFAT,” you will need to use Command Prompt or PowerShell.
- Use the Default option for the “Allocation unit size” setting.
- Type a label in the “Volume label” field to quickly identify the flash drive on File Explorer.
- Check the “Perform a quick format” option. (If you clear the setting, a full format will take place that can take some time, depending on the storage size.)
- (Optional) Check the “Enable file and folder compression” option.
- Click the Next button.
- Click the Finish button.
Once you complete the steps, the process will create a new partition and set up the file system, fixing common problems with the flash drive, including data corruption.
How to format USB flash drive from PowerShell
PowerShell is another tool that allows you to format a USB flash drive to delete its contents. In addition, the command-line tool can be used to clean and format the storage to resolve corruption and other problems.
Format flash drive using PowerShell
To format a USB flash drive using PowerShell commands on Windows 10, use these steps:
- Open Start.
- Search for PowerShell, right-click the top result, and select the Run as administrator option.
- Type the following command to perform a quick format on the flash drive and press Enter: Format-Volume -DriveLetter DRIVE-LETTER -FileSystem FILE-SYSTEM -NewFileSystemLabel DRIVE-NAME
In the command, replace DRIVE-LETTER with the correct letter reflecting the drive you want to format, FILE-SYSTEM for FAT32, exFAT, or NTFS, and DRIVE-NAME with the name you want the device to appear in File Explorer.
This example performs a quick format of the “F” drive with the NTFS file system: Format-Volume -DriveLetter F -FileSystem NTFS -NewFileSystemLabel workUSB
- (Optional) Type the following command to perform a full format of the USB flash drive and press Enter: Format-Volume -DriveLetter DRIVE-LETTER -FileSystem FILE-SYSTEM -Full -Force
In the command, replace DRIVE-LETTER with the correct letter reflecting the drive you want to format and FILE-SYSTEM for FAT32, exFAT, or NTFS, depending on the file system you want to use. If you do not know and are on Windows 10, you should use NTFS. The Full option tells the command to perform a full format, and the -Force option specifies the override switch.
This example performs a full format of the “F” drive: Format-Volume -DriveLetter F -FileSystem NTFS -Full -Force
After you complete the steps, PowerShell will format the storage with the settings you specified.
Clean and format flash drive using PowerShell
To clean and format a removable drive with PowerShell commands, use these steps:
- Open Start.
- Search for PowerShell, right-click the top result, and select the Run as administrator option.
- Type the following command to view the flash drive you want to fix and press Enter: Get-Disk
- Type the following command to delete the volume and press Enter: Get-Disk DISK-NUMBER | Clear-Disk -RemoveData
In the command, change DISK-NUMBER for the correct number for the flash drive you are formatting.
This example selects and cleans disk number 2: Get-Disk 2 | Clear-Disk -RemoveData
- Type Y to confirm the action and press Enter.
- Type the following command to create a new partition and press Enter: New-Partition -DiskNumber DISK-NUMBER -UseMaximumSize
In the command, change DISK-NUMBER to the correct number for the storage you are formatting.
This example creates a new partition using the entire space available on drive number 2: New-Partition -DiskNumber 2 -UseMaximumSize
- Type the following command to perform a quick format and assign a drive label, and press Enter: Get-Partition -DiskNumber DISK-NUMBER | Format-Volume -FileSystem FILE-SYSTEM -NewFileSystemLabel DRIVE-NAME
In the command, change DISK-NUMBER for the number that identifies the storage in the system, FILE-SYSTEM for “NTFS,” “FAT32,” or “exFAT,” and DRIVE-NAME with the name you want the device to appear in File Explorer.
This example selects, and formats drive number 2 using the NTFS file system: Get-Partition -DiskNumber 2 | Format-Volume -FileSystem NTFS -NewFileSystemLabel workUSB
- Type the following command to assign a new letter to the drive and press Enter: Get-Partition -DiskNumber DISK-NUMBER | Set-Partition -NewDriveLetter DRIVE-LETTER
In the command, replace DISK-NUMBER for the number that identifies the storage in the system and DRIVE-LETTER with the letter you want the device to appear in File Explorer.
This example sets “E” as the drive letter for disk number 2: Get-Partition -DiskNumber 2 | Set-Partition -NewDriveLetter E
After you complete the steps, PowerShell will delete the data on the removable USB storage to fix problems, including corruption, write protection, and unrecognized drives. Then it will create a new partition and configure a file system to store files.
How to format USB flash drive from Command Prompt
You can use the Command Prompt to clean the drive and start fresh with a new partition and file system table.
Format flash drive using command-line
To perform a quick or full format on a USB flash drive with Command Prompt on Windows 10, use these steps:
- Open Start.
- Search for Command Prompt, right-click the top result, and select the Run as administrator option.
- Type the following command to perform a quick format of the USB flash drive and press Enter: format VOLUME: /v:FLASHDRIVE-LABEL /fs:FILE-SYSTEM /q
In the command, make sure to replace the VOLUME with the correct drive letter of the storage, FLASHDRIVE-LABEL with the name you want the drive to appear in File Explorer, FILE-SYSTEM with one of the available file systems, including “FAT32,” “exFAT,” or “NTFS.”
This example performs a quick format of the E drive: format E: /v:workUSB /fs:NTFS /q
- Press Enter again to continue.
- (Optional) Type the following command to perform a full format of the USB flash drive and press Enter: format VOLUME: /v:FLASHDRIVE-LABEL /fs:FILE-SYSTEM
This example performs a full format of the E drive: format E: /v:”workUSB” /fs:NTFS
- Press Enter again to continue.
After completing the steps, the thumb drive will be formatted with the specified settings.
Clean and format flash drive using command-line
To clean and format a flash drive with commands on Windows 10, use these steps:
- Open Start.
- Search for Command Prompt, right-click the top result, and select the Run as administrator option.
- Type the following command to launch the DiskPart tool and press Enter: diskpart
- Type the following command to view a list of the available drives and press Enter: list disk
- Type the following command to select the flash drive you want to delete and press Enter: select disk DISK-NUMBER
In the command, replace DISK-NUMBER with the number for the drive you are trying to format.
This example selects the flash drive listed as disk number 2: select disk 2
- Type the following command to delete all the partitions on the storage and press Enter: clean
- Type the following command to create a primary partition and press Enter: create partition primary
- Type the following command to perform a quick format and press Enter: format fs=FILE-SYSTEM label=DRIVE-NAME quick
In the command, make sure to replace FILE-SYSTEM for your preferred file system, including “FAT32,” “exFAT,” or “NTFS.” Also, replace DRIVE-NAME with the name you want to give the device. If you do not specify the “quick” option, then a full format will be performed.
This example quickly formats the removable storage using the NTFS file system and applies the “workUSB” name: format fs=NTFS label=workUSB quick
- Type the following command to assign a drive letter and press Enter: assign
Quick note: You can append “letter=E” in the command to assign (in this case) “E” as the drive letter. Otherwise, the system will assign a letter automatically.
- Type the following command to close DiskPart and press Enter: exit
Once you complete the steps, the DiskPart tool will remove any information from the USB flash drive. It will create a new partition and configure a compatible file system to store files from your Windows 10, macOS, or Linux machine (depending on your configuration).
More resources
For more helpful articles, coverage, and answers to common questions about Windows 10 and Windows 11, visit the following resources: