# How to Check If Two Files Are Identical on Mac

Updated: November 24, 2026

- [Supercharge](https://sindresorhus.com/supercharge.md): Elevate your Mac experience. Price: $20, one-time purchase, plus tax where applicable. Platforms: macOS. Get it from: [Gumroad](https://sindresorhus.gumroad.com/l/supercharge?wanted=true), [Setapp](https://go.setapp.com/stp181?refAppID=742&utm_medium=vendor_program&utm_content=button). Free trial: [download](https://sindresorhus.com/supercharge#trial). Requires macOS 27 or later. Size: 10 MB. Free older versions for macOS 26 and 15: [download](https://sindresorhus.com/supercharge#older-versions). Gumroad rating: 5.0/5 (288 ratings).

URL: https://sindresorhus.com/guides/check-if-files-are-identical-mac

Select two files in Finder, right-click, and choose “Is Identical?” from [Supercharge](https://sindresorhus.com/supercharge.md). [Without an app](https://sindresorhus.com/guides/check-if-files-are-identical-mac#without-an-app), run `cmp file1 file2` in Terminal: it prints nothing when the files are identical.

## With Supercharge

1. Open the settings of [Supercharge](https://sindresorhus.com/supercharge.md), click “Tweaks”, and click “Configure…” next to “Context menu items”.
1. In the “Main Menu” tab, turn on “Is Identical?”.
1. Select two or more files in Finder, and right-click them.
1. 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?”.

## Without an app

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

```console
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](https://sindresorhus.com/guides/file-checksum-mac.md) 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.
