How to Calculate a File Hash on Mac
Short answer: To calculate a file hash on Mac, you can use Terminal with the "md5" or "shasum" command, or use a tool that computes checksums. JoyClick can compute and copy MD5, SHA-1, SHA-256 and SHA-512 hashes for selected files from the right-click menu.
A file hash is a fixed-length fingerprint of a file’s contents. If two files produce the same hash, their contents match — which makes hashes the standard way to verify a download or a transfer.
What Is a File Hash?
A hash function takes the contents of a file and produces a short, fixed-length value. Change even a single byte of the file and the hash changes completely, so a matching hash confirms the file is identical to the original.
How to Calculate a Hash with Terminal
- Open Terminal Open Terminal from Applications → Utilities.
- Run a hash command Use "md5 filename" for MD5, or "shasum -a 256 filename" for SHA-256.
- Compare the value Compare the printed hash with the published checksum.
How to Calculate a Hash with JoyClick
- Select the files Select one or more files in Finder.
- Open File Hash Right-click and choose Tools → File Hash.
- Pick an algorithm Choose MD5, SHA-1, SHA-256 or SHA-512.
- Copy the result Copy a single hash value, or copy all results at once.
Which Hash Algorithm Should You Use?
- SHA-256 — a common choice for verifying file integrity
- SHA-512 — a longer digest for stronger verification
- SHA-1 — still published for some older downloads
- MD5 — widely published for older downloads and quick checks
How JoyClick helps
JoyClick adds a File Hash tool to the right-click menu. It computes MD5, SHA-1, SHA-256 or SHA-512 for the selected files, and lets you copy a single value or copy all results.
Frequently Asked Questions
Can I calculate a hash without Terminal?
Yes. JoyClick computes MD5, SHA-1, SHA-256 and SHA-512 hashes from the right-click menu, so you do not need to open Terminal.
Can I hash multiple files at once?
Yes. Select several files and JoyClick computes hashes for all of them, which you can copy together.
Is MD5 still useful?
MD5 is still widely published for older downloads and quick integrity checks. For new verification, SHA-256 is the more common choice.
Sources
Last verified: October 2, 2026
Last updated: 2026-10-03
Do this faster with JoyClick
Download JoyClick - Right-Click Tools on the Mac App Store. Requires macOS 14.0+, $8.99 one-time purchase, privacy: Data Not Collected.