robot TL;DR:

To fix a write-protected SD card, physically unlock the card or its adapter, verify the card reader is functioning correctly, or clear the software read-only attribute using Windows DiskPart.
    ● MicroSD cards do not have a physical lock, so you must check the microSD-to-SD adapter for a loose slider, or confirm if a macOS device is restricting access simply because the card uses an NTFS file system.
    ● The Windows DiskPart attributes disk clear readonly command only alters software settings and cannot override physical adapter locks, organization-managed Deny write access storage policies, or failed hardware.
    ● If the SD card rejects new writes across multiple known-good computers and readers, the internal controller has likely triggered a permanent protective state due to flash wear, requiring you to recover your files and replace the card instead of attempting a format.


Ask AI for a summary

If your SD card says "The disk is write-protected", do not jump straight to formatting or registry edits. First identify what is actually enforcing read-only access: the full-size SD card or adapter lock, the reader, a Windows disk attribute or policy, a Mac file-system limitation, or the card's own controller.

Quick Answer

● Check the lock first: full-size SD cards and microSD-to-SD adapters can have a side LOCK slider; a microSD card itself normally does not.

● Rule out the reader: try one known-good adapter or reader and another computer before changing system settings.

● Clear Windows read-only status: if Windows sees the correct card capacity, use DiskPart and run attributes disk clear readonly on the correctly selected disk.

● Protect the files: if the card stays read-only across multiple devices, copy or recover important data and replace the card instead of forcing writes.

Free Download
Free Download
In This Article
    1. Method 1. Unlock The SD Card Or Adapter
    2. Method 2. Rule Out the Adapter, Reader, or Computer
    3. Method 3. Clear the Windows Read-Only Attribute With DiskPart
    1. Recover Files From a Detectable SD Card With Recoverit

Part 1. Find What Is Making the SD Card Write-Protected

SD card write protection is a read-only state: you may still be able to open or copy existing files, but the device can reject new files, edits, deletions, partition changes, and formatting. The important part is that the same symptom can come from different layers.

What You See Most Likely Layer Safest Next Step
Full-size SD card or microSD adapter is set to LOCK Physical lock Eject it and move the slider to the unlocked position.
microSD card has no switch, but its full-size adapter does Adapter lock Unlock or replace the adapter. The microSD card itself normally has no side lock slider.
The card works in one reader but is write-protected in another Reader or adapter Use the known-good reader and replace the faulty accessory.
Windows shows the correct capacity and DiskPart reports Read-only: Yes Windows disk attribute Clear the read-only attribute after selecting the correct disk by capacity.
Every removable drive is read-only on one work or school PC Windows storage policy Ask the administrator to check removable-storage write policies instead of modifying random registry keys.
The card writes normally on Windows, but your Mac can only read it File-system compatibility Check the format. Apple notes that macOS may read an NTFS drive without being able to write to it.
The same card stays read-only in multiple known-good readers and computers Card controller or flash wear Copy or recover the data, then replace the card. Do not rely on it for new writes.
The card shows 0 bytes, No Media, changes capacity, overheats, or disconnects repeatedly Possible hardware failure Stop repeated write, repair, and format attempts. Protect the data and consider professional recovery.

SanDisk documents two especially useful clues: a loose full-size SD lock switch can slide back to the locked position during insertion, and a worn card can place itself into a protective read-only state when usable memory blocks fall below an internal threshold. SanDisk's write-protection guidance therefore recommends checking the switch and treating persistent read-only behavior as a possible card-health problem rather than assuming every case is a Windows setting.

Part 2. Remove Write Protection From an SD Card Safely

Use the methods below in order. The first two are reversible hardware checks. DiskPart changes only a Windows disk attribute, but you still need to select the correct disk. Do not format, run clean, initialize, or repair the file system just to test whether write protection can be removed.

Method 1. Unlock The SD Card Or Adapter

This method applies to a full-size SD card or to a microSD card inserted into a full-size SD adapter. SanDisk's official support page says the lock switch should be slid up to the unlocked position. A microSD card used by itself normally has no physical lock switch; its adapter may have one.

