SD cards have a physical lock switch that prevents accidental deletion
Most SD cards have a small switch on the left side of the card. When that switch is in the locked position (usually toward the top of the card), your computer or device cannot write to, delete from, or format the card — even though you can still read what's on it. Moving the switch to the unlocked position removes this protection.
If your card does not have a physical switch, or if moving the switch does not work, the write protection is coming from your device or card reader instead. This guide covers both situations and walks you through the steps to get your card working again.
Key Takeaways
- Most SD cards have a physical lock switch on the side that you can slide up or down to toggle write protection on and off.
- If your card has no switch or the switch does not work, the write protection may be set in Windows, macOS, or your device's settings instead.
- A faulty card reader can also trigger write protection errors even when the card itself is unlocked.
- If you cannot remove write protection after trying all steps, the card's memory chip may be damaged and the card may need replacement.
Check for and move the physical lock switch
Hold the SD card with the metal contacts facing away from you. Look at the left edge of the card. You should see a small rectangular switch about the size of a grain of rice. On most cards, this switch slides up and down. The position toward the top of the card (or marked with a lock icon) is the locked position. Slide it toward the bottom of the card to unlock it.
After moving the switch, reinsert the card into your device or card reader and try to write to it again. If you can now save, delete, or format files, the problem is solved. If you still cannot write to the card, or if your card has no switch at all, move to the next section.
Remove write protection in Windows
Windows sometimes applies write protection to removable drives as a safety measure. To check and remove it, plug your card reader into a USB port on your computer. Insert the SD card into the reader.
Right-click on the SD card in File Explorer and select Properties. Look for a checkbox labeled Read-only near the bottom of the window. If that box is checked, uncheck it and click Apply, then OK. Try writing to the card again.
If the read-only checkbox is already unchecked, or if unchecking it does not solve the problem, open Disk Management. Press Windows key + X and select Disk Management from the menu. Find your SD card in the list (it will show the card's capacity). Right-click on it and look for an option that says Properties or Format. If you see a message about write protection, the issue is likely with the card reader or the card itself rather than Windows settings.
Remove write protection on macOS
On a Mac, insert the SD card into a card reader and plug it into a USB port. The card should appear on your desktop as an icon. Right-click the icon and select Get Info. Scroll down to the bottom of the window and look for a checkbox labeled Locked. If it is checked, uncheck it and close the window.
If the locked checkbox is already unchecked, try ejecting the card (drag it to the Trash or right-click and select Eject) and reinserting it. If you still cannot write to the card, the problem may be with the card reader or the card's hardware.
Try a different card reader or USB port
Card readers can malfunction or have faulty connections that trigger write protection errors. If you have access to another card reader, try inserting your SD card into it and connecting it to your computer. This tells you whether the problem is with the card itself or with the reader you were using.
If you only have one reader, try a different USB port on your computer. Some ports deliver power inconsistently or have loose connections, which can cause the card to appear write-protected even when it is not. If the card works in a different port or reader, your original reader may need replacement.
Check your device's settings if the card is in a camera or phone
If you are using the SD card in a camera, phone, or other device rather than a computer, that device may have its own write protection setting. Check the device's menu or settings for an option related to card protection, lock, or read-only mode. The exact location varies by manufacturer — consult your device's manual or search for "[device name] disable SD card write protection" to find the specific steps.
Some devices also write-protect cards automatically if they detect a problem with the card's file system. If this is the case, the device may offer an option to format the card, which will erase all data but remove the protection. Back up any files you need before formatting.
What to do if nothing works
If you have moved the physical switch, checked Windows or macOS settings, tried a different reader, and the card still will not accept writes, the card's memory chip or controller may be damaged. This can happen if the card was exposed to extreme heat, moisture, or physical damage. At this point, the card is likely not recoverable without specialized equipment.
If the card contains important data you cannot afford to lose, a data recovery service may be able to retrieve it, but this is expensive and not always successful. For most users, the most practical step is to replace the card. SD cards are inexpensive, and a new one will work immediately.
Frequently Asked Questions
Why does my SD card keep saying it is write-protected when I unlocked the switch?
The switch may not be making proper contact, or the card reader itself may be faulty. Try cleaning the switch gently with a dry cloth and reinserting the card. If that does not work, test the card in a different reader. If it works in the other reader, your original reader needs replacement.
Can I format an SD card if it is write-protected?
Not while it is write-protected. You must remove the write protection first using the steps in this guide. Once the card is unlocked, you can format it through your computer's file manager or through your device's settings, depending on where you are using the card.
Will removing write protection erase my files?
No. Removing write protection does not delete anything. It simply allows your computer or device to make changes to the card. Your existing files will remain unless you choose to delete or format them.
What if the lock switch on my SD card is stuck and will not move?
Do not force it — you may break the switch or damage the card. Try gently wiggling it side to side while applying light pressure in the direction you want it to move. If it still will not budge, the switch is likely broken and the card may need replacement. Some cards without functioning switches can still be used in devices that do not check the switch, but most computers will respect the broken lock position.
Is write protection the same as encryption?
No. Write protection prevents any changes to the card's contents. Encryption scrambles the data so only someone with the correct password can read it. An encrypted card can still be write-protected, and vice versa. They are separate features.