How to format a USB flash drive on Windows 10 (2023)

How to format a USB flash drive on Windows 10 (1)

Jump to:

  • File Explorer
  • Disk Management
  • PowerShell
  • Command Prompt

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:

  1. Open File Explorer.
  2. Click on This PC from the left pane.
  3. Under the "Devices and drives" section, right-click the flash drive and select the Format option.

How to format a USB flash drive on Windows 10 (2)

  1. 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.
  1. Use the default selection in the "Allocation unit size" drop-down menu.
  2. In the "Volume label" field, confirm a drive name that will appear in File Explorer. For example, workUSB.
  3. 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.

How to format a USB flash drive on Windows 10 (3)

  1. Click the Start button.
  2. 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:

  1. Open Start.
  2. Search for "Create and format hard disk partitions" and click the top result to open the Disk Management app.
  3. Right-click the removable drive and select the Format option.

How to format a USB flash drive on Windows 10 (4)

  1. In the "Volume label" field, confirm a name to identify the storage in File Explorer.
  2. Use the "File system" drop-down menu and select the NTFS option. (You can also choose the "FAT32" or "exFAT" option.)
  3. Use the Default option in the "Allocation unit size" drop-down menu.
  4. Check the "Perform a quick format" option.

How to format a USB flash drive on Windows 10 (5)

  1. (Optional) Check the "Enable file and folder compression" option.
  2. 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:

  1. Open Start.
  2. Search for "Create and format hard disk partitions" and click the top result to open the Disk Management tool.
  3. Right-click the removable storage and select the Delete volume option.

How to format a USB flash drive on Windows 10 (6)

  1. Click the Yes button.
  2. Right-click the "Unallocated" space and choose the "New Simple Volume" option.

How to format a USB flash drive on Windows 10 (7)

  1. Click the Next button.
  2. Click the Next button again to use all the available space.
  3. Select the "Assign the following drive letter" option.
  4. 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).

How to format a USB flash drive on Windows 10 (8)

  1. Click the Next button.
  2. Select the "Format this volume with the following settings" option.
  3. 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.
  1. Use the Default option for the "Allocation unit size" setting.
  2. Type a label in the "Volume label" field to quickly identify the flash drive on File Explorer.
  3. 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.)

How to format a USB flash drive on Windows 10 (9)

  1. (Optional) Check the "Enable file and folder compression" option.
  2. Click the Next button.
  3. 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:

  1. Open Start.
  2. Search for PowerShell, right-click the top result, and select the Run as administrator option.
  3. 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

How to format a USB flash drive on Windows 10 (10)

  1. (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:

  1. Open Start.
  2. Search for PowerShell, right-click the top result, and select the Run as administrator option.
  3. Type the following command to view the flash drive you want to fix and press Enter: Get-Disk
  1. 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

How to format a USB flash drive on Windows 10 (11)

  1. Type Y to confirm the action and press Enter.
  2. 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

  1. 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

How to format a USB flash drive on Windows 10 (12)

  1. 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:

  1. Open Start.
  2. Search for Command Prompt, right-click the top result, and select the Run as administrator option.
  3. 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

How to format a USB flash drive on Windows 10 (13)

  1. Press Enter again to continue.
  2. (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

  1. 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:

  1. Open Start.
  2. Search for Command Prompt, right-click the top result, and select the Run as administrator option.
  3. Type the following command to launch the DiskPart tool and press Enter: diskpart
  4. Type the following command to view a list of the available drives and press Enter: list disk
  5. 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

  1. Type the following command to delete all the partitions on the storage and press Enter: clean

How to format a USB flash drive on Windows 10 (14)

  1. Type the following command to create a primary partition and press Enter: create partition primary
  2. 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

How to format a USB flash drive on Windows 10 (15)

  1. 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.

  1. 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:

  • Windows 11 on Windows Central — All you need to know
  • Windows 10 on Windows Central — All you need to know

How to format a USB flash drive on Windows 10 (16)

Windows 11

Cutting-edge operating system

A refreshed design in Windows 11 enables you to do what you want effortlessly and safely, with biometric logins for encrypted authentication and advanced antivirus defenses.

Get the Windows Central Newsletter

All the latest news, reviews, and guides for Windows and Xbox diehards.

How to format a USB flash drive on Windows 10 (17)

Mauro Huculak

Mauro Huculak is technical writer for WindowsCentral.com. His primary focus is to write comprehensive how-tos to help users get the most out of Windows 10 and its many related technologies. He has an IT background with professional certifications from Microsoft, Cisco, and CompTIA, and he's a recognized member of the Microsoft MVP community.

References

Top Articles
Latest Posts
Article information

Author: Stevie Stamm

Last Updated: 08/10/2023

Views: 6061

Rating: 5 / 5 (80 voted)

Reviews: 95% of readers found this page helpful

Author information

Name: Stevie Stamm

Birthday: 1996-06-22

Address: Apt. 419 4200 Sipes Estate, East Delmerview, WY 05617

Phone: +342332224300

Job: Future Advertising Analyst

Hobby: Leather crafting, Puzzles, Leather crafting, scrapbook, Urban exploration, Cabaret, Skateboarding

Introduction: My name is Stevie Stamm, I am a colorful, sparkling, splendid, vast, open, hilarious, tender person who loves writing and wants to share my knowledge and understanding with you.