Step 1. Eject the Card

Safely eject the SD card or adapter from the computer, camera, or other host before moving the lock slider.

physical lock switch on a full size sd card

Step 2. Move the Slider Away From LOCK

Move the side switch firmly to the unlocked position. If you are using a microSD card, inspect the adapter rather than looking for a switch on the microSD card itself.

sd card lock switch moved to the unlocked position

Step 3. Reinsert the Card and Test a Small Write

Create a temporary folder or copy one disposable file to the card. If the write succeeds, delete the test file and continue using the card only after confirming the problem does not return.

Failure branch: If the slider feels loose or moves back toward LOCK when inserted, replace the adapter or full-size card. SanDisk specifically warns that a loose lock switch can move during insertion. Do not use tape, glue, or objects inside a reader to defeat its lock detection.

Method 2. Rule Out the Adapter, Reader, or Computer

A write-protection message can be caused by the connection path rather than the flash memory. This is especially relevant to microSD cards because the card, adapter, reader, USB port, and computer can all affect the result.

Step 1. If you are using a microSD-to-SD adapter, replace it with a known-good adapter or use a dedicated microSD USB reader.

Step 2. Try one known-good card reader connected directly to the computer instead of through a USB hub.

Step 3. If possible, test the same card on a second computer. Compare the reported capacity and repeat only the small disposable write test.

sd card connected to a windows computer for a write test

If one reader or adapter reports write protection while another lets the same card write normally, replace the accessory. If the card is write-protected everywhere, continue to DiskPart on Windows or the persistent-read-only checks in Part 3.

Method 3. Clear the Windows Read-Only Attribute With DiskPart

Microsoft documents the DiskPart attributes disk command for displaying, setting, or clearing a disk's read-only attribute on Windows 10 and Windows 11. It only works on the disk currently selected in DiskPart, so identifying the SD card by its capacity is essential. Microsoft's DiskPart documentation also makes clear that this is an attribute command; it does not bypass a physical lock or repair failing hardware.

Step 1. Open an Elevated Command Prompt

Press Windows + R, type cmd, and press Ctrl + Shift + Enter. Approve the administrator prompt.

Step 2. Start DiskPart and Identify the SD Card

Run the commands below one at a time:

  1. diskpart
  2. list disk
  3. Compare the listed capacities with the physical capacity printed on your SD card.
  4. Run select disk n, replacing n with the correct SD card disk number.
  5. Run attributes disk and check whether Read-only is Yes.

Step 3. Clear the Attribute

Run attributes disk clear readonly. Then type exit, safely eject the card, reconnect it, and try one small nonessential write.

diskpart command clearing the read only attribute on an sd card

When this will not work: DiskPart cannot override the SD card's physical LOCK slider, a locked microSD adapter, a failing controller, or an administrator-enforced storage policy. If attributes disk clear readonly reports success but the card still rejects writes on another computer, do not keep escalating to destructive commands.

Free Download
Free Download

Part 3. What If the SD Card Stays Write-Protected?

Persistent read-only behavior is the point where many guides become too aggressive. Before editing the registry, repairing the file system, or formatting, use the failure pattern to decide whether the restriction belongs to the computer or the card.

Failure Pattern What It Means Next Safe Action
All removable drives are read-only on one work or school PC A managed Windows policy may deny write access to removable disks. Ask the administrator to check Computer Configuration > System > Removable Storage Access > Removable Disks: Deny write access. Microsoft documents this policy as blocking write access when enabled.
Only this SD card is read-only across two computers and two reliable readers The card's controller or flash memory may be enforcing read-only mode. Copy or recover the files and replace the card. A software "unlock" tool cannot reliably reverse controller-enforced protection.
Only a Mac cannot write, but Windows can The issue may be file-system compatibility rather than SD-card write protection. Check Finder > Get Info. Apple notes that macOS may read NTFS storage without being able to write to it.
The card shows RAW, asks to be formatted, or files are missing There may be file-system corruption or data loss in addition to write protection. Do not format first. Follow a corrupted SD card recovery workflow before repair.
The card shows 0 bytes, No Media, unstable capacity, heat, or repeated disconnects Possible controller, connector, or NAND failure Stop repeated DIY writes and scans. If the data matters, consider professional recovery.

