.dll

What is a .dll file?

Dynamic Link Library · Disk image · Microsoft · 1980s

A DLL is a shared code library that Windows programs load to reuse common functions. You rarely open one directly, but you meet DLLs when software reports a missing or corrupted library file.

Category
Disk image
Type
Binary
Is a .dll file safe to open? A DLL can contain executable code, so never drop unknown DLLs into program folders. Only replace a DLL with one from the official software vendor.

What is a .dll file used for?

A DLL holds code and data that many programs can share, which saves memory and avoids duplicating the same functions in every app.

You do not run a DLL on its own. Programs load the ones they need at runtime, which is why an error about a missing DLL means an app cannot find a library it depends on.

Because many programs share the same DLLs, version conflicts are possible, the old headache nicknamed 'DLL hell'. Modern Windows eases this with side-by-side versioning and per-app copies, but it is why dropping in a DLL from the wrong source can break an app that expected a different version.

DLLs use the same executable structure as EXE files, so they can also carry malicious code if they come from an untrusted place.

How to open a .dll file

The .dll format opens in the following apps, grouped by operating system. If one app does not work, try another from the same list. For a step-by-step walkthrough, see how to open a .dll file.

Windows

  • Loaded by programs, not opened directly
  • Dependency viewers for inspection

macOS

  • Not applicable

Linux

  • Not applicable (uses .so instead)

Web

  • Not applicable

How to convert a .dll file

You can convert a .dll file to Not convertible using a conversion tool or the export menu of an app that opens it.

.dll file signature (magic bytes)

Programs recognise a .dll file by the bytes at the start of the file, not by its name. These are the signatures for DLL. For a full breakdown, see the DLL file signature page.

Hex signatureOffsetNote
4D 5A0'MZ' DOS header (same as EXE)

See the full magic-numbers reference for every format.

Frequently asked questions

What is a .dll file?

A DLL is a shared code library that Windows programs load to reuse common functions. You rarely open one directly, but you meet DLLs when software reports a missing or corrupted library file.

A program says a DLL is missing. What do I do?

Reinstall or repair the program that needs it, or install the matching runtime (such as the Visual C++ Redistributable). Do not download loose DLLs from random sites.

Is it safe to download a DLL file?

No. Third-party DLL download sites are a well-known malware vector, and a mismatched version usually causes more errors than it fixes. Get the file only by reinstalling the software or installing its official runtime.

Related formats

Sources

Details on this page were checked against authoritative references: