Duplicate files (general)

Find Duplicate Files on Mac With Smart Folders (Built-In)

The built-in way to find duplicate files on Mac using a Smart Folder is surprisingly capable — until it isn't. Finder can surface files that share the same name or size, but it cannot tell you whether two identically-named files actually contain the same content. Understanding that distinction before you start deleting anything will save you a lot of regret.

What Is a Smart Folder in macOS Finder?

A Smart Folder is a saved search, not a real folder. It queries your file system in real time every time you open it and displays whatever matches your criteria. Because it is just a view, opening or deleting files inside a Smart Folder affects the originals in their real locations — nothing is copied or moved. That matters when you are hunting for duplicates: deleting something here deletes it permanently from wherever it actually lives.

Smart Folders are stored in ~/Library/Saved Searches/ as .savedSearch files. You can safely remove one if you no longer want the saved query; that only removes the shortcut, not any files it found.

How to Create a Smart Folder to Find Duplicate Files by Name

The most practical built-in approach is to search for files whose names contain a pattern macOS attaches when it detects a conflict — strings like "copy", "copy 2", or a number in parentheses such as "filename (1).pdf". AirDrop, iCloud Drive, and Downloads folders are common places these appear.

  1. Open a Finder window.
  2. Choose File → New Smart Folder (or press ⌘ Option N).
  3. Click the + button in the top-right corner to add a search rule.
  4. In the first pop-up, choose Name. In the second, choose contains. In the text field, type copy.
  5. Click + again. Hold Option — the + turns into a button — click it to create an Any (OR) group.
  6. Inside the group, add a second rule: Name contains (1), and a third: Name contains (2). This catches common numbering patterns.
  7. Click Save, name it something like Duplicate Candidates, and check Add To Sidebar so it is easy to revisit.

The result is a live list of files whose names match those patterns — across your entire Mac or within whatever scope you set at the top of the search bar.

How to Filter by File Size to Find Identical-Sized Files

Another angle is to narrow a search to a specific file size. If you already suspect you have multiple copies of a large video or disk image, you can add a File Size rule:

  1. In your Smart Folder search rules, click + and choose Other… from the attribute list.
  2. Search for File Size and add it.
  3. Set the operator to is equal to and enter the size in KB or MB.

Combined with a kind filter (e.g., Kind is PDF), this can narrow things down quickly for a specific use case. It is not a general-purpose duplicate scanner, but for a one-off hunt it works.

Using Terminal to Find Duplicates by Name

If you prefer the command line, find combined with sort and uniq can list files whose names appear more than once beneath a directory:

find ~/Downloads -type f -printf "%f\n" 2>/dev/null | sort | uniq -d

On macOS, find does not support -printf (that is a GNU extension). Use this instead:

find ~/Downloads -type f -exec basename {} \; | sort | uniq -d

This prints only the filenames — not the paths — that appear more than once. To see the full paths for a specific duplicate name (say, report.pdf), run:

find ~/Downloads -name "report.pdf"

You can broaden the scope from ~/Downloads to ~ for your entire home folder, though the scan will take longer.

The Real Limits of Smart Folders for Finding Duplicates

Here is where honesty matters. Smart Folders and Terminal name-matching share the same fundamental constraint: they match metadata, not content. Two files with completely different names can be bit-for-bit identical. Two files with the same name can have totally different contents — a common situation with templates, invoices, or screenshots taken on different days.

Method Matches on name Matches on size Matches on content (byte-level) Works without extra software
Smart Folder Yes Yes No Yes
Terminal find + uniq Yes With extra flags No Yes
Content-aware duplicate finder Yes Yes Yes (hash comparison) No — requires a dedicated tool

The practical implication: a Smart Folder search for files named "photo copy.jpg" will miss two identically-sized JPEGs sitting in different folders under different names, even if they are pixel-perfect copies of each other. For a thorough duplicate sweep — especially across a photo library or a Downloads folder that has grown for years — metadata matching alone will leave real duplicates behind.

What You Can Safely Delete (and What to Leave Alone)

Before removing anything a Smart Folder surfaces, check what it actually is:

  • Safer to remove: Files in ~/Downloads that you deliberately placed there and clearly have copies of elsewhere. Installer packages (.pkg, .dmg) you have already run. Archive files you have expanded.
  • Check before removing: Files inside ~/Documents or ~/Desktop — a "copy" suffix does not always mean the original still exists intact.
  • Leave alone: Anything inside ~/Library, /Library, or /System unless you know precisely what it is. Application support files, preference plists, and caches often have names that look like duplicates but serve distinct purposes.

Cleaning is permanent. macOS does move deleted files to the Trash, so you have a recovery window — but once you empty it, the files are gone. There is no undo.

When a Built-In Approach Is Not Enough

If you want content-aware duplicate detection — finding files that are truly identical regardless of name or location — you need a tool that hashes file contents and compares the results. Crumb takes that approach in its Duplicates tab, scanning by actual file content so that a photo named IMG_4821.jpg and a renamed copy called vacation-beach.jpg are correctly identified as the same file. It also shows you what each duplicate is and where it lives before you commit to removing anything, which matters when cleaning is irreversible. You can download Crumb and run a scan for free.

Conclusion

Smart Folders are a genuinely useful starting point for finding duplicate files on Mac — they require no installation, update in real time, and work well when you know the naming pattern you are looking for. Their hard limit is that they match on name and size, not on what the file actually contains. Use them for quick, targeted hunts (recent downloads, files with "copy" in the name), pair them with Terminal when you need more control, and reach for a content-aware tool when you need to be thorough. Whatever you use, verify before you delete.

Reclaim your disk in one click

Crumb audits your whole Mac, tells you what's safe to delete, and frees the space in seconds — private, local, and Apple-notarized.

Download Crumb for macOS

Frequently asked questions

Can macOS Smart Folders find exact duplicate files?
Smart Folders can match files by name and size, but they cannot compare file contents. Two files with different names but identical data will not be flagged, and two files with the same name may contain completely different content. For true content-aware duplicate detection you need a dedicated tool.
Where are Smart Folders stored on Mac?
Smart Folders are saved as .savedSearch files in ~/Library/Saved Searches/. Deleting a Smart Folder file only removes the saved query, not any files it was displaying.
Is it safe to delete files found by a Smart Folder?
It depends on what the files are. Files in ~/Downloads that you have clear copies of elsewhere are generally safe to remove. Avoid deleting anything inside ~/Library, /Library, or /System without knowing exactly what it does. Deletions move files to the Trash first, so you have a recovery window before you empty it.
What Terminal command finds files with duplicate names on Mac?
Run: find ~/Downloads -type f -exec basename {} \; | sort | uniq -d — this prints filenames that appear more than once under ~/Downloads. Replace ~/Downloads with ~ to search your entire home folder.
What is the difference between a Smart Folder and a real folder in Finder?
A Smart Folder is a saved search that shows results matching your criteria in real time. It does not store copies of files — everything it shows lives in its original location. Moving or deleting a file inside a Smart Folder affects the original file directly.