SD cards have a physical lock switch that prevents accidental deletion
Most SD cards have a small plastic switch on the left edge. When that switch is pushed toward the gold contacts, the card enters read-only mode — nothing can be written to it, and nothing can be deleted from it. To disable write protection, slide the switch back toward the label side of the card. That single movement is the solution for the majority of write-protection problems.
If your card does not have a visible switch, or if moving the switch does not work, the protection may be enforced by your device or computer instead of the card itself. The steps below cover both scenarios.
Key Takeaways
- Most SD cards have a physical lock switch on the left edge that you can slide to disable write protection in seconds.
- If the switch is already in the unlocked position or your card has no switch, the protection is likely enforced by your computer or device, not the card.
- On Windows, you can check and change write-protection settings through Disk Management or by editing the registry.
- On Mac, Disk Utility shows whether a drive is locked, and you can unlock it from the Info panel.
- If none of these steps work, the card's controller chip may be damaged, and the card may need to be replaced.
Check the physical lock switch first
Look at the left edge of your SD card. You should see a small rectangular notch with a thin plastic tab inside it. This is the write-protection switch. Push the tab toward the label side of the card (away from the gold contacts). The switch should click into place. Try writing to the card again.
If your card does not have this switch, or if the switch is already in the unlocked position and you still cannot write to the card, move to the next section. The protection is being enforced by your computer or device, not the card itself.
Disable write protection in Windows Disk Management
Connect the SD card to your Windows computer using a card reader. Open Disk Management by right-clicking the Start button and selecting "Disk Management" from the menu, or by typing "diskmgmt.msc" into the Run dialog (Windows key + R).
Find your SD card in the list of drives. It will usually appear as "Removable Media" or with a size that matches your card. Right-click on the SD card partition and select "Properties." Look for a "Security" tab. If you see a message saying the disk is write-protected, check whether there is a checkbox labeled "Read-only" that is currently checked. Uncheck it, click "Apply," and then "OK."
If the Properties window does not have a Security tab, or if unchecking the read-only box does not work, try the registry method in the next section.
Use the Windows registry to remove write protection
This method works when Disk Management does not show a write-protection option. Open the Run dialog by pressing Windows key + R, type "regedit," and press Enter. This opens the Registry Editor.
Navigate to this path: HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\StorageDevicePolicies. If the StorageDevicePolicies folder does not exist, you will need to create it. Right-click on "Control," select "New," then "Key," and name it "StorageDevicePolicies."
Inside StorageDevicePolicies, look for a value called "WriteProtect." If it exists and is set to 1, right-click it and select "Modify." Change the value from 1 to 0, then click "OK." If the WriteProtect value does not exist, right-click in the empty space, select "New," then "DWORD (32-bit) Value," name it "WriteProtect," and set its value to 0. Restart your computer and try using the SD card again.
Unlock the SD card on Mac using Disk Utility
Connect the SD card to your Mac. Open Disk Utility, which is in Applications > Utilities. Select your SD card from the list on the left side of the window.
Look at the right panel. If you see a "Locked" indicator or a lock icon, click the "Info" button (the circle with an "i" in it) at the top of the window. In the Info panel that appears, look for a checkbox labeled "Locked." If it is checked, uncheck it. Close the Info panel and try writing to the card again.
If Disk Utility does not show a locked status, the write protection may be enforced at the device level rather than by macOS. Try the card in a different device or card reader to determine whether the problem is specific to your Mac.
What to do if nothing works
If you have checked the physical switch, tried both Windows methods, or used Disk Utility on Mac, and the card still will not accept writes, the problem is likely a hardware failure in the card's controller chip. This is not something you can fix with software.
Before replacing the card, try one more thing: use the card in a different device or card reader. Sometimes the reader itself has a faulty write-protection detection circuit, and the card will work normally in another reader. If the card remains write-protected across multiple devices, the card itself is damaged and should be replaced.
Frequently Asked Questions
Can I recover data from a write-protected SD card?
Yes. Write protection prevents new data from being written or old data from being deleted, but it does not prevent reading. You can copy files off a write-protected card normally. Connect it to your computer and drag the files to a folder on your hard drive.
Why does my SD card keep reverting to write-protected after I unlock it?
The physical switch may be loose or partially stuck. Try sliding it back and forth several times to ensure it clicks firmly into the unlocked position. If the switch feels loose or does not click, the switch mechanism may be damaged and the card may need replacement.
Does write protection damage the SD card?
No. Write protection is a safety feature. It does not harm the card or the data on it. It simply prevents accidental changes. You can leave a card write-protected indefinitely without causing any damage.
Will disabling write protection erase my files?
No. Disabling write protection only allows you to write new data or delete existing data if you choose to. The act of unlocking the card itself does not change any files.
What if my card reader has a write-protection switch instead of the card?
Some card readers have their own write-protection switches separate from the card itself. Check the reader for a small switch, usually on the side or back. Slide it to the unlocked position. If the reader has no switch, the protection is coming from the card or your computer.