.BIF

BIF File

BioWare Infinity Engine / Aurora Engine Archive
Ask a question
QUICK ANSWER

A BIF file is a BioWare binary game archive that stores textures, audio, scripts, and area maps for classic RPGs such as Baldur's Gate, Planescape: Torment, Icewind Dale, and The Witcher. It always works alongside a paired .key index file; without it the archive cannot be read. Open and extract BIF files with NearInfinity (cross-platform, free) or WinBIF (Windows, free).

Developer: BioWare Corp. Category: Game Files MIME: application/octet-stream
OPENS ON Windows macOS Linux
Related: .OBB · .PAK · .ROFL · .PACKAGE

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 BIF file format?

A .bif file is a BIFF archive - the primary resource container used in BioWare's Infinity Engine games (*Baldur's Gate*, *Baldur's Gate II*, *Icewind Dale*, *Planescape: Torment*) and later in the Aurora Engine (*Neverwinter Nights*). Every game resource - area layouts, 2DA tables, scripts, textures, sounds - is packed inside one or more .bif files on the game disc or installation.

.bif files never work alone. They are always paired with a .key index file that maps resource names and numeric type codes to their containing BIF and byte offset. The .key is the catalog; the .bif files are the shelves. Resource types are identified by numeric codes rather than extensions: 0x0003 = TGA texture, 0x0004 = WAV audio, 0x03ED = area file.

The format uses a compact 20-byte header followed by a file-entry table and raw data blocks. BIF V1 stores resources uncompressed; the compressed variant BIFCV1.0 applies zlib compression per entry. The Aurora Engine introduced KEY BIF V1.1 with minor structural changes for *Neverwinter Nights*.

.bif files can be inspected and extracted with tools such as NearInfinity, WinBIF, or BIFRip. The format was superseded by ERF (Encapsulated Resource File) in *Dragon Age: Origins* and *Neverwinter Nights 2*. Note that .bif is also used by Roku for Base Index Frame thumbnail data - a completely unrelated format sharing only the extension.

Security & safety

RISK: LOW

BIF files are passive data archives from game installations; they cannot execute and pose no meaningful risk. Modded BIF files from untrusted sources could contain altered game scripts, but not arbitrary code execution.

Format details

in a nutshell
FULL NAMEBioWare Infinity Engine / Aurora Engine Archiveaka BIFF file, BIF archive
DEVELOPERBioWare Corp.since 1998 (Baldur's Gate)
CATEGORYGame Files
MIME TYPEapplication/octet-stream
TYPEbinary proprietary game resource archive
This extension is also used by…
  • TomTom Navigator Information File - Plain-text config/info file used by TomTom GPS devices storing map activation, credentials, or device settings.
  • Roku Base Index Frames (BIF) - Binary image archive used by Roku streaming players to display thumbnail previews during video trick-play (fast-forward/rewind); entirely unrelated to BioWare format.
MAGIC BYTES · FILE SIGNATURE
OFFSET
0001020304050607
HEX
4249464656312020
ASCII
BIFFV1
Compressed variant starts with BIFCV1.0; Aurora engine variant KEY BIF V1.1

Programs that open BIF files

Windows3 apps
BIFRip Free Command-line extraction of resources from BIF archives.
NearInfinity Open-source File → Open game directory → browse BIF contents and export resources.
WinBIF Free Open BIF archive, browse and extract individual resources.
macOS1 app
NearInfinity Open-source Java-based; runs cross-platform. Open game dir and browse BIF resources.
Linux1 app
GemRB Open-source Open-source Infinity Engine reimplementation; reads BIF/KEY natively.

Technical details

deep spec
Byte orderLittle-endian
Magic bytesBIFFV1 (8 bytes) for Infinity Engine; BIFCV1.0 for compressed variant; KEY BIF V1.1 for Aurora Engine
Header size20 bytes
Resource type encodingNumeric type codes (not extensions): e.g. 0x0003=TGA, 0x0004=WAV, 0x03ED=ARE
CompressionNone in BIF V1.0; zlib per-entry in BIFCV1.0
DependencyAlways paired with a .key index file for resource name resolution
Max resource count16-bit count field in header
Typical file size2 MB - 600 MB
Format versionsBIF V1.0 (Infinity Engine, 1998); BIFCV1.0 (compressed); KEY BIF V1.1 (Aurora/NWN, 2002)
Superseded byERF (Encapsulated Resource File) in NWN2 and Dragon Age: Origins
Modding toolsNearInfinity, WinBIF, BIFRip
Released1998 (Baldur's Gate)
Latest versionBIF V1.1 (Aurora Engine, 2002+); BIFCV1.0 (compressed variant)
Specificationgibberlings3.github.io

BIF conversions

Not possible

Community Q&A

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

Frequently asked questions

What game uses BIF files?
Primarily BioWare Infinity Engine games: Baldur's Gate 1 & 2, Planescape: Torment, Icewind Dale 1 & 2, Neverwinter Nights, The Witcher 1, Star Wars: Knights of the Old Republic.
How do I open a BIF file without the game?
Use NearInfinity (free, cross-platform Java tool) - point it at the game directory and it reads the paired .key file to index all BIF archives.
Can I extract files from a BIF archive?
Yes - NearInfinity and WinBIF both allow exporting individual resources. Note that resources have numeric type codes, not file extensions, inside the archive.
What is the difference between a .bif and .key file?
The .key file is a global index listing all resources across all BIF archives with their locations and types. The BIF files hold the actual binary data. You need both.
Is there a .bif file from Roku or TomTom?
Yes - Roku uses .bif for trick-play thumbnail archives (entirely different format), and TomTom GPS devices use .bif for plain-text device info files. Neither is related to BioWare.

References

1IESDP - BIF V1 file format specificationgibberlings3.github.io
2BioWare Aurora Engine KEY/BIF format (NWN wiki)nwn.wiki

Keep exploring

across the database

Top extensions this week

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

Related extensions

.OBBAndroid Opaque Binary Blob (APK Expansion File)
.PAKGame Resource Package (PAK)
.ROFLLeague of Legends Replay
.PACKAGEThe Sims / Maxis DBPF Package (game content & mods) - dominant meaning
.XSBXACT Sound Bank
.SAVSaved Game File

Free file tools

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

Open the toolbox

Browse file extensions A-Z