Smart Systems for Home

Plain how-to guides for smart home, security and home Wi-Fi

How to Recover Temp Files on Windows and Mac

· 6 min read · Home Tech

In this article
  1. What You'll Need
  2. Step-by-Step
  3. Common Mistakes
  4. Tips
  5. Troubleshooting
  6. Frequently Asked Questions

Yes, you can often recover temporary files, but only if they haven't been overwritten or permanently deleted. Temp files are created by apps and the OS for quick data access; if you lost an unsaved document or a project file, these files might contain a recent autosave. The fastest approach is to check the app's own recovery folder (e.g., Word's AutoRecover) before digging into system temp folders. Below are the exact steps for Windows and macOS, plus what to do if the files are gone.

What You'll Need

  • Access to the same user account that created the temp files (files are stored per-user).
  • For deleted files: a file recovery tool (e.g., Recuva on Windows, Disk Drill on Mac) – only if the files were recently deleted and the drive hasn't been heavily used.
  • If the temp files are from a specific app (Word, Excel, Photoshop), have that app installed to open the recovered files.

Step-by-Step

Check the App's Own Recovery Folder First

  1. Open the app you were using (e.g., Microsoft Word, Excel, Photoshop).
  2. Look for a "Recover Unsaved Documents" or "Open Recent > Recover Unsaved Documents" option (in Word: File > Info > Manage Document > Recover Unsaved Documents).
  3. If the app has an autosave folder, it will list files with a .asd or .tmp extension. Select the one you need and save it to a new location.
  4. If the app doesn't show a recovery option, search its settings for "AutoRecover" or "Backup" to find the folder path it uses.

Recover Temp Files from Windows System Folders

  1. Press Win + R, type %temp% and press Enter. This opens your user's Temp folder (usually C:\Users\YourName\AppData\Local\Temp).
  2. Sort the folder by "Date modified" (right-click the column header and choose Date modified) to see the most recent files first.
  3. Look for files with extensions like .tmp, .bak, or those that match the name of the document you were working on (e.g., "~$Report.docx").
  4. Copy any promising file to a safe location (e.g., your Desktop) – do not open it directly from the temp folder.
  5. Rename the file to the correct extension (e.g., change .tmp to .docx or .xlsx) and try opening it. If it doesn't open, try changing the extension to .asd (Word autosave) or .bak.
  6. If you don't find it there, also check C:\Users\YourName\AppData\Roaming\Microsoft\Word (for Word autosaves) or the app's own backup folder.

Recover Temp Files on macOS

  1. Open Finder and press Cmd + Shift + G (Go to Folder).
  2. Type /var/folders and press Enter. This is the system temp area, but files are buried in random subfolders.
  3. Alternatively, check the app's own autosave: in most Mac apps, go to File > Revert To > Browse All Versions, or look in the app's Preferences for a backup folder.
  4. If you're looking for a specific file, use Spotlight (Cmd + Space) and search for the file name or extension like .tmp or .bak.
  5. For Time Machine backups, open the folder where the file was last saved, enter Time Machine, and go back to a time before the file was lost.

If the Temp File Was Deleted (Empty Recycle Bin/Trash)

  1. Stop using the drive immediately – any new data can overwrite the deleted file.
  2. Download a reputable file recovery tool (e.g., Recuva for Windows, Disk Drill for Mac) from the official website.
  3. Run the tool and scan the drive where the temp files were stored (usually C: or Macintosh HD).
  4. Filter results by file type (.tmp, .docx, etc.) and look for recently deleted files. Recover them to a different drive (e.g., a USB stick) to avoid overwriting.

Common Mistakes

  • Opening temp files directly – This can corrupt them further. Always copy first.
  • Ignoring the app's own recovery – Many people jump to system temp folders when the app has a built-in recovery that's easier.
  • Using the wrong extension – A .tmp file from Word might actually be a .docx; renaming to .docx often works, but .tmp alone won't open.
  • Continuing to use the computer after deletion – This can overwrite the deleted file, making recovery impossible.
  • Cleaning temp files with a tool – Disk Cleanup or CCleaner permanently deletes temp files, so recovery becomes much harder.

Tips

  • Set your apps to autosave frequently (e.g., in Word: File > Options > Save > Save AutoRecover information every 5 minutes).
  • Keep a separate backup of important work – cloud storage (OneDrive, Google Drive) or an external drive.
  • If you're working on a critical document, save a copy manually every few minutes.
  • When you find a temp file, try opening it with a text editor (like Notepad) to see if it contains readable text – this can confirm it's the right file.

Troubleshooting

If the temp file won't open: Try renaming with a different extension. For example, a .tmp file from an Office app might be a Word document (.docx), Excel workbook (.xlsx), or even a PDF. If it still won't open, the file may be corrupted – try opening it with a text editor to see if any content is recoverable.

If the temp folder is empty: Windows may have cleaned it automatically. Check the Recycle Bin – deleted temp files sometimes land there. Also check the app's autosave location (e.g., C:\Users\YourName\AppData\Roaming\Microsoft\Word).

If the file recovery tool doesn't find the file: The file may have been overwritten. Try a deeper scan (some tools offer a "Deep Scan" mode) or try a different tool. If the drive is an SSD, recovery is less likely due to TRIM.

If you're on a Mac and can't find the temp folder: macOS hides system folders. Use the Go to Folder shortcut (Cmd+Shift+G) and type the exact path. If you're looking for a specific app's temp files, search the web for that app's autosave location – it varies.

Frequently Asked Questions

Can I recover temp files after emptying the Recycle Bin?

Yes, but only if the files haven't been overwritten. Use a file recovery tool immediately and stop using the drive.

Where are temp files stored in Windows 11?

In the same location as Windows 10: C:\Users\YourName\AppData\Local\Temp. You can also access it by typing %temp% in the Run dialog.

What is the .tmp file extension?

It's a generic temporary file extension used by many programs. The content could be anything – text, binary, or a partial document. Renaming to the correct extension is often needed.

Can I recover unsaved Word documents from temp files?

Yes, Word creates AutoRecover files with .asd extension. Check File > Info > Manage Document > Recover Unsaved Documents. If that's empty, look in C:\Users\YourName\AppData\Roaming\Microsoft\Word.

Is it safe to delete temp files?

Yes, but only if you don't need any unsaved data. Deleting temp files won't harm your system, but you might lose unsaved work. It's best to close all apps first.

Do temp files get deleted automatically?

Windows and macOS clean temp files periodically, but not always immediately. Some apps delete their temp files on exit. That's why it's important to save your work.