Where unsaved documents actually go

When you close a document without saving, it does not vanish immediately. Most programs — Word, Google Docs, LibreOffice, even your web browser — keep temporary copies in hidden folders or cloud storage. The location depends on what program you were using and whether you were working offline or online.

The key is knowing where to look before you panic. Windows stores temporary files in one location, Mac in another, and cloud-based programs like Google Docs keep versions on their servers automatically. If you understand which system you were using, you can usually recover most or all of your work.

Key Takeaways

  • Microsoft Word and LibreOffice save automatic recovery files in hidden system folders that you can access through the program's File menu without needing to dig through your computer.
  • Google Docs and Microsoft 365 online save versions automatically, so your document may already exist in your account even if you never clicked Save.
  • Windows stores temporary files in AppData\Local\Temp and Mac stores them in /var/folders, but accessing these folders requires showing hidden files first.
  • If a program crashes, check its recovery or recent files menu before searching your hard drive, since that is the fastest route.
  • Cloud storage services like OneDrive and Google Drive may have a trash or version history feature that holds deleted or overwritten documents for 30 days or longer.

Recovering unsaved Word documents on Windows

Microsoft Word has a built-in recovery feature that catches documents you did not save before closing. Open Word, go to File > Info > Manage Versions (or Recover Unsaved Documents depending on your Word version). A folder will open showing any unsaved files Word has cached. Look for the file by date — it will show the time you were last working on it.

If that folder is empty, Word may have crashed instead of closing normally. In that case, open Word again and look for a recovery pane on the right side of the screen. Word automatically detects crashes and offers to restore your recent documents. Click the file name to open it.

If neither of those works, you can search your hard drive directly. Press Windows key + R, type %appdata%\Microsoft\Word and press Enter. Look for files with names like "Document1" or "AutoRecovery". These are Word's automatic backups. You can also try %temp% to see temporary files, though these are less reliable.

Recovering unsaved documents on Mac

Mac applications that support Auto Save — including newer versions of Word, Pages, and most Apple programs — keep versions of your document on disk automatically. If you did not save before closing, open the program, go to File > Open Recent, and look for the document name. Click it, and Mac will ask whether you want to keep the unsaved version or the last saved version. Choose unsaved.

If that does not work, try File > Revert To > Browse All Versions. This opens a timeline of every version Mac has kept, including unsaved drafts. Scroll through the timeline on the right to find the version closest to when you were working, then click Restore.

For programs that do not have Auto Save, you can search the temporary folder manually. Open Finder, press Command + Shift + G, paste /var/folders and press Enter. This folder is hidden by default. Look for a folder with your program's name (like "Microsoft Word" or "LibreOffice") and search inside for your document. Temporary files are often named with random characters, so look by date modified instead of name.

Recovering documents from Google Docs, Word Online, and other cloud programs

If you were working in Google Docs, Microsoft 365 online, or another cloud-based editor, your document may already be saved even if you never clicked Save. These programs save automatically as you type. Go to your account (Google Drive, OneDrive, or the service you were using) and search for the document by name or by the date you were working on it.

If you cannot find the document in the main folder, check the trash or recycle bin. Google Drive keeps deleted files for 30 days. OneDrive keeps them for 93 days. Open the trash, find your document, and restore it. If the document exists but you want an earlier version, right-click it and look for Version History (Google) or Version History (OneDrive). You can see every saved version and restore any of them.

If you were working offline in Google Docs or another web app, the document may not have synced to the cloud yet. Check your browser's cache. Press Ctrl + Shift + Delete (Windows) or Command + Shift + Delete (Mac) to open your browser's cache settings. Look for cached files from the date you were working. This is a last resort and often does not recover much, but it is worth trying if nothing else works.

Recovering unsaved LibreOffice documents

LibreOffice saves automatic backups by default. Open LibreOffice, go to File > Recover. A dialog will show any documents that were not properly closed, with the date and time of the last automatic save. Select the document and click Start to open it.

If the Recover option does not appear, go to Tools > Options > Load/Save > General and make sure Always create a backup copy is checked. Then look in your document folder for files with a .bak extension — these are LibreOffice backups. You can rename them to .odt (or .doc, .docx, depending on the format) and open them normally.

Searching your hard drive for temporary files

If the program-specific methods above do not work, you can search your entire hard drive for temporary files. On Windows, open File Explorer and search for files modified on the date you were working. Look in the search box for modified:[date] — for example, modified:12/15/2024. This will show every file changed on that day. Sort by file type and look for .tmp, .bak, or .wbk files (Word backup), or files with your program's name in the path.

On Mac, open Finder and use Spotlight (Command + Space) to search by date. Type the document name or a phrase you remember from it. You can also search in specific folders by using the search bar in Finder and filtering by date modified. Mac's search is faster than Windows for this, but less precise — you may get many results.

Be aware that temporary files are often deleted when you restart your computer or when the program closes normally. The sooner you search after losing the document, the more likely you are to find it. If you have already restarted, the temporary files may be gone.

Preventing data loss in the future

The easiest fix is to avoid losing unsaved work in the first place. Enable auto-save in any program that offers it: Word, Google Docs, LibreOffice, and most modern editors have this feature in their settings. Set it to save every few minutes so that even if the program crashes, you lose only a small amount of work.

Use cloud storage for important documents. Google Drive, OneDrive, Dropbox, and similar services keep version history automatically, so you can recover earlier versions even if you overwrite a document by mistake. They also protect against hard drive failure.

Get in the habit of saving manually as well, especially for important work. Press Ctrl + S (Windows) or Command + S (Mac) frequently. It takes one second and eliminates the risk of losing work to a crash or accidental close.

Frequently Asked Questions

Can I recover a document if I already restarted my computer?

It depends on the program. Cloud-based programs like Google Docs and OneDrive save to their servers, so restart does not matter — your document is already backed up. For local programs like Word and LibreOffice, restart usually deletes temporary files, but the program may have saved an automatic recovery file before shutdown. Check the recovery menu first.

What if I saved the document with the wrong name or in the wrong folder?

Use your operating system's search function to find it. On Windows, open File Explorer and search for a word or phrase from the document. On Mac, use Spotlight (Command + Space) and search the same way. You can also search by file type (.docx, .odt, .txt) if you remember what program you used.

How long do cloud services keep deleted documents?

Google Drive keeps deleted files for 30 days. OneDrive keeps them for 93 days. Microsoft 365 online and other services vary. Check your service's help page for the exact timeframe. After that period, the file is permanently deleted and cannot be recovered.

Can I recover a document if the file got corrupted?

If the file opens but shows garbled text, try opening it in a different program. Word documents can sometimes open in LibreOffice or Google Docs with better results. If the file will not open at all, you may be able to recover the text using a file recovery tool, but this is beyond what most users can do without help. Check whether your cloud service has an older version you can restore instead.

What is the difference between auto-save and auto-recovery?

Auto-save saves your document to disk automatically as you work, so you always have a current copy. Auto-recovery saves a temporary backup that the program uses only if it crashes — you still have to manually save for the changes to be permanent. Auto-save is better because it protects against both crashes and accidental closes.