For managed Windows devices, Microsoft's current Storage Policy documentation describes a policy named Removable Disks: Deny write access. If every USB or removable drive is read-only on the same organization-managed PC, that is a stronger clue than one SD card failing alone. Do not create undocumented registry keys simply because a path is missing.

On a Mac, read-only access to one NTFS-formatted card or drive is a different problem. Apple says Disk Utility does not support NTFS formatting and macOS may be able to read NTFS storage without writing to it. See Apple's guidance for external drives that cannot be written to. If the card works normally on Windows, do not misdiagnose that Mac limitation as a failed lock switch.

If the SD card suddenly stopped working and now stays read-only everywhere, prioritize the files over making the card writable again.

Part 4. Recover Important Files Before Formatting or Replacing the Card

A write-protected card can still be readable, which is useful when the files matter. If photos, videos, documents, or folders are missing, RAW, inaccessible, or corrupted but Windows or macOS can still detect the card with a stable capacity, recover the data before any format or destructive repair.

Wondershare Recoverit Memory Card Recovery is designed for logical data-loss scenarios such as deletion, formatting, RAW file systems, corruption, and inaccessible files on memory cards that are still detectable. It does not remove physical write protection or repair a failed memory controller. If the card is cracked, overheating, severely water-damaged, or undetected everywhere, repeated software scans are not the right first step.

recoverit logo
Wondershare Recoverit
Your Safe & Reliable Data Recovery Expert
Download Download

Easily recover deleted or lost files in 500+ data loss situations, such as deletion, formatting, and disk corruption. The software confidently retrieves all data types, regardless of how they went missing.

Recover Files From a Detectable SD Card With Recoverit

Step 1. Connect and Select the SD Card

Connect the card through a stable reader. Open Recoverit, choose SD Card Recovery, and select the correct card by its identity and capacity.

Step 2. Scan for Missing or Inaccessible Files

Start the scan and keep the card connected. You can narrow results by file type, date, size, or keywords while the scan continues.

recoverit scanning an sd card for recoverable files

Step 3. Preview the Files You Need

Preview supported photos, documents, and media before recovery. A preview helps confirm that a file is the one you want, but no software can guarantee recovery after the original data has been overwritten.

recoverit previewing files found on a memory card

Step 4. Recover to Another Healthy Drive

Save the recovered files to the computer or another healthy drive, not back to the source SD card. Open important files and play recovered videos before you format or retire the original card.

If the card is readable but files disappeared, you can also follow the dedicated guide for pictures that disappeared from an SD card. The recovery step belongs before formatting, not after a forced erase.

Recover Important Files Before Formatting or Replacing the Card

article-safe-itemSecurity Verified. Over 7,302,189 people have downloaded it.

Part 5. Do You Need an SD Card Write Protection Removal Tool?

No universal SD card write protection removal tool exists. The right tool depends on the layer enforcing read-only access. A physical LOCK slider must be moved physically. DiskPart can clear a Windows read-only attribute. A managed Windows policy must be changed by the appropriate administrator. A failing controller that has permanently forced the card read-only should be treated as a data-preservation and replacement problem.

Tool or Action What It Can Do What It Cannot Do
Physical LOCK slider Enable or disable write protection recognized by compatible readers Repair a loose adapter, failing controller, or damaged flash memory
DiskPart attributes disk clear readonly Clear a Windows disk-level read-only attribute Override a physical lock, organization policy, or controller-enforced read-only state
Windows storage policy Allow or deny writes to removable disks on a managed PC Repair an SD card that is read-only on every computer
SD Memory Card Formatter Format a writable SD, SDHC, SDXC, or SDUC card using SD Association specifications Act as an unlocker for a physical or permanent write-protection state
Random third-party "force unlock" or "write-protection removal" utility Varies by software Cannot be assumed to safely bypass controller-enforced protection; some tools may write new metadata or erase the card

The SD Association's SD Memory Card Formatter is an official formatting tool for SD-family cards, not a write-protection bypass. The SD Association tells users to back up wanted data and put the write-protect switch in the not-protected position before formatting. Use it only after the card is writable and the files are safe.

Part 6. When to Format or Replace a Write-Protected SD Card

If your goal is to erase a write-protected SD card, you must resolve the active write restriction first. Formatting is destructive and should not be used as a diagnostic shortcut when the only copy of important files is still on the card.

  • Format after the card becomes writable: If the files are backed up and the card accepts a small test write, follow the dedicated write-protected SD card formatting guide instead of duplicating the full formatting workflow here.
  • Do not force a format on a persistently read-only card: If it remains read-only on multiple computers and readers, copy or recover the data and replace the card.
  • Stop if Windows cannot complete the format: If the card is writable enough to start formatting but Windows still fails, use the separate Windows unable to complete the format troubleshooting path.
  • Replace a loose adapter or failing card: Repeated write-protection errors are not a good basis for long-term storage, even if one temporary fix appears to work.

After any successful fix, verify it rather than assuming the card is healthy: safely eject it, reconnect it, copy one disposable file to the card, open that file, delete it, and then retest the card in the device that will actually use it. If write protection returns, retire the card.

Conclusion

Removing write protection from an SD card is not about trying the largest number of fixes. Start with the physical lock or microSD adapter, rule out the reader, then clear a Windows read-only attribute only when the card is correctly detected. If the card stays read-only across multiple devices, treat that as a possible controller or flash-health warning: protect the files and replace the card instead of forcing writes.

Free Download
Free Download

FAQ

  • How do I remove write protection from an SD card?
    Eject the card and move the full-size SD card or adapter's LOCK slider to the unlocked position. Then test another reader. If Windows detects the correct capacity but still reports read-only status, select the correct disk in DiskPart and run attributes disk clear readonly. If the card remains read-only on multiple computers, copy or recover the files and replace it.
  • How do I remove write protection from a microSD card?
    A microSD card normally has no physical lock slider. If it is inside a full-size SD adapter, unlock or replace the adapter first. Then try another reader or computer. On Windows, DiskPart can clear a software read-only attribute when the card is detected with the correct capacity.
  • Why is my microSD card write-protected when it has no lock switch?
    The lock may be on the full-size adapter, the reader may be misreporting the card, Windows may have a read-only attribute or policy, or the card controller may have forced read-only mode because the media is failing. Cross-test the microSD card in a known-good reader before changing software settings.
  • Does DiskPart remove SD card write protection?
    DiskPart can clear a Windows disk-level read-only attribute with attributes disk clear readonly. It cannot override a physical LOCK slider, a managed write policy, or a controller-enforced read-only state caused by card failure.
  • Why does attributes disk clear readonly not work?
    The card may still be physically locked, the adapter or reader may be faulty, the computer may enforce a removable-storage policy, or the card itself may be permanently read-only. If the same card rejects writes on multiple known-good readers and computers, recover needed data and replace the card.
  • Is there an SD card write protection removal tool?
    There is no universal tool that safely removes every type of write protection. DiskPart handles a Windows read-only attribute, while the SD Association Formatter formats an already writable card. Neither can reliably bypass a physical lock or a failing controller that has forced the card read-only.
  • How do I erase a write-protected SD card?
    Resolve the lock or read-only condition first, protect any files you need, confirm the card accepts a small write, and then format it with the tool recommended for your device. If the card remains read-only everywhere, do not force an erase; replace it after copying or recovering the data.
  • Can I recover files from a write-protected SD card?
    Often, yes, if the operating system can still detect the card and read its sectors. Stop using the source, recover files to a different healthy drive, and remember that no software can guarantee data that has already been overwritten. A physically unstable or completely undetected card may need professional recovery.
Eleanor Reed
Eleanor Reed Sep 16, 26
Share article:
Get Recoverit Get Recoverit