Keep Files on Computer Without Syncing to OneDrive
Question details
The user wants to keep certain files stored locally on their device but needs to prevent OneDrive from automatically uploading and syncing those specific files to the cloud.

- Product
- OneDrive
- Device & OS
- not provided
- Scenario
- Managing local file storage to ensure sensitive or device-specific files remain only on the computer without being uploaded to OneDrive.
- Observed behavior
- Files placed in synchronized folders (like Desktop or Documents) are automatically uploaded. The 'Files On-Demand' feature only manages local storage space for cloud files, rather than excluding local files from uploading.
Before making changes, verify which folders on your computer are currently being backed up by OneDrive (typically Desktop, Documents, and Pictures) to understand your current sync scope.
Move Files Outside the OneDrive Synchronization Folder
The most effective way to keep files strictly on your local computer is to store them in a directory that OneDrive does not monitor or back up.
OneDrive does not offer a direct feature to permanently exclude an individual file from uploading if it resides inside a synced folder. Anything placed in the Desktop, Documents, or Pictures folders (if PC Backup is enabled) will automatically sync. Moving the files to a completely separate local directory prevents this.
Open File Explorer and navigate to your local 'C:' drive. Right-click an empty space, select 'New' > 'Folder', and name it something like 'Local Projects' or 'Unsynced Files'.
Locate the files you want to keep exclusively on your computer. Cut and paste them from their current synchronized location into the newly created folder on your C: drive.
Check the files in their new location. They should no longer display the OneDrive sync status icons (like a cloud or a green checkmark), indicating they are strictly local.

Stop Syncing the Parent Folder in OneDrive Settings
If you have a specific folder that contains files you don't want online, you can instruct OneDrive to stop syncing that entire folder.
Take Control of Your Local Files with WPS Office
If you are frustrated by forced cloud synchronization and prefer to manage your documents strictly on your local device, WPS Office is an excellent, lightweight alternative. It allows you to create, edit, and save your work directly to your local drives without mandating cloud uploads.
- 1. Download the installer: Visit the official WPS Office website and download the free installer for your operating system.
- 2. Install the software: Run the setup file and follow the on-screen instructions to install WPS Office on your local machine.
- 3. Save files locally: When working on documents, simply use 'Save As' and select any local folder outside of OneDrive to keep your work completely offline.

Frequently Asked Questions
Can I exclude a specific file type from uploading to OneDrive?
No, OneDrive does not currently offer a built-in setting to exclude specific file types (like .tmp or .exe) or individual files from syncing if they are located within a monitored folder.
Does turning on 'Files On-Demand' prevent files from uploading?
No. The Files On-Demand feature only dictates whether files already in the cloud take up physical space on your hard drive. It does not prevent locally created files from being uploaded to OneDrive.
How do I stop OneDrive from automatically syncing my Desktop and Documents?
Open OneDrive Settings, navigate to the 'Sync and backup' tab, and click 'Manage backup'. From there, you can toggle off the backup for your Desktop, Documents, or Pictures folders to stop them from syncing automatically.




