Where unsaved documents actually live on your computer
When you close a document without saving, it does not vanish when ready. Most programs store a temporary copy somewhere on your hard drive — usually in a hidden folder that the program checks when it starts up again. The location and how long it stays there depends entirely on which program you use.
Microsoft Word keeps unsaved documents in a folder called UnsavedFiles, typically at C:\Users\[YourUsername]\AppData\Local\Microsoft\Office\UnsavedFiles on Windows, or ~/Library/Containers/com.microsoft.Word/Data/Library/Autosave Information on Mac. Google Docs and Google Sheets save automatically to your Google Drive account every few seconds, so there is no "unsaved" state — if you were logged in, the document exists. LibreOffice stores recovery files in a .backup folder inside your user profile. Apple Pages, Numbers, and Keynote save to iCloud automatically if you have that turned on.
Key Takeaways
- Most programs keep temporary copies of unsaved work for a set number of days — usually between three and thirty — before deleting them automatically.
- Microsoft Office, LibreOffice, and Apple programs all have built-in recovery features you can access from the File menu without opening a file browser.
- Google's suite and Microsoft 365 online versions save continuously, so your document is almost never truly unsaved if you were logged in.
- If automatic recovery does not find your document, file recovery software can sometimes retrieve it, but success depends on how long ago you closed it and whether your computer has written new data over that space.
How to recover a document in Microsoft Word
Open Microsoft Word and go to File > Info > Manage Documents (or Recover Unsaved Documents on older versions). Word will show you a list of unsaved files with the date and time you last worked on them. Click the one you want and Word will open it in a new window. At the top of the document, you will see a yellow bar asking whether you want to save this recovered version or discard it.
If that menu does not show anything, Word may have already deleted the temporary files. By default, Word keeps unsaved documents for three days. You can change this in File > Options > Save, where you will see a field labeled "AutoRecover file location" and another for "Minutes between saves" — increasing the minutes between saves does not help recover old files, but it does control how often Word creates new temporary copies going forward.
How to recover a document in Google Docs or Google Sheets
Google Docs and Sheets do not have an "unsaved" state because they save automatically every few seconds while you are logged in. If you need to see an earlier version of a document, open the file and click File > Version history > See all versions. Google keeps version history for 100 days by default, and you can see who made each change and when. Click any version to view it, then click "Restore this version" at the top if you want to make that the current version.
If you cannot find the document at all, check your Google Drive trash. Files you delete go there first and stay for 30 days before Google removes them permanently. Open drive.google.com, click the trash icon on the left sidebar, find the document, right-click it, and select "Restore."
How to recover a document in LibreOffice
LibreOffice stores recovery files automatically. Go to File > Wizards > Document Recovery. LibreOffice will scan for any documents it was working on when it closed unexpectedly or when you force-quit the program. You will see a list with checkboxes — select the documents you want to recover and click "Start." LibreOffice will open them so you can review and save them.
If Document Recovery does not appear in your File menu, your version of LibreOffice may not have found any recovery files. You can also navigate manually to the backup folder: on Windows, go to C:\Users\[YourUsername]\AppData\Roaming\LibreOffice\4\user\backup, and on Mac, go to ~/Library/process Support/LibreOffice/4/user/backup. These are hidden folders, so you may need to enable viewing hidden files in your file browser settings first.
How to recover a document in Apple Pages, Numbers, or Keynote
Apple's programs save to iCloud automatically if you have iCloud Drive enabled in System Preferences. Open the program, go to File > Revert To, and you will see a list of saved versions with timestamps. Click the version you want and Apple will show you a preview. Click "Restore" to make that version current.
If Revert To is grayed out, the document may not have been saved to iCloud yet. Check that iCloud Drive is turned on: go to System Preferences > [Your Name] > iCloud and make sure iCloud Drive has a checkmark. If you created the document but never saved it to iCloud, it may only exist in local storage on that device, and you will need to use the file recovery method described below.
Using file recovery software when built-in tools do not work
If your program's recovery feature does not find the document, you can try third-party file recovery software. These tools scan your hard drive for fragments of deleted files and attempt to reconstruct them. Common options include EaseUS Data Recovery Wizard, Recuva (free on Windows), and DiskDrill. read the software, run a scan of your hard drive, search for the file type you lost (such as .docx for Word documents), and attempt recovery to a different drive or external storage.
Success depends on timing and luck. If you closed the document hours ago and your computer has been in use since then, new data may have overwritten the space where the temporary file was stored, making recovery impossible. If you closed it minutes ago and have not used the computer much since, recovery is more likely. These tools work best when you act quickly and do not install them on the same drive you are trying to recover from.
Keep in mind that file recovery software cannot may provide results, and some programs may ask for payment after you run a scan. Read reviews before downloading, and do not pay for recovery until you can see a preview of the file the software found.
How to prevent losing unsaved work in the future
The most reliable prevention is to use a program that saves automatically and stores versions in the cloud. Google Docs, Microsoft 365 online, and Apple iCloud all do this. If you prefer desktop programs, enable autosave and set it to save frequently — every one to five minutes is reasonable. In Microsoft Word, go to File > Options > Save and check "AutoRecover" and "AutoSave." In LibreOffice, go to Tools > Options > Load/Save > General and check "Always create a backup copy."
You can also build a habit of saving manually. Use Ctrl+S (Windows) or Command+S (Mac) every few minutes while you work, especially before you step away from your computer. This takes seconds and removes the risk of losing work to a crash or accidental close.
Frequently Asked Questions
How long does a program keep unsaved documents?
It varies by program. Microsoft Word keeps unsaved files for three days by default, but you can change this in the Save settings. Google Docs keeps version history for 100 days. LibreOffice keeps recovery files until you manually delete them. Apple iCloud keeps versions as long as the document exists in iCloud Drive. Check your specific program's settings to see what it does.
Can I recover a document if I never saved it even once?
If the program has autosave or recovery enabled, yes — the temporary file counts as a recovery point. If autosave is off and you never saved the document, file recovery software is your only option, and success is not may provide. This is why turning on autosave is worth doing right now, before you need it.
What if I closed the document and then restarted my computer?
Restarting does not delete temporary files. When you restart, the program will still have the recovery file stored on your hard drive. Open the program and look for a recovery prompt, or go to File > Recover Unsaved Documents. The file should still be there.
Is there a way to recover a document from a different computer?
Only if the document was saved to cloud storage like Google Drive, OneDrive, or iCloud. If it was only on the original computer and never synced, you would need physical access to that computer to run file recovery software. This is another reason to use cloud-based programs or enable cloud sync on your desktop program.
Do I need to pay for file recovery software?
Some options are free. Recuva is free on Windows. EaseUS and DiskDrill offer free scans but may charge to actually recover files. Try free options first. If you do pay, only pay after you can preview the file and confirm the software found what you are looking for.