You see a file in your OneDrive folder in File Explorer, but it shows as a cloud icon and cannot be opened without an internet connection. This happens when OneDrive’s Files On-Demand feature keeps the file online only to save local disk space. The file is not actually stored on your hard drive until you make it available offline. This article explains how to force a file to stay on your local device permanently and how to resolve sync conflicts when a file appears online but is missing locally.
Key Takeaways: Making OneDrive Files Available Offline
- Right-click file > Always keep on this device: Forces the selected file to download and stay on your local hard drive permanently.
- OneDrive settings > Sync and backup > Advanced settings > Files On-Demand: Controls whether cloud-only placeholders appear or files are fully downloaded by default.
- Right-click folder > Always keep on this device: Applies offline availability to all files inside a folder at once, useful for entire project directories.
Why a File Shows Online Only in OneDrive
OneDrive uses a feature called Files On-Demand to balance local storage and cloud access. When enabled, files appear in File Explorer with a cloud icon. The file is not stored on your device. It exists only in the cloud. When you open it, OneDrive downloads it on the spot. This saves disk space but means the file is unavailable when you are offline.
The root cause is that OneDrive treats every file as online-only by default when Files On-Demand is turned on. The file remains a placeholder until you explicitly mark it for offline use. If you see a file online in the browser but not on your local device, check the icon in File Explorer. A cloud icon confirms the file is not stored locally.
Files On-Demand Icon Meanings
OneDrive displays four icon states in File Explorer:
- Cloud icon (blue): File is online only. It is not on your device.
- Solid green checkmark: File is fully downloaded and available offline.
- Solid green checkmark with white circle: File is always kept on this device.
- Sync pending icon (circular arrows): File is downloading or uploading.
Steps to Make a File Available on Your Local Device
- Open File Explorer and locate the file
Navigate to your OneDrive folder. Find the file that shows a cloud icon. If you cannot see the file in File Explorer, sign in to OneDrive in your browser, verify the file exists, and ensure sync is running. - Right-click the file
A context menu appears. Look for the OneDrive section near the top of the menu. - Select Always keep on this device
Click this option. OneDrive immediately begins downloading the file. The icon changes from a cloud to a solid green checkmark with a white circle. The file is now stored on your local hard drive. - Verify offline access
Disconnect from the internet temporarily. Open the file from File Explorer. It should open without errors. Reconnect when done. - Repeat for entire folders if needed
Right-click a folder and choose Always keep on this device to make all files within that folder available offline. This is useful for project folders or shared team directories.
If the File Still Does Not Appear Locally
OneDrive Sync Is Paused or Stopped
OneDrive may have paused sync due to battery saver mode, metered network, or user action. Click the OneDrive cloud icon in the system tray. If the status says Sync paused, click Resume syncing. Wait a few minutes for the file to download.
Files On-Demand Is Disabled
If Files On-Demand is turned off completely, OneDrive downloads every file by default. But if you previously set a file to Free up space, it becomes online-only again. Go to OneDrive settings > Sync and backup > Advanced settings > Files On-Demand. Ensure the setting is turned on. Then manually set files to Always keep on this device as described above.
The File Is a Shared File with Limited Permissions
If the file was shared with you by someone else and they changed permissions, the file may appear in your OneDrive folder but cannot be downloaded. Contact the file owner to verify your access level. Ask for at least read access. If the file is in a SharePoint document library, check the library permissions with your administrator.
Files On-Demand vs Always Keep on This Device: Key Differences
| Item | Files On-Demand (online-only) | Always keep on this device |
|---|---|---|
| Description | File is a placeholder; downloaded on demand when opened | File is fully downloaded and stored on your hard drive permanently |
| Local storage use | Minimal (only metadata) | Full file size |
| Offline access | Not available | Available |
| Default behavior | Default when Files On-Demand is enabled | Must be set manually per file or folder |
| Icon in File Explorer | Blue cloud | Green checkmark with white circle |
| Revert to online-only | N/A | Right-click > Free up space |
What to Do If the File Is Missing Entirely
Check the OneDrive Recycle Bin
If a file was deleted online, it may be in the OneDrive recycle bin. Sign in to onedrive.live.com. Click Recycle bin in the left pane. Locate the file, select it, and click Restore. The file reappears in your OneDrive folder and syncs to your device.
Check the Local OneDrive Recycle Bin
OneDrive also has a local recycle bin on your computer. Open File Explorer and navigate to your OneDrive folder. Look for a hidden folder named .OneDriveRecycleBin. If you see it, open it and copy the file back to the original location. This folder is hidden by default. To view it, enable hidden items in File Explorer under View > Show > Hidden items.
Run the OneDrive Sync Troubleshooter
Windows 11 and Windows 10 include a built-in troubleshooter for OneDrive. Open Settings > System > Troubleshoot > Other troubleshooters. Find OneDrive in the list and click Run. The troubleshooter checks for sync issues, corrupt cache, and incorrect settings. Follow the on-screen prompts to apply fixes.
Conclusion
You can now force any OneDrive file to stay on your local device by right-clicking it and selecting Always keep on this device. This ensures the file is available offline and does not disappear when you lose internet access. If a file appears online but not locally, check the Files On-Demand setting and the OneDrive recycle bin. For persistent issues, run the OneDrive sync troubleshooter from Windows Settings. To prevent future problems, set critical folders to Always keep on this device instead of individual files.