# Duplicate Files

Load a whole folder and see groups of files whose content is byte-for-byte identical, with the space they waste. Nothing is uploaded and nothing is deleted: save the keep/duplicate verdicts as CSV or JSON and clean up with your own file manager.

- URL: https://tools.itlibra.com/en/duplicate-files
- On-device・No upload
- Last updated: 2026-11-28

## How to use

1. Drop the folder to check, or click “Choose folder”. You can also pick several files or add folders in multiple rounds.
2. For photos, turn on “Also find similar images” to catch resized or re-saved copies.
3. Review the ignore patterns if needed (.DS\_Store, Thumbs.db, node\_modules and more are excluded by default).
4. Press “Find duplicates”. Files are narrowed by size, then by head and tail, then by a full hash, with progress shown and a Cancel button.
5. Pick the default rule for the file to keep (oldest, newest or shortest path); change a single group with its radio buttons.
6. Save the verdicts as CSV or JSON: group ID, verdict, path, size, modified date and hash. Do the actual clean-up in your file manager.

## Use cases

- Find identical files piling up in backups or photo folders and see how much space you could free
- Tidy a Downloads folder or project archive full of copies of copies
- Review resized or re-saved JPEGs that look the same as the originals
- Find files with identical content under different names — duplicates a name search cannot see
- Produce a keep/remove list as CSV to check with colleagues before cleaning up

## What it does

### Three stages keep reading to a minimum

Only files of equal size are candidates; then the first and last 64 KB are compared; only the survivors are hashed in full with BLAKE3. Files of 128 KB or less are completely covered by the head and tail, so they need no second read. Files that share a size but differ inside are separated reliably by the full hash.

### Tens of thousands of files, read piece by piece

Files are read 8 MB at a time and hashed incrementally in a Web Worker, so the page stays responsive, with progress and a Cancel button. Only file references and hash values are kept in memory.

### Similar images with dHash

Each image is shrunk to a 9×9 grayscale grid and hashed twice — brighter than the right neighbour, and brighter than the neighbour below — as two 64-bit dHashes; images are grouped only when both are close. EXIF orientation is applied. The distance (number of differing bits) threshold runs from 0 to 20 and can be changed after the search.

### No chaining

Similar images are grouped by distance to the first image of the group. If A\~B and B\~C but A and C are far apart, C is not pulled into A’s group, so burst shots or numbered sequences cannot snowball into one group of unrelated photos.

### Keep/duplicate verdicts you can export

Choose a default rule — oldest, newest or shortest path — and override single groups by hand. The CSV is UTF-8 with BOM, and paths starting with =, +, - or @ are neutralised so a spreadsheet cannot run them as formulas.

### Ignore patterns and filters

.DS\_Store, Thumbs.db, desktop.ini, node\_modules and .git are skipped by default. Edit the patterns freely (\* and ? work), and filter the results by path text or minimum size.


## Supported formats

### Files

- Any format (raw content is compared)
- Dropping or choosing folders (relative paths kept)
- Choosing and adding several files

### Similar-image formats

- JPEG
- PNG
- WebP
- GIF (first frame)
- BMP
- AVIF (if your browser can open it)

### Output

- CSV (UTF-8 with BOM)
- JSON


## Capability matrix

| Feature | Support | Notes |
| --- | --- | --- |
| Finding files with identical content | Supported | Size → first/last 64 KB → full BLAKE3 |
| Loading folders (drop or choose) | Supported | Relative paths are kept; browsers do not reveal absolute paths |
| Tens of thousands of files and large folders | Supported | Up to 100,000 files and 100 GB in total, read 8 MB at a time |
| Finding visually similar images | Partial | Handles resizing, re-saving and light colour changes; cannot catch cropping, large rotations or composites. Up to 20,000 images |
| Saving keep/duplicate verdicts (CSV, JSON) | Supported | Default rule plus manual per-group changes |
| Deleting, moving or trashing files | Not supported | A browser cannot delete files safely, so only the verdicts are exported |
| Replacing duplicates with hard links or shortcuts | Not supported | Your files are never modified |
| “Similar” matching for video, audio or documents | Not supported | Only byte-identical content is detected |
| Similarity for images the browser cannot open (e.g. HEIC) | Not supported | Exact-match detection still works |
| Offline use | Supported | Works without a connection once loaded |

## Limits & notes

- Up to 100,000 files and 100 GB in total can be loaded; anything beyond is not loaded and the screen says so.
- Similar-image comparison covers at most 20,000 images (in path order); identical images count once.
- Empty (0-byte) files are not treated as duplicates.
- Nearly single-colour images, images with a brightness change in one direction only, and plain backgrounds with a few small shapes cannot be told apart by a dHash; they are left out of the similar-image check and counted on screen.
- If a file is modified after it was loaded, the result for it is not guaranteed.
- After removing an ignore pattern, load the files again.
- On phones and tablets, choosing folders and comparing tens of thousands of files can be slow. For large collections, use a PC (Chrome, Edge, etc.).

## Privacy & safety

Files are never uploaded: your browser reads and compares them directly on your device. File names, paths, contents and hashes are not sent, stored or included in analytics. The CSV and JSON you save are also created on your device.

## FAQ

### Does it find duplicates with different file names?

Yes. It compares file content (a BLAKE3 hash), not names or dates. Same name with different content stays separate; different names with identical content end up in one group.

### Can this tool delete the duplicates?

No. A browser has no safe way to delete your files. Save the keep/duplicate verdicts as CSV or JSON and review them in Explorer or Finder.

### Could files of the same size but slightly different content be marked as duplicates?

No. Same-size files are compared by head and tail, and if those match the whole file is hashed with BLAKE3 to confirm. A file that differs by a single byte in the middle is separated by the full hash.

### How similar must images be?

Images whose dHash differs by no more than the chosen number of bits (the distance, default 10) are grouped. Lower is stricter, higher is looser, and you can change it after the search.

### How many files or GB can it check?

Up to 100,000 files and 100 GB in total. Files are read 8 MB at a time, so a large file never has to fit in memory at once. The file list still grows with the number of files, and time depends on your storage speed.

### Does a different EXIF orientation make images different?

Orientation is applied before comparing. An image that was physically rotated and re-saved is still found as similar if it looks the same.
