Updated
How to Check If Two Files Are Identical on Mac
By Sindre Sorhus, who makes the Supercharge app
With Supercharge
- Open the settings of Supercharge, click “Tweaks”, and click “Configure…” next to “Context menu items”.
- In the “Main Menu” tab, turn on “Is Identical?”.
- Select two or more files in Finder, and right-click them.
- If the sizes are different, the menu shows “Not Identical” at once. If not, choose “Is Identical?”. An alert shows “Identical ✓” or “Not Identical”.
The names and the dates of the files are not compared, only the content.
To compare files from different folders, also turn on “Is Identical…”. It opens a window where you can drag more files, and it shows which files are identical.
The right-click items cannot show in synced folders, like iCloud Drive and Dropbox. There, select the files, right-click, and choose
Get Supercharge
Elevate your Mac experience
$20, one-time purchase, plus tax where applicable
- Requires
- macOS 27 or later
- Privacy
- No personal data collected
- License
- All your Macs
- Updated
- November 2026
- Gumroad rating
- 5.0/5 (288 ratings)
Without an app
Use the cmp command in Terminal. Replace the paths with your files, or drag the files into the window:
cmp ~/Desktop/photo.jpg ~/Downloads/photo.jpg
If it prints nothing, the files are identical. If not, it shows the first position that is different, like “differ: char 1, line 1”.
For two text files, diff shows the lines that are different. You can also compare the SHA-256 checksums of the two files.
Terminal is fine for two files now and then. Supercharge checks the files that you select in Finder, without typing paths.
