How to Format an SD Card on Windows

Wipe an SD card with a Windows PC

What to Know

  • Quickest way: Open File Explorer, right-click the SD drive, and select Format. Select File System > Start > OK.
  • To see if your SD card is write-protected, look for a physical tab, move the tab in the opposite direction.
  • To see if your SD card is partitioned, right-click Start > Disk Management. Look for multiple partitions next to your SD disk.

This article explains how to format an SD card using Windows. Instructions in this article apply to Windows 10, 8, and 7.

How to Format an SD Card on Windows

Most modern computers have an SD card slot somewhere on the side of the computer. SD cards come in different sizes, so you may need an adapter if you have a micro SD card. No SD card slot? Use an SD card reader that can plug into a USB port.

To format an SD card on a Windows PC:

  1. Insert the SD card into your computer.

  2. Open File Explorer and locate the drive letter for your SD card. Right-click the drive and select Format.

    Right-click the SD card drive and select Format.
  3. If the Capacity of your SD card is less than 64 GB, set the File System to FAT32. If it's 64 GB or higher, set the File System to exFAT. Select Start to begin.

    You can give the formatted drive a name by entering it into the Volume label.

    Set the File System and select Start.
  4. Select OK to ignore the warning that the data on the drive will be erased and begin formatting the card.

    Select OK to ignore the warning and begin formatting the SD card.

Format Write-Protected SD Cards on Windows

Sometimes when attempting to format an SD card, you will receive an error saying that it is write-protected or read-only. Most cards have a tab on the edge that you can move up or down. If your card is write-protected or read-only, move the tab to the opposite position (for example, if it's up, move it down; if it's down, move it up).

If the drive is still write-protected, or if there is no tab, follow these instructions:

If there is a physical tab on the SD card, this process overrides the above instructions, and you'll need to amend the position of the tab to turn read-only on and off.

  1. Right-click the Start menu and select Windows PowerShell (Admin) on Windows 10 or Command Prompt (Admin) on Windows 8.

    If you use Windows 7 or earlier, select the Start menu, right-click Command Prompt (or PowerShell (Admin)), and select Run as administrator. You may need to navigate through the menus to find the Command Prompt icon.

    Right-click the Start menu and select Windows PowerShell (Admin) on Windows 10.
  2. Type diskpart in the Command Prompt window and press Enter.

    Type diskpart in the Command Prompt window and press Enter.
  3. Type list disk and press Enter. A list of available disks on your computer appears. Look for the disk number that resembles the size of the SD card.

    Type list disk and press Enter.
  4. Type select disk # (where # is the number of the disk for the SD card) and press Enter.

    Select the disk number for the SD card.
  5. Type attributes disk clear readonly and press Enter.

    Type attributes disk clear readonly and press Enter.
  6. Type clean and press Enter.

    Type clean and press Enter.
  7. When the process is complete, type exit and press Enter, then close the Command Prompt and format the SD card using File Explorer as outlined above.

    When the process is complete, type exit and press Enter, then close the Command Prompt.

How to Tell If an SD Card Is Partitioned

If you installed a version of Linux on your SD card for use on a single board computer, such as a Raspberry Pi, the card has likely been partitioned so that it can boot correctly into Linux. Before you can re-purpose that SD card for other uses, you must remove the partition.

To determine if your SD card has a partition, right-click the Start menu and select Disk Management.

On Windows 7 or earlier, click the Start menu and type diskmgmt.msc in the search box to find the Disk Management tool.

Right-click the Start menu and select Disk Management.

Next to the disk number for your SD card, you may see a number of partitions. Usually, the first partition is named unallocated. If this is the only partition listed, the instructions above should work. However, if there are multiple partitions, the partitions must be removed before you can format the card.

Beside the disk number for your SD card, you may see a number of partitions assigned to your SD card in the Disk Management tool.

Remove Partitions From an SD Card on Windows

To format the SD card so that it is one continuous partition:

  1. Right-click the Start menu and select Windows PowerShell (Admin) on Windows 10 or Command Prompt (Admin) on Windows 8.

    On Windows 7 or earlier, select the Start menu, right-click Command Prompt, and select Run as administrator. You may need to navigate through the menus to find the Command Prompt icon.

    Right-click the Start menu and select Windows PowerShell (Admin) on Windows 10.
  2. Type diskpart in the Command Prompt window and press Enter.

    Type diskpart in the Command Prompt window and press Enter.
  3. Type list disk and press Enter. Find the disk number that matches your SD card (it should be the same size).

    Type list disk and press Enter.
  4. Type select disk # (where # is the number of the disk for the SD card) and press Enter.

    Select the disk number for the SD card.
  5. Type list partition and press Enter.

    Type list partition and press Enter.
  6. Type select partition 1 and press Enter.

    Type select partition 1 and press Enter.
  7. Type delete partition and press Enter. Repeat steps 6 and 7 until there are no more partitions.

    As soon as you delete the first partition, the next one becomes partition 1, so it will always be partition 1 that you delete.

    Type delete partition and press Enter.
  8. Type create partition primary and press Enter.

    When the process is complete, close the Command Prompt and format the SD card as normal.

    Type create partition primary and press Enter.
FAQ
  • How do I move apps to a SD card?

    Moving apps to an SD card is a slightly different process depending on the platform you're using. On Android, open the My Files app > Internal Storage > select the three dots > Edit > choose files or apps. Select the three dots > Move > SD card > choose the destination > Done.

  • How do I put a SD card in my Nintendo Switch?

    To install a SD card in your Switch, make sure you have a microSD, microSDHC, or microSDXC card and then turn off the Switch and remove it from the dock. Open the kickstand on the back to access the microSD card slot and insert the card with the metal pins facing down (towards the Switch).

Was this page helpful?