Skip to Content
Sindre Sorhus
Back to Supercharge

Updated

How to Check If Two Files Are Identical on Mac

By Sindre Sorhus, who makes the Supercharge app

With Supercharge

  1. Open the settings of Supercharge, click “Tweaks”, and click “Configure…” next to “Context menu items”.
  2. In the “Main Menu” tab, turn on “Is Identical?”.
  3. Select two or more files in Finder, and right-click them.
  4. 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 “Services › Are Files Identical?”.

Get Supercharge

Elevate your Mac experience

$20, one-time purchase, plus tax where applicable

Requires
macOS 27 or later
Updated
November 2026
Gumroad rating
5.0/5 (288 ratings)

More about Supercharge

Without an app

Use the cmp command in Terminal. Replace the paths with your files, or drag the files into the window:

Terminal
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.