What actually happens when you format a memory card?

Have you ever formatted your memory card? You may have been prompted you to do so when you first inserted it into your camera, or bought a new memory card (see our guide to the best memory cards for your camera)

But what exactly does card formatting do? And what happens to a card's contents when you do this? Here, we explain everything you need to know.

Why should you format a memory card?

Formatting a memory card is essentially a technological handshake between your card and your camera. This instructs the camera to set up a new file management system, which sounds complicated, but it's basically just the folders it needs to store any image and videos. 

The folder that contains images will typically be called DCIM, which is short for Digital Camera IMages, and this may have separate folders within it that are created as and when one folder has filled up to the numerical limit. They may also be created automatically when a period of time has passed from the last time you recorded anything to it.

Read more: How to set up your camera for the first time

On some cameras, these folders are also where videos are recorded, although many cameras have a more convoluted separate folder that may be marked Private, and have many further folders within it.

However these are labelled, by setting these up, it lets the camera sort all the information it needs to into a folder structure that makes some kind of sense. This structure is maintained, or expanded on, as you keep recording information to the memory card.

If you get rid of these folders on a computer your camera should automatically create new ones on the next occasion that you use the same card in the camera, although it may prompt you to format the card again, which will appear to erase everything on the card.

Does formatting a memory card delete its contents? 

No – at least, not quite. Formatting a memory card gets rid of any existing folder structure that was set up from previous use, and refreshes it with a new one that's specific to the camera you're using. So, you won't be able to access those images and videos through your camera, or through the normal way you would on a computer, as those folders are no longer there.

The information on the card, however, may still be retrieved using image-recovery software. That's because it's still on the card, just not within the same folders as before. This is great news if you've accidentally deleted images or formatted a card that you intend intend to format, but there's no guarantee that you will be able to get these back successfully.

Read more: Why do some SD cards have two rows of pins?

But what should you do if you want to ensure a card's contents is gone for good? You may, after all, acquire a collection of memory cards that no longer work in a new camera, and want to pass them on to someone else.

The only secure way is to destroy the card so that its contents can't be read in any way. This is admittedly extreme, but there are other options that you might want to try first to make possible retrieval more difficult.

Canon suggests that you help to overwrite this information by taking enough images with the lens cap on until you fill the card. It has also offered a 'Low level format' option on many of its cameras, which it claims destroys any information on recordable sections of the card, which, in turn makes it it "almost irretrievable."

How often should you format a memory card?

As a general rule, it's good to get into the habit of formatting a card regularly than to simply delete images you don't need and continue shooting. Regular formatting allows your camera to write information more efficiently to the card, so it's a good idea to do this once all the information on the card has been safely stored on a computer or hard drive.

If you encounter card-specific error messages, you may be able to solve these by simply formatting your memory card – just make sure that anything you need on this has been copied somewhere first. If you're using an SD-type card, and your camera can't write any images to it at all, it's possible that the write-protect tab on its side has slipped down, so take the card out and move this tab back to its uppermost position before carefully re-inserting it.

Read more:
The best SD memory cards for your camera in 2018
How to understand everything written on your camera's memory card

Matt Golowczynski

The former editor of Digital Camera World, "Matt G" has spent the bulk of his career working in or reporting on the photographic industry. For two and a half years he worked in the trade side of the business with Jessops and Wex, serving as content marketing manager for the latter. 

Switching streams he also spent five years as a journalist, where he served as technical writer and technical editor for What Digital Camera before joining DCW, taking on assignments as a freelance writer and photographer in his own right. He currently works for SmartFrame, a specialist in image-streaming technology and protection.

Latest in Memory Cards
Pergear CFexpress 4.0 Type A Master cards
Pergear launches new super-fast AND super-cheap CFexpress Type A cards
SanDisk 512GB CFexpress card in a Nikon camera, with the words "Price drop"
I wish I'd bought mine this cheap! Save $109 off my favorite 512GB CFexpress card
Novachips CFexpress Type A card
These new CFexpress Type A cards are even cheaper than a fast SD card!
Delkin Devices Black CFexpress 4.0 Type B card
Delkin launches its fastest and highest-capacity CFexpress Type B cards
Nextorage NX-A2PRO CFexpress Type A card
Record-breaker! Nextorage reveals the fastest CFexpress Type A card in the world
Nextorage A1 SE CFexpress Type A card
Get this incredible deal on a high-capacity CFexpress Type A card while you can
Latest in Features
A winning image from the World Press Photo awards
These images are uncomfortable to look at. But that’s the point. Meet the winning World Press Photos
Black and white image montage, three images showing scenes from the streets of Barcelona
“If you want to photograph a dynamic scene, you have to make do without a tripod”, I just love this cinematic night shoot!
Jacob Watson-Howland's image of a snowdrop in low-light, captured with a slow shutter speed to create a painterly abstract effect
“I didn’t bring a tripod. Big mistake.” Second attempt at low-light plant portrait lands young photographer prestigious award
A monochromatic image, showing a girl that looks through a door or window with an obscure view
These are the winners from Digital Photographer's captivating portraits contest
Fujifilm X-T5 with lens attached
If the Fujifilm X-T6 launches with this one feature, I’m going to be the first in line
Meta AI suggesting comments for Instagram image
Instagram is testing AI that analyzes photos and generates comments… but isn't that the opposite of solving the bot problem?