.TMP

TMP File

Temporary File
Ask a question
QUICK ANSWER

A TMP file is a temporary scratch file a program or the operating system creates to hold working data, such as autosave snapshots, installer payloads, or partial downloads. There is no general "TMP opener": if the program that made it is still running, leave it alone; if it is left over from a closed or crashed app, it is almost always safe to delete. To see what is inside, open it in a text or hex editor like Notepad++ and check the first bytes.

Developer: N/A - generic convention used by Windows, macOS, Linux and thousands of applications Category: System Files MIME: application/octet-stream
OPENS ON Windows macOS Linux
Related: .NOMEDIA · .DLL · .LNK · .PKG

On this page

19k+ extensions indexed
Last reviewed Jul 5, 2026

Not sure what your file is?

Drop any file into our identifier - we read just the first bytes to name the format.

Identify a file

What is the TMP file format?

Files with the .tmp extension contain different types of data stored temporarily. It is a general extension - such files may appear in both text and binary form. There is no specified data structure for .tmp files; the internal format depends entirely on the application that created them.

.tmp files are created by many different programs and are usually stored in the tmp or TEMP folder, for example while:

  • Downloading data from the Internet,
  • Saving backup copies of files,
  • Processing large data files that exceed the available internal memory,
  • Performing auto-save or crash-recovery operations in office and productivity applications.

"Temporary" files are usually kept only for the period during which a given action is being performed, after which they should be automatically deleted. They may contain key data needed for a program to function at a given point in time; therefore, if the origin of such a file is unknown, it should not be deleted manually. On Unix-like systems, .tmp files are also used for inter-process communication and as transient swap or lock buffers.

Because .tmp carries no fixed signature, its actual content can range from plain text to a binary payload - a partially downloaded file can look similar to a .PART file, while an editor’s working copy may internally resemble a .BAK backup. On Windows, stale .tmp files accumulate in the %TEMP% folder and can be cleared safely with Storage Sense or Disk Cleanup. On Linux and macOS, the file command helps identify what a .tmp actually contains.

Security & safety

RISK: LOW

Temp files themselves are inert data, and deleting leftover ones is safe - the main risk is operational, not security: deleting a .tmp that an application is actively using can crash the app or corrupt the document being edited (Windows usually blocks this with a "file in use" error). Malware does sometimes drop executables disguised in Temp folders, which is why antivirus tools watch %TEMP%; a .tmp file cannot run by itself, however. Rule of thumb: close all programs (or reboot), then clean Temp with Storage Sense/Disk Cleanup rather than deleting files one by one.

Format details

in a nutshell
FULL NAMETemporary File
DEVELOPERN/A - generic convention used by Windows, macOS, Linux and thousands of applicationssince 1980s (convention dates back to MS-DOS and early Unix)
CATEGORYSystem Files
MIME TYPEapplication/octet-stream
TYPENo single format - container-agnostic scratch/working data; contents depend entirely on the creating program

Programs that open TMP files

Windows3 apps
7-Zip Open-source Right-click → 7-Zip → Open archive - works when the .tmp is actually a ZIP/Office/installer container.
Notepad Open-source Right-click the .tmp file → Open with Notepad++ to inspect the first bytes; readable text or a known signature (PK, %PDF, JFIF) reveals the real format.
Microsoft Windows (Storage Sense / Disk Cleanup) Built-in Settings → System → Storage → Temporary files (or run cleanmgr) to safely remove leftover .tmp files; not an opener.
macOS1 app
file command (Terminal) Built-in Run 'file something.tmp' in Terminal - prints the detected real format (PDF, JPEG, ZIP…), then rename accordingly.
Linux1 app
file command Open-source Run 'file something.tmp' - identifies the actual content type from magic bytes.

Technical details

deep spec
MIME typeapplication/octet-stream
Internal formatNo fixed structure - inherits the creating application’s format (plain text, binary, archive stream, etc.)
File signature (magic bytes)None - no fixed header; the first bytes mirror those of the actual content type
Text or binaryEither, depending on the creating program; the same extension covers both forms
PlatformCross-platform - Windows, macOS, Linux, and other Unix-like systems all use the .tmp convention
Windows storage pathTypically %TEMP% or %TMP% (resolves to C:\Users\<user>\AppData\Local\Temp)
Linux / Unix storage path/tmp directory, usually mounted as tmpfs (RAM-backed; cleared on reboot)
File lifecycleTied to the creating process or session; intended for automatic deletion when the triggering task ends
Naming conventionOften embeds a PID, random token, or sequential counter (e.g., ~DF1A2B.tmp, tmp8a3f.tmp)
Microsoft Office behaviorWord and Excel prefix temp files with ~$ or ~DF and place them alongside the source document
Auto-save / crash recoveryOffice suites (Word, LibreOffice) write .tmp auto-save snapshots before committing changes to the real file
IPC use on UnixUsed as transient inter-process communication files, advisory lock files, and named-pipe stubs
Archive extraction intermediaryTools such as 7-Zip stage decompressed content in .tmp files before writing the final output
Download stagingBrowsers and download managers write incoming bytes to a .tmp file until transfer completes, then rename it
Cleanup on WindowsStale files removed by Storage Sense, Disk Cleanup, or manually via del /q %TEMP%\*.tmp in Command Prompt
Released1980s (convention dates back to MS-DOS and early Unix)

TMP conversions

Community Q&A

asked by users
Ask a quick question
Get help from people who work with TMP files. Be specific - include your system and software version.
No account needed · answers usually within a day

No questions yet - be the first to ask about TMP files.

Frequently asked questions

Can I delete TMP files?
Yes - any .tmp file not currently in use by a running program is safe to delete. Reboot first to release locks, then use Storage Sense or Disk Cleanup on Windows. Files in use will refuse to delete; skip those.
How do I open a TMP file?
There is no universal opener. Inspect it in a text/hex editor (Notepad++) or run the 'file' command: if the first bytes match a known format (PK = ZIP/Office, %PDF, FF D8 = JPEG), rename the file to that extension and open it normally.
Can I recover an unsaved Word document from a TMP file?
Sometimes. First try Word's own recovery: File → Info → Manage Document → Recover Unsaved Documents (.asd files). Leftover .tmp files in the document folder occasionally hold a full copy - try renaming to .docx (if it starts with PK) or .doc.
Why do TMP files keep coming back after I delete them?
Programs recreate temp files every time they run - that is normal operation. Constant regrowth in %TEMP% just means apps are working; only an abnormally large or fast-growing file (often a logging or updater bug) is worth investigating.
Why is my Temp folder so large?
Crashed installers, updaters and browsers leave staged files behind, and nothing cleans them automatically unless Storage Sense is on. Multi-GB leftovers from failed Windows Update or game installers are common; cleaning Temp is safe.
Are TMP files viruses?
Almost never by themselves - .tmp files do not execute. Malware can hide payloads in the Temp folder, so a detection inside %TEMP% should be cleaned, but an ordinary leftover .tmp is harmless data.

References

1Microsoft Learn - GetTempFileNameA (temp file naming)learn.microsoft.com
2Microsoft Support - Description of how Word creates temporary fileslearn.microsoft.com

Keep exploring

across the database

Top extensions this week

1.AQQAQQ Instant Messenger File
2.CRDOWNLOADChrome Partial Download File
3.JPGJPEG Image
4.PARTPartial Download File
5.MDMarkdown Document
6.EXEWindows Executable (Portable Executable)
7.BINCD/DVD Disc Image (BIN/CUE)
8.DATProgram Data File (generic)
9.RPMSGRestricted Permission Message
10.M4AMPEG-4 Audio File

Related extensions

.NOMEDIAAndroid No-Media Marker File
.DLLDynamic Link Library
.LNKWindows Shell Link (Shortcut)
.PKGmacOS Installer Package
.ETLEvent Trace Log
.ASECAndroid Secure Encrypted Container (apps-on-SD container)

Free file tools

An in-browser file identifier and image converter - everything runs on your device.

Open the toolbox

Browse file extensions A-Z