ZIP does not merge identical files automatically: the same photo can sit under photos/a.jpg and backup/a.jpg and be stored twice. Find duplicate files in ZIP groups entries by size and CRC-32 straight from the archive index, then confirms each group with SHA-256 before removing anything. The result is a new ZIP; your original is never changed and nothing is uploaded.
What counts as a duplicate
A duplicate is a group of entries whose contents are byte-for-byte identical, regardless of their paths or file names. Two files called report.pdf in different folders may be different versions; two files with completely different names may hold exactly the same bytes. Only the content matters.
This is different from a name collision. A collision is two entries with the same path, which a creator has to rename so neither is lost. Duplicates can have any number of distinct paths and are a space question, not a correctness question.
Directory entries are not treated as duplicates of files. A folder with the same name as a file is a separate entry in the archive.
The two-pass method
| Pass | What it compares | Why it exists |
|---|---|---|
| Quick | Stored uncompressed size and CRC-32 from the central directory | Groups candidates without decompressing anything, so it stays fast on big archives |
| Exact | SHA-256 of the decompressed contents of each candidate | Confirms the bytes really match; CRC-32 alone can collide |
CRC-32 is a 32-bit checksum, which means there are only about 4.3 billion possible values. For large collections, an accidental collision is not impossible, and it offers no protection against someone crafting a collision on purpose. That is why CRC-32 is used to shortlist and SHA-256 is used to decide.
The exact pass has to decompress the candidate entries, so it takes longer than the quick pass. In the project's published engine benchmarks, measured on 2026-11-16, a 100,000-entry archive was inspected in 0.06 seconds; hashing candidates is a separate, heavier step that scales with the amount of data.
Find and remove duplicates step by step
- Open the duplicate finder and choose a ZIP. The index is read first, so entry sizes and checksums are available before any file is decompressed.
- Review the groups. Each shows the paths involved, the size of one copy and the space that would be freed.
- Choose which copy to keep in each group. Keeping the shortest path is a sensible default, but you can pick any entry.
- Run the exact check if you want SHA-256 confirmation before deleting. A quick-pass group that fails it is simply left alone.
- Apply the removals and download the smaller ZIP.
Read the report carefully
- Wasted space counts the extra copies only. A group of three identical 10 MB files wastes about 20 MB, not 30 MB.
- Compression method matters less than you think: duplicates are compared after decompression, so two entries stored differently can still be identical.
- Empty files are all identical. Zero-byte entries are normally skipped as duplicates because removing them saves almost nothing.
- Timestamps are not content. Two entries with the same bytes but different modification dates are still duplicates; the date of the copy you keep is the one preserved.
If you need to know the exact hashes rather than just the groups, ZIP Checksum computes SHA-256, SHA-1, MD5 and CRC-32 for every entry and can export a manifest.
Combine deduplication with other cleanup
Duplicates are only one source of waste. The same archive may also contain macOS metadata, Windows thumbnails, build output or dependency folders. Removing those with Clean ZIP first reduces the number of entries the duplicate scan has to consider, and often frees more space than deduplication itself.
After cleaning and deduplicating, Compress ZIP can try a higher compression level on what remains. It keeps only entries that actually get smaller, so the final report tells you the truth about the savings.
Removing duplicates rebuilds the archive. Entry order, extra fields and timestamps may change, so the result is equivalent in content but not byte-identical to the source.
When duplicates are intentional
- A deliberate backup copy inside the same archive: you may want the second path even though the bytes match.
- Files that must keep different names because another system looks for each path separately.
- Identical placeholders whose presence, not content, carries meaning, such as empty markers in a package.
- Archives that will be compared later by path; removing an entry changes that comparison.
The tool does not delete anything until you confirm. For the wider question of why a ZIP often refuses to shrink, see why your ZIP is not getting smaller.
Why ZIP archives contain duplicates at all
ZIP has no global dictionary and no concept of a file being stored once and referenced elsewhere. Every entry owns its own data, so a creator will happily write the same bytes a hundred times if you add the same file a hundred times. This is mostly harmless: it keeps entries independent and makes extraction simple. It also means the archive can be much larger than the folder it came from.
Duplicates often arrive through ordinary workflows rather than mistakes. Zipping a folder and then zipping a backup of that folder inside it doubles everything. Sending a project with both its source and a packaged copy puts the same assets in two places. Exporting a photo twice under different names creates two entries that no human would spot as identical.
| How the duplicates appeared | Safe to remove? |
|---|---|
| A folder accidentally zipped twice | Usually yes, keep the outer copy |
| An asset bundled in both source and distribution folders | Only if the second path is not required by a build |
| Two versions of a document that happen to be identical today | Think first; they may diverge later |
| Empty marker files with different names | Removing them saves almost nothing and may change meaning |
On the command line you can get a rough picture with unzip -l archive.zip, which lists stored sizes, but comparing content needs hashes. The browser tool does that comparison without extracting entries to disk, which matters when the archive is larger than the free space you have.
A quick way to sanity-check a group is to compare names and timestamps. Two files with identical bytes but very different dates may be a backup worth keeping; two files of the same size and date under different folders are more likely to be a copy. The exact hash makes the decision, but context helps you choose which entry to keep.
Removing duplicates changes which paths exist in the archive. If software expects every path to be present, keep the original as a fallback and test the result before sending it.