How to Fix OneDrive Not Syncing on Windows 11 and 10

OneDrive keeps your files in the cloud and on your PC. When it stops syncing, files stay out of date or show a red cross. Most causes are simple: sync is paused, the storage is full, or a file name or path is not allowed. This guide goes through them in order and says what you should see after each step.
Windows 10 note: Windows 10 support has ended (see Microsoft's page). OneDrive works the same way on Windows 10 and 11.
Step-by-step: fix OneDrive
Step 1: Check the status icon
Select the OneDrive cloud icon near the clock (if you do not see it, select the arrow for hidden icons). The window says whether sync is up to date, paused or has errors. In File Explorer, a cloud icon on a file means it is online only, a green check means it is on your PC, blue arrows mean it is syncing and a red cross means an error.
If it says Sync paused, select Resume syncing. OneDrive can pause automatically on a metered connection or when Battery saver is on. You can change that in Settings > Sync and backup > Advanced settings.
You should see: the message change to Up to date, or a count of files being processed. If you are not signed in, sign in with the account that owns the files.
Step 2: Check your internet connection
Make sure you are online and that a web page opens. See fix Wi-Fi connected but no internet if the connection fails. Also open the OneDrive website: if it does not open either, the cause is the network, not OneDrive.
Step 3: Check the storage space
If your OneDrive storage is full, new files will not upload. Open the OneDrive website and check the storage in the lower left. A free Microsoft account includes 5 GB. Also check the free space on your PC's drive, because files that are downloaded to the PC need room (see how to free up disk space). If the PC is short of space, right-click a folder and choose Free up space to keep its files online only. If the C: drive still fills up after that, see what refills the C: drive after a clean-up. Before you use a PC cleaner to make that room, read how to use a PC cleaner with OneDrive without deleting cloud files.
You should see: storage below its limit and a PC drive with free space. If OneDrive is full, delete files you do not need (and empty its recycle bin, which also counts), or buy more storage.
Step 4: Look for files that cannot sync
Select the status message in the OneDrive window to see which files have problems. OneDrive cannot sync some files:
- Names with certain characters: a name cannot contain " * : < > ? / \ | , and should not end with a space or a dot.
- Reserved names: Microsoft lists names that are not allowed, such as CON, PRN, AUX, NUL, COM1 to COM9, LPT1 to LPT9, desktop.ini, .lock, and any name that starts with ~$ .
- Very long paths: Microsoft says paths over 400 characters can cause sync problems, and Office apps stop opening files whose local path is over 260 characters. Move the file closer to the top of the folder or shorten the folder names.
- Very large files: there is a maximum file size. Check Microsoft's restrictions page for the current limit.
- Files in use: close the program that has the file open.
You should see: the error clear a short time after you rename or move the file. If the same file keeps failing, copy it out of the OneDrive folder, delete the original and put the copy back. If Windows instead refuses access to the file, see our guide to fixing Windows access denied errors.
Step 5: Check the folder backup settings
Open the OneDrive icon, choose Settings > Sync and backup > Manage backup. If a folder shows an error, turn the backup off and on again for that folder. Read the message that appears first: if OneDrive says the folder contains files it cannot back up, deal with those files (Step 4).
Step 6: Unlink and relink your account
Open Settings > Account and select Unlink this PC. Then sign in again and choose the folder location. Your files stay on your PC and in OneDrive while you do this, but copy anything important first (see Protect your files below).
You should see: OneDrive ask you to sign in, then offer your existing OneDrive folder. Choose the same folder so OneDrive matches the files instead of copying them twice.
Step 7: Reset OneDrive
Press Windows + R and enter this command, then select OK:
%localappdata%\Microsoft\OneDrive\onedrive.exe /reset
The OneDrive icon disappears for a minute or two and then comes back. If it does not, press Windows + R and run %localappdata%\Microsoft\OneDrive\onedrive.exe. If Windows says it cannot find the file, Microsoft's Reset OneDrive page lists two other locations: C:\Program Files\Microsoft OneDrive\onedrive.exe /reset and C:\Program Files (x86)\Microsoft OneDrive\onedrive.exe /reset.
A reset does not delete your files, but it resets OneDrive's settings and OneDrive checks every file again, which takes time on a large folder. Leave the PC on and plugged in.
Step 8: Update OneDrive and Windows
Install Windows updates (see fix Windows Update stuck or failing if they fail), and check that OneDrive is up to date: open its settings and look at the About page.
Step 9: Check your firewall, proxy and VPN
A firewall, a proxy or a VPN can block OneDrive. Turn the VPN off for a few minutes and check again. Do not turn off Windows Security or your firewall to test. If a security program blocks OneDrive, allow OneDrive in that program instead.
Step 10: If a folder is stuck after you moved it
If you moved your Documents or Desktop folder, or Windows shows two copies of the same folder, open Settings > Sync and backup > Manage backup and check which folders are backed up. Do not delete either copy until you have confirmed the files are in the one you keep. If your desktop icons went missing after a Desktop folder change, see what to do when desktop icons are missing in Windows 11.
Protect your files
Before you reset or unlink, make a copy of important files (see how to back up your Windows PC). If OneDrive deleted files by mistake, open the OneDrive website and check the Recycle bin, or see how to recover deleted files.
More help
For more guides on Windows problems and backups, visit the PC Repair Atlas homepage.
FAQ
Will resetting OneDrive delete my files? No. It restarts the sync and rechecks the files.
Why do some files show a cloud icon? Files On-Demand keeps them online until you open them. That is normal.
Is OneDrive a backup? It is a sync service. Deleting a file on one device removes it on the others, so keep a separate backup.