.PNF

PNF File

Windows Precompiled Setup Information File
Ask a question
QUICK ANSWER

A PNF file is a binary cache that Windows creates automatically when it processes a driver setup file (.inf). It lives in C:\Windows\inf alongside its paired .inf. You never need to open or edit one - Windows manages PNF files on its own, and deleting them is safe because Windows regenerates them from the matching .inf.

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

On this page

19k+ extensions indexed
Last reviewed Aug 24, 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 PNF file format?

A .pnf file is a Windows system file generated automatically alongside a same-named .inf driver setup file. The name stands for Precompiled INF - Windows creates a .pnf the first time it processes an .inf, storing a binary, pre-parsed version of that file's contents.

PNF files store driver and setup information in binary format, compiled from the source .inf data. For device installation, Windows uses this precompiled version rather than re-parsing the plain-text .inf from scratch each time, which speeds up driver processing. A .pnf is always found beside its matching .inf - for example, oem5.inf has a corresponding oem5.pnf in the same %SystemRoot%\inf\ folder.

PNF files are generated by the system automatically from their companion .inf, so removing them has no adverse consequences for system stability. Windows will regenerate a .pnf the next time the corresponding .inf is processed. Deleting accumulated .pnf files can recover a small amount of disk space, particularly on systems that have had many drivers installed over time.

The binary structure of a .pnf is a Windows-internal format and is not meant to be opened or edited directly. If a .pnf becomes corrupt or stale, Windows simply recreates it from the source .inf.

Security & safety

RISK: LOW

A .pnf is a read-only Windows-internal binary cache and carries no active code. It cannot be executed; it is only read by Windows Setup/PnP during driver processing. Deleting a .pnf is safe - Windows regenerates it. The caution here is: do NOT bulk-delete .inf/.pnf pairs from C:\Windows\inf via a cleaner or antivirus without understanding what they are, since the .inf files themselves are needed to reinstall or roll back drivers. The .pnf files are disposable; the paired .inf files are not.

Format details

in a nutshell
FULL NAMEWindows Precompiled Setup Information Fileaka Precompiled INF file, PNF file
DEVELOPERMicrosoft Corporationsince Windows 95/NT era (generated automatically when an .inf is first processed by Windows Setup)
CATEGORYSystem Files
MIME TYPEapplication/octet-stream
TYPEBinary precompiled/cached representation of a Windows Setup Information (.inf) file
MAGIC BYTES · FILE SIGNATURE
OFFSET
0001
HEX
0103
ASCII
··
A .pnf is a binary file with no printable ASCII magic. In Windows Vista through 8.1 the first two bytes are 01 03 (minor=1, major=3). On Windows 98/XP a different layout was used. The binary structure contains version fields, path offsets (InfName, OsLoaderPath, etc.) and pre-parsed INF data; it is opaque and not meant to be read directly. On Windows 98/XP the WinDirPath field sits at offset 0x58; Vista+ raised it to 0x68.

Programs that open PNF files

Windows2 apps
Microsoft Windows (auto-generated, no user interaction needed) Built-in You do not open a .pnf yourself - Windows reads it automatically when processing the matching .inf. If you need to inspect the underlying driver setup script, open the same-named .inf in Notepad or Notepad++.
Notepad++ (for reading the companion .inf instead) Open-source Open the same-named .inf (not the .pnf) in Notepad++ to read the driver setup script as text. The .pnf itself is binary and not human-readable.

Technical details

deep spec
FormatProprietary binary (Windows-internal INF cache; not a public spec)
Byte orderLittle-endian
File headerFirst two bytes are 01 03 (minor=1, major=3) on Windows Vista through 8.1; earlier layout on Windows 98/XP
Typical file size4 KB - 200 KB (mirrors the complexity of the source .inf)
Paired fileAlways sits beside a same-named .inf (e.g. oem5.pnf ↔ oem5.inf) in the same folder
Default location%SystemRoot%\inf\ or the driver staging store (DriverStore)
Internal fieldsVersion bytes, offsets, then pre-parsed INF section/directive tables; named fields include OsLoaderPath, InfName, SourcePath and WinDirPath
WinDirPath offset0x58 on Windows 98/XP; moved to 0x68 on Windows Vista and later
Error handlingA missing or corrupt .pnf causes Windows to regenerate it from the source .inf automatically
Operating systemWindows (all versions from Windows 95/NT onward)
ReleasedWindows 95/NT era (generated automatically when an .inf is first processed by Windows Setup)
Latest versionN/A (format evolves with Windows; version bytes 01 03 in header on Vista-8.1; not user-visible)

PNF conversions

Community Q&A

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

Frequently asked questions

What is a .pnf file?
A Windows Precompiled Setup Information file - a binary cache automatically created by Windows alongside a driver setup (.inf) file. It speeds up INF processing and is always paired with an .inf of the same name. You never need to create or edit one.
Where are .pnf files stored?
In C:\Windows\inf (also written as %SystemRoot%\inf). This folder holds hundreds of .inf/.pnf pairs for installed drivers and Windows components. It is a protected system folder.
Is it safe to delete .pnf files?
The .pnf files themselves can be deleted safely - Windows regenerates them from the matching .inf. However, do not delete the paired .inf files without care, as those are needed to manage and reinstall drivers.
Can I open a .pnf file?
There is no reason to. It is binary and unreadable. If you want to read the driver setup details, open the same-named .inf in Notepad or Notepad++.
Why does my .pnf file cause a driver error?
A stale or corrupt .pnf can sometimes cause 'INF file not supported' errors in older Setup paths. Deleting the .pnf lets Windows regenerate a fresh one from the .inf. In modern Windows, pnputil /add-driver is more reliable than manual .inf installation.
What is the difference between .inf and .pnf?
The .inf is the plain-text driver setup script (human-readable, editable). The .pnf is its auto-generated binary cache (opaque, not editable). Both sit in the same folder with the same base name. The .inf is the important one.

References

1Microsoft - Overview of INF Fileslearn.microsoft.com
2Wikipedia - INF file (includes PNF context)en.wikipedia.org

Keep exploring

across the database

Top extensions this week

1.AQQAQQ Instant Messenger File
2.CRDOWNLOADChrome Partial Download File
3.PARTPartial Download File
4.EXEWindows Executable (Portable Executable)
5.M4AMPEG-4 Audio File
6.MDMarkdown Document
7.JPGJPEG Image
8.BINCD/DVD Disc Image (BIN/CUE)
9.DATProgram Data File (generic)
10.JSONJavaScript Object Notation 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