Use Certutil to Get File Hash

I have been happily using the tiny Bullzip MD5 Calculator to quickly get an MD5 hash directly from the context menu in Windows Explorer.

But what if you need a hash on a where Bullzip isn’t installed? Or a different hash?

Enter certutil, a command-line tool built into Windows. Certutil has many functions, mostly related to viewing and managing certificates, but the –hashfile subcommand can be used on any file to get a hash in MD5, SHA256, or several other formats.

Here is the Help text for –hashfile. Note the available algorithms:


Here’s an example of getting the MD5 hash of a file:

certutil -hashfile C:\bat\crashlog.txt MD5


Leave a Reply

Your email address will not be published. Required fields are marked *

Notify me of followup comments via e-mail. You can also subscribe without commenting.