What Is a .DLL File?

A .dll file is a Dynamic Link Library: a file of compiled code and resources that Windows programs load while they run. Many programs can share one DLL, which saves memory and disk space. DLLs are not opened by double-clicking; errors about a missing DLL are fixed by reinstalling the program or runtime that provides it.

Extension
.dll
Full name
Dynamic Link Library
Type
System and app file
MIME type
application/vnd.microsoft.portable-executable
Developed by
Microsoft

About DLL files

DLLs use the same Portable Executable format as .exe files, but instead of starting on their own they supply functions to programs that ask for them. Windows itself is built from thousands of DLLs in C:\Windows\System32, and apps ship their own alongside their .exe. A missing or mismatched DLL produces errors such as 'The program can't start because MSVCP140.dll is missing'.

The correct fix for a missing DLL is to reinstall the app that needs it, or install the runtime it belongs to, such as the Microsoft Visual C++ Redistributable or DirectX from Microsoft's own site. For damaged Windows DLLs, run sfc /scannow in an administrator Terminal. Never download single DLLs from DLL download sites: the files can be outdated, wrong for your system or malicious.

Because programs load DLLs automatically, attackers abuse them: a malicious DLL placed next to a trusted program can run with that program's permissions (DLL sideloading). Do not run or keep DLLs that arrive by email or in unexpected downloads, and do not delete DLLs from Windows or program folders to free space, because the apps that use them will stop working.

What DLL files are used for

  • Shared code used by Windows and installed programs
  • Runtime libraries such as the Visual C++ Redistributable and DirectX
  • Plugins and add-ins for apps like audio workstations and Office
  • Game engines and mod loaders

How to open a .dll file

Windows

DLLs are not meant to be opened. To see version and publisher, right-click it, choose Properties and check the Details and Digital Signatures tabs.

Developers

Visual Studio can inspect DLL resources, and .NET DLLs can be browsed in decompilers such as ILSpy.

Mac and Linux

DLLs are Windows-only; macOS uses .dylib and Linux uses .so files for the same purpose.

How to convert a .dll file

A DLL cannot be converted into an EXE or another format; it is compiled code for Windows. Renaming it to .exe will not make it run and may trigger errors.

If a program says a DLL is missing, reinstall that program or the runtime named in the error (for example the latest supported Visual C++ Redistributable from Microsoft).

Changing the extension in the file name does not convert the file. See how to change a file extension for when renaming is safe.

Naming and renaming DLL files

  • Never rename DLLs in Windows or program folders; programs load them by exact name.
  • If you are a developer, include the architecture or version in build output folders (x64, arm64) rather than in DLL file names, so programs still find them.
  • Be suspicious of DLLs with names that imitate system files (such as kernel32.dll) outside C:\Windows\System32.

Renaming lots of .dll files? Use the free online bulk renamer for patterns and numbering, or try File Renamer AI to name each file from what is inside it.

Related file types

Frequently Asked Questions

How do I fix a missing DLL error?

Reinstall the program that shows the error, or install the runtime it names, such as the Visual C++ Redistributable from Microsoft. Run Windows Update and sfc /scannow for Windows files.

Should I download DLL files from DLL websites?

No. Those files can be wrong, outdated or infected. Get DLLs only by reinstalling the official software.

Can I delete DLL files?

Not the ones in Windows or program folders. Uninstall the program instead and its DLLs are removed with it.

Can a DLL file be a virus?

Yes. DLLs contain executable code, and malware often hides in them. Do not open or keep DLLs from untrusted emails or downloads.

More system and app file extensions · all file extensions