When you edit an Office file stored in OneDrive, the service automatically saves previous versions. This feature lets you undo unwanted changes, restore deleted content, or recover from accidental overwrites without needing a separate backup tool. The version history is built into OneDrive for Business and works with Word, Excel, and PowerPoint files. This article explains how to access, restore, and manage earlier versions of Office documents directly from OneDrive.
Key Takeaways: Recovering Earlier Office Versions From OneDrive
- OneDrive web > File > Version History: Right-click any Office file and select Version History to see a list of saved versions with timestamps.
- Restore button: Opens the selected version in a read-only preview; clicking Restore replaces the current file with that version.
- Version limit and retention: OneDrive keeps up to 500 versions per file and retains them for 30 days after the file is deleted or the version limit is exceeded.
How OneDrive Version History Works for Office Files
OneDrive for Business automatically saves a new version every time you close and save an Office file. This includes manual saves in Word, Excel, and PowerPoint, as well as auto-saves triggered by Office 365 apps. Each version records the exact state of the file at that moment. The version list shows the date, time, and the person who made the change. You can view, restore, or delete any version without affecting other files in the same folder.
Version history is available for files stored in your OneDrive library or in a SharePoint document library synced through OneDrive. The feature applies to all Office file formats: .docx, .xlsx, .pptx, .doc, .xls, and .ppt. Non-Office files such as .pdf, .jpg, or .txt also have version history, but the preview and restore behavior may differ. For Office files, the preview opens the document in the corresponding web app, so you can scroll through content before deciding to restore.
What Triggers a New Version
A new version is created when you save the file in the desktop Office app, when auto-save triggers in Office 365, or when you upload a new copy with the same filename. Renaming the file does not create a new version; it creates a separate file. Deleting a version reduces the total count but does not remove the file itself.
Version Retention Policy
OneDrive keeps up to 500 versions per file. When a new version is added and the count exceeds 500, the oldest version is permanently deleted. If you delete a file, its versions are retained for 30 days in the recycle bin. After 30 days, both the file and its versions are removed. For files in a SharePoint document library, the retention policy may be configured differently by your IT administrator.
Steps to Recover an Earlier Version of an Office File
Use the OneDrive web interface to view and restore previous versions. The desktop sync client does not show version history directly. Follow these steps to recover an earlier Office version.
- Open OneDrive in your browser
Go to https://onedrive.live.com and sign in with your Microsoft 365 work or school account. Navigate to the folder that contains the Office file you want to recover. - Right-click the file and select Version History
Locate the file in the file list. Right-click the file name or the file icon. From the context menu, choose Version History. Alternatively, click the file to select it, then click the … (ellipsis) button in the toolbar and select Version History. - Review the list of versions
A panel opens on the right side of the window showing all saved versions. Each entry displays the date, time, and the name of the person who saved that version. The most recent version appears at the top. - Preview a version
Click the View link or the version entry itself. The file opens in the corresponding Office web app in a read-only mode. You can scroll through the document to verify that this is the version you want. Close the preview tab to return to the version history panel. - Restore the version
In the version history panel, click the three dots … next to the version you want to recover. Select Restore. A confirmation dialog appears. Click Restore again. OneDrive replaces the current file with the selected version. The restored version becomes the latest version, and the previous current version is preserved as an older version in the history. - Download a version instead of restoring
If you do not want to replace the current file, click the three dots … next to a version and select Download. The version is saved to your local Downloads folder as a separate file with the original filename and a timestamp in the name.
If the Version History Option Is Missing or Grayed Out
Version History button does not appear for the selected file
This usually means the file is not stored in OneDrive or SharePoint. Check that the file is located in your OneDrive folder or a synced SharePoint library. Files stored only on your local hard drive do not have version history. Move the file into the OneDrive folder first, then sync it. After the file is uploaded, version history becomes available.
Versions are not being saved automatically
Auto-save must be enabled in the Office app. In Word, Excel, or PowerPoint, go to File > Options > Save and check the box for AutoSave OneDrive and SharePoint Online files by default. When auto-save is off, only manual saves create a new version. If you close the file without saving, no version is recorded.
Restored version does not show up in the desktop app
After restoring a version in the browser, the change syncs to your desktop. Wait a few seconds for the sync client to download the updated file. If the file does not update, right-click the OneDrive icon in the system tray and select Pause syncing, wait 30 seconds, then select Resume syncing. You can also force a sync by right-clicking the file in File Explorer and selecting Sync if the option is available.
Version History in OneDrive vs In-App Version History
| Item | OneDrive Web Version History | Office App Version History |
|---|---|---|
| Access method | Right-click file in browser | File > Info > Version History in Word, Excel, or PowerPoint |
| File types supported | All files stored in OneDrive | Only .docx, .xlsx, .pptx |
| Preview | Opens in Office web app | Opens in the desktop app |
| Restore behavior | Replaces current file | Adds a new copy with a version number |
| Version limit | 500 versions per file | Unlimited, but stored locally |
| Retention after delete | 30 days in recycle bin | Lost when file is deleted from OneDrive |
The OneDrive web version history is the most reliable method for recovering earlier versions because it works for all file types and is not dependent on the local Office app. Use the in-app version history when you want to compare versions side by side without leaving the desktop application.
You can now recover any earlier version of an Office file stored in OneDrive for Business. To avoid losing important changes, restore the correct version by previewing it first. As an advanced tip, use the Compare feature in Word after downloading two versions to see exactly what changed between them.