Ask a question »

Windows - How to format a USB key from the command prompt

November 2015

Windows - How to format a USB key from the command prompt

Formatting an USB flash drive from the command prompt is really easy. This procedure can be achieved using the format command, which works for most version of Microsoft Windows (Windows 95 up to Windows 8.1).

The procedure is as follows:
  • Connect the USB flash drive to your PC.
  • Click on Start > Run > Type cmd and click on OK.
    • Assuming the letter assigned to the USB flash drive is G, type the following command:
  • format /q /x G: and press Enter.
  • The q parameter stands for quick format
  • The x parameter forces the selected volume to dismount, if needed.
  • NB: Don't forget to replace the letter "G" with your drive letter.

Thanks to jack4rall for this tip.
For unlimited offline reading, you can download this article for free in PDF format:

See also

In the same category

USB formatteren via Opdrachtprompt
By ElineCCM on September 28, 2015
??????- ????? ????????? ?? ?????? ?? ?????????
By Swarnkanta on August 14, 2015
Published by aakai1056. - Latest update by jak58
This document entitled « Windows - How to format a USB key from the command prompt » from CCM ( is made available under the Creative Commons license. You can copy, modify copies of this page, under the conditions stipulated by the license, as this note appears clearly.