A Raspberry Pi boots from a microSD card, so the card is essentially its hard drive. Two tools matter here. Raspberry Pi Imager writes the operating system. SD Memory Card Formatter cleans a card back to its original state. Knowing which one to use and when saves a lot of confusion, especially with cards that appear to have "shrunk" after a Pi project.
Do you need to format before flashing?
For a brand-new card, no. Raspberry Pi Imager erases the card and creates its own partitions when it writes the OS image. Formatting first does not hurt, but it is not required.
For a card that has been used before, especially one that was in another Pi, a camera, or has errors, formatting with SD Memory Card Formatter first is a good habit. It clears old partition tables completely, so the Imager starts from a clean card.
Why an old Pi card looks tiny on Windows
After flashing Raspberry Pi OS, the card has at least two partitions: a small FAT32 boot partition (labelled bootfs) and a large Linux ext4 partition. Windows can only read the boot partition, so a 64 GB card looks like a 512 MB drive. Windows may also pop up a message asking you to format a disk. That refers to the Linux partition it cannot read. Click Cancel if you still want to use the card in your Pi.
When you are finished with the project and want the card back for other uses, Windows Disk Management often cannot merge these partitions cleanly. SD Memory Card Formatter can. It replaces everything with a single SD-standard volume.
Reclaim the full capacity
- Copy anything you need from the Pi first, such as project files and configs.
- Insert the card into your computer and open SD Memory Card Formatter.
- Select the card and confirm the capacity shown is the real card size, not just the boot partition.
- Choose Quick format and click Format.
- When it finishes, the card shows its full capacity as FAT32 (32 GB and under) or exFAT (larger cards).
Flash a fresh OS
- Open Raspberry Pi Imager and choose your Pi model.
- Choose the operating system, for example Raspberry Pi OS (64-bit).
- Pick the SD card under storage. Make sure it is not your backup drive.
- Use the settings screen to set a hostname, user, Wi-Fi and SSH if you want to run the Pi headless.
- Write, wait for verification, then eject and boot the Pi.
Imager also includes an Erase option that formats a card as FAT32. That is fine for simple use, but SD Memory Card Formatter is the better option for cards that keep failing or show the wrong size.
Picking a card for Raspberry Pi
- Size: 32 GB is the sweet spot for most projects. Desktop use and media servers benefit from 64 GB or more.
- Speed class: look for A1 or A2 ratings. They indicate random read and write performance, which matters more for an OS than raw transfer speed.
- Brand: buy from a known brand and a trusted seller. Fake cards are a common cause of corrupted Pi installs.
Common Raspberry Pi card problems
Pi does not boot (no green activity LED): re-flash the card, try another card, and check the power supply. Under-powered Pis corrupt cards.
Read-only file system errors: usually a sign of a failing card or an unclean shutdown. Back up, run the formatter with Overwrite format, and re-flash.
Imager write fails: format the card with SD Memory Card Formatter and try again. If it fails twice, replace the card.
For other card issues, our corrupted SD card article covers recovery before you reformat. You can also use the download page to get the formatter and our free Raspberry Pi setup guide ZIP.