How to check if an .exe/.dll is 32 bit or 64 bit?

Open the file with a text editor such as notepad++, the occurrence of  “PE  L” in the first several lines indicates it is 32 bit, while “PE  d†” indicates 64 bit.(reference). Note that in Notepad++, you will see there are two NUL characters between PE and L, or between PE and d†. If you think the pattern cannot be recognized easily in a normal text viewer, you can view the exe file in hex mode of notepad++. There, you will find the x86 pattern is 50 45 20 20 4c 01  and the x64 pattern is 50 45 20 20 64 86 .

 

This is the simplest method to know if a binary is 32 bit or 64 bit.  Other ways include running the program to see if there is “32 bit” alongside the program name in task manager. If so, it is a 32 bit application, otherwise, it is a 64 bit app. But this way to identify if an .exe is 32 bit or 64 bit needs you to run the program. Sometimes, you may not be ready to run the program e.g., the running environment has not been set up. Or, the run time is too short for you to find it in the task manager. And this method is not proper to test if a dll is 64 bit or 32 bit because a dll cannot run by itself. So, it is just a way to determine whether an executable is 32 bit or 64 bit.

There are some tools to detect if a program is 32 bit or 64 bit but that would be too complex. So, just follow the first method to find out if your program is 32 bit or 64 bit on Windows.

Did you like this?
Tip admin with Cryptocurrency

Donate Bitcoin to admin

Scan to Donate Bitcoin to admin
Scan the QR code or copy the address below into your wallet to send some bitcoin:

Donate Bitcoin Cash to admin

Scan to Donate Bitcoin Cash to admin
Scan the QR code or copy the address below into your wallet to send bitcoin:

Donate Ethereum to admin

Scan to Donate Ethereum to admin
Scan the QR code or copy the address below into your wallet to send some Ether:

Donate Litecoin to admin

Scan to Donate Litecoin to admin
Scan the QR code or copy the address below into your wallet to send some Litecoin:

Donate Monero to admin

Scan to Donate Monero to admin
Scan the QR code or copy the address below into your wallet to send some Monero:

Donate ZCash to admin

Scan to Donate ZCash to admin
Scan the QR code or copy the address below into your wallet to send some ZCash:

Leave a Reply