.PF

PF File

Windows Prefetch file
Ask a question
QUICK ANSWER

A PF file is a Windows Prefetch file - a system cache created automatically in C:\Windows\Prefetch to speed up application launches. You do not open or manage these files yourself; Windows handles them. In digital forensics they are used as execution evidence, showing which programs ran, when, and how often. Deleting them is safe but pointless - Windows rebuilds them and the next launch of each app is briefly slower.

Developer: Microsoft Category: System Files MIME: application/octet-stream
OPENS ON Windows
Related: .NOMEDIA · .DLL · .TMP · .LNK

On this page

19k+ extensions indexed
Last reviewed Jun 20, 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 PF file format?

A .pf file is a Windows Prefetch cache file - a proprietary binary record that the Windows Prefetcher component generates to speed up program loading. .pf files are created automatically by the operating system and stored in the C:\Windows\Prefetch folder. Each file is named NAME-XXXXXXXX.pf, where the eight-character hex suffix is a hash derived from the executable's full path. Both Windows system services and applications opened by the user generate .pf files.

.pf files significantly speed up the loading process of applications for which they are created. The Prefetch folder and its contents are therefore a part of Windows system optimization technology. Each .pf file records the DLLs and resources the program loaded during its first seconds of execution, so Windows can pre-load those assets on the next launch. On Windows 8.1 and later, .pf files are stored in MAM-compressed form (LZXPRESS Huffman encoding) to save space. Windows overwrites the oldest .pf files methodically to keep the folder within its limit - 128 entries on older releases and 1,024 on Windows 10 and later.

Performing tasks in a Windows environment will result in the Prefetch folder growing in size, sometimes reaching hundreds of megabytes. A large Prefetch folder is not a sign of an improperly configured system - quite the contrary: it indicates the system is well-optimized for application loading. .pf files can be deleted from within Windows, but it is not advised to do so, as Windows will need to rebuild them from scratch and application launch times will temporarily slow down. Digital forensic investigators value .pf files highly: on Windows 8 and later, each file logs up to eight timestamps and a cumulative run count, making .pf a primary artefact for proving which programs ran, when, and how often.

Prefetch function configuration can be modified by editing registry settings under HKLM\SYSTEM\CurrentControlSet\Control\Session Manager\Memory Management\PrefetchParameters. Some applications also accept a /prefetch:<number> command-line argument to control their own prefetch identity.

Security & safety

RISK: LOW

.pf files are inert metadata; they don't execute. Deleting them is safe but usually pointless - Windows rebuilds them and the next launch of each app is briefly slower. The genuine concern is privacy/forensics: because .pf records what ran and when, 'anti-forensic' tools wipe Prefetch, and its absence on a normally-configured system can itself be a red flag. Malware named to mimic system files still leaves a .pf proving it executed.

Format details

in a nutshell
FULL NAMEWindows Prefetch fileaka Prefetch file, SCCA file
DEVELOPERMicrosoftsince Windows XP (2001)
CATEGORYSystem Files
MIME TYPEapplication/octet-stream
TYPEProprietary binary cache file (SCCA), optionally MAM-compressed since Windows 8
MAGIC BYTES · FILE SIGNATURE
OFFSET
04050607
HEX
53434341
ASCII
SCCA
Uncompressed Prefetch: 4-byte little-endian version (0x11=XP, 0x17=Vista/7, 0x1A=Win8, 0x1E/0x1F=Win10/11) at offset 0, then "SCCA" at offset 4. Windows 8.1/10/11 store the file MAM-compressed: it begins with "MAM\x04" at offset 0 and must be decompressed (LZXPRESS Huffman) before the SCCA header appears.

Programs that open PF files

Windows3 apps
WinPrefetchView (NirSoft) Free Open the .pf to see the executable, run count, last-run times and referenced files.
PECmd (Eric Zimmerman) Free Command-line: PECmd.exe -f file.pf (or -d on the Prefetch folder) to parse all metadata, including MAM-compressed Win10/11 files, to CSV.
Windows (the OS itself) Built-in No action needed - Windows creates, reads and maintains .pf files automatically to speed up app launches.

Technical details

deep spec
Format typeProprietary binary cache file; SCCA (SuperFetch Cache Common Architecture) format
Magic bytesSCCA at byte offset 4 (uncompressed); MAM\x04 at offset 0 (MAM-compressed, Windows 8.1+)
Byte orderLittle-endian
EncodingBinary
CompressionNone on Windows XP through 8; LZXPRESS Huffman (MAM wrapper) on Windows 8.1 and later
Format versionsv17 (0x11) XP/2003; v23 (0x17) Vista/7; v26 (0x1A) Windows 8; v30 (0x1E) Windows 10; v31 (0x1F) Windows 11
File naming conventionNAME-XXXXXXXX.pf - 8-character hex hash of the executable's full path appended to the program name
Default storage pathC:\Windows\Prefetch\
Typical file size5 KB - 250 KB per executable
Folder entry limit128 files (Windows XP - 8); 1,024 files (Windows 10 and later)
Run-time recording1 last-run timestamp (XP/Vista/7); up to 8 timestamps plus run count (Windows 8 and later)
Startup trace depthRecords file paths, DLLs and resources loaded within the first ~10 seconds of execution
CreatorWindows OS - Prefetcher component of the Memory Manager; not created by user applications
Forensic relevancePrimary digital forensics artefact for execution evidence: proves a program ran, how many times, and its last eight run times
ReleasedWindows XP (2001)
Latest versionFormat version 30/31 (Windows 10/11); MAM-compressed since Windows 8 (2012)
Specificationwww.forensicswiki.org

PF conversions

Community Q&A

asked by users
Ask a quick question
Get help from people who work with PF 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 PF files.

Frequently asked questions

What is the Prefetch folder full of .pf files?
It's a Windows performance cache. Each .pf records which files an app loaded at startup so Windows can pre-load them next time and launch the app faster.
Is it safe to delete .pf files / clear the Prefetch folder?
Yes, it's safe, but there's little benefit. Windows recreates them automatically and the first launch of each app afterward is slightly slower. They take very little space.
How do I open a .pf file to read it?
Use a parser like NirSoft WinPrefetchView (GUI) or Eric Zimmerman's PECmd (command line). They decode run counts, last-run times and the files the app referenced.
Why do investigators care about .pf files?
Prefetch is execution evidence: a .pf proves a specific program ran on the system, and records how many times and when it last ran - key in incident response and forensics.
Can I open a .pf file by double-clicking it?
No - it's a proprietary binary with no associated viewer. Double-clicking does nothing useful; use a Prefetch parser instead.
Does turning off Prefetch speed up an SSD?
Modern Windows already tunes Prefetch/Superfetch for SSDs automatically. Manually disabling it rarely helps and can slow some launches; leave it on unless a specific issue calls for it.

References

1Forensics Wiki - Windows Prefetch File Formatforensics.wiki
2Eric Zimmerman - PECmd & forensic toolsericzimmerman.github.io

Keep exploring

across the database

Top extensions this week

1.AQQAQQ Instant Messenger File
2.MDMarkdown Document
3.CRDOWNLOADChrome Partial Download File
4.BINCD/DVD Disc Image (BIN/CUE)
5.PARTPartial Download File
6.NOMEDIAAndroid No-Media Marker File
7.RPMSGRestricted Permission Message
8.EXEWindows Executable (Portable Executable)
9.AVIFAV1 Image File Format (AVIF)
10.ICSiCalendar data file

Related extensions

.NOMEDIAAndroid No-Media Marker File
.DLLDynamic Link Library
.TMPTemporary File
.LNKWindows Shell Link (Shortcut)
.PKGmacOS Installer Package
.ETLEvent Trace Log

Free file tools

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

Open the toolbox

Browse file extensions A-Z