.lib Windows or EFI program

Programs & libraries

MIME typeapplication/vnd.microsoft.portable-executable
DescriptionWindows or EFI program
AcronymEFI – Extensible Firmware Interface
CategoryPrograms & libraries
Signature (magic bytes)4D 5A (MZ)
Based onapplication/x-msdownload
Other extensions.cpl, .dll, .drv, .efi, .exe, .ocx, .scr, .sys

Frequently asked questions

What is a .lib file?

A .lib file is a “Windows or EFI program” (MIME type application/vnd.microsoft.portable-executable). EFI stands for Extensible Firmware Interface.

How do I open a .lib file?

This is executable code or a library. Only open such files from trusted sources; to inspect them, use tools such as file, objdump or a hex editor.

How can you tell a genuine .lib file?

By the bytes at the start of the file, the signature (magic bytes): 4D 5A (MZ). On Linux and macOS, file --mime-type example.lib checks the real type regardless of the extension.

Which format is .lib based on?

Technically a .lib file is a subtype of “Windows or DOS program” (application/x-msdownload), so programs for that base format can often read it too.

Which MIME type belongs to .lib?

The MIME type is application/vnd.microsoft.portable-executable. In the Apache web server: AddType application/vnd.microsoft.portable-executable .lib; in nginx: types { application/vnd.microsoft.portable-executable lib; }.

Nearby entries