What Is a .TMP File? (.tmp, .temp)
A .tmp file is a temporary file that a program creates while it works, to hold data, a backup or a partial download. Most are deleted automatically when the program closes. Leftover TMP files are usually safe to remove, but a TMP next to a document you were editing can sometimes recover lost work.
- Extension
- .tmp, .temp
- Full name
- Temporary File
- Type
- System and app file
About TMP files
TMP is not a format; the contents depend on the app. Installers unpack files into temporary folders, browsers cache data, and Microsoft Office writes temporary copies such as ~WRL0001.tmp and owner files beginning with ~$ while a document is open. When an app crashes or the computer loses power, those files stay behind.
On Windows, most temporary files live in the folder %TEMP% (inside your user profile's AppData\Local\Temp). The safest way to clean it is Settings > System > Storage > Temporary files, which skips files still in use. Deleting a TMP that a running program needs can make it misbehave, so close apps first.
TMP files can help after a crash. If Word closed without saving, try File > Info > Manage Document > Recover Unsaved Documents first; the autosaved copies it offers are better than raw TMP files. As a last resort, copy a recent large TMP from the document's folder, rename the copy with the original extension (such as .docx) and try opening it. That works only when the TMP really is a copy of that document.
What TMP files are used for
- Scratch space for installers, updates and archive extraction
- Autosave and lock files for open Office documents
- Browser and app caches
- Partial copies while files are being saved or downloaded
How to open a .tmp file
Windows
There is usually no need to open a TMP. To peek, open a copy in Notepad. Clean old ones with Settings > System > Storage > Temporary files.
Mac
macOS keeps temporary files in hidden system folders and clears them on restart; a stray .tmp can be inspected with TextEdit.
Recovering work
In Word, Excel or PowerPoint, use File > Info > Manage Document (or Manage Workbook) > Recover Unsaved Documents before trying raw TMP files.
How to convert a .tmp file
A TMP cannot be converted; it is whatever the program wrote. If you know it was a copy of a Word document, rename a copy to .docx and open it in Word; if it does not open, it was not a complete copy.
Never rename the original TMP while the program that made it is still running.
Changing the extension in the file name does not convert the file. See how to change a file extension for when renaming is safe.
Naming and renaming TMP files
- Do not rename or move TMP files used by an open program; close the app first.
- If you recover a document from a TMP, save it immediately under a proper name and location (report-recovered-2025-05-02.docx).
- Files beginning with ~$ next to Office documents are lock files; they disappear when the document closes and can be deleted if the document is not open.
Renaming lots of .tmp files? Use the free online bulk renamer for patterns and numbering, or try File Renamer AI to name each file from what is inside it.
Related file types
A .dat file is a generic data file whose contents depend entirely on the program that created it. It may be text, a video, a game save, a database or an email attachment such as winmail.dat. There is no single DAT format, so the right app depends on where the file came from.
A .bin file is a generic binary file: raw data meant for a program or device rather than for people to read. Common types are CD and DVD disc images (usually paired with a .cue file), firmware updates for routers and other hardware, and game ROMs. What opens it depends on where it came from.
A .crdownload file is an incomplete download in Google Chrome (and Chromium browsers such as Microsoft Edge). Chrome writes the file under this temporary name while it downloads, then renames it to the real file name when it finishes. If the download fails or is canceled, the CRDOWNLOAD stays behind.
A .log file is a plain-text record that a program writes as it runs, usually one line per event with a timestamp, a level such as INFO or ERROR, and a message. Logs help diagnose crashes and failed installs. Any text editor opens them; on a Mac, the Console app is built for reading logs.
Frequently Asked Questions
Is it safe to delete TMP files?
Generally yes for old ones, especially through Settings > System > Storage > Temporary files on Windows. Close programs first so you do not remove files in use.
Can I recover a Word document from a TMP file?
Sometimes. Try Word's Recover Unsaved Documents first; otherwise copy a recent TMP, rename it to .docx and open it.
Why do TMP files keep appearing next to my documents?
Office and other apps create them while files are open. If they remain after closing, the app probably crashed or a sync tool interrupted the save.
Can a TMP file be a virus?
Malware can drop files with any extension, including .tmp, but the extension itself is harmless. Run a security scan if unknown TMP files keep appearing in odd places.