Side-by-side folder diff with hashes, text diff and report export

Folder Compare

Pick two folders to see which files are identical, different, or only on one side, decide equality by size and date, by BLAKE3 hash or by text ignoring whitespace, drill into a file's differences, and export a report or a ZIP of the differing files. Nothing is written back to either folder.

Folders

Choose the left folder

Reads names, sizes and dates; contents are read when compared.

Choose the right folder

Reads names, sizes and dates; contents are read when compared.

Folder Compare

Operator: Abdulla Al Fahad. How tools are built and checked

Two folders that should be the same rarely are: a backup that missed a directory, a deployment that kept an old file, a copy that changed line endings on the way. This page lines the two trees up by relative path and tells you, file by file, whether each is identical, different, or present on one side only, then lets you open any difference to see what changed.

Key features

  • Matches files by relative path and reports identical, different, only-left and only-right, plus which side is newer for changed files
  • Three ways to decide equality: size and modification time, BLAKE3 content hash (computed only when sizes match), or text with line endings and spacing ignored
  • Include and exclude globs, and an option to skip files matched by the .gitignore files found inside either folder
  • A tree that opens on the directories that contain differences and keeps identical branches collapsed
  • Drill-down: line diff for text up to 2 MB, a pixel diff for PNG, JPEG, GIF, WEBP and BMP, and the first differing byte with hex context for other files
  • CSV and HTML reports, and a ZIP of one-sided or changed files; neither folder is modified

How files are matched and what counts as identical

A path is the same on both sides when the relative strings are equal. Names left over on each side are then compared after Unicode NFC normalisation and lower-casing: macOS can store an accented name decomposed (NFD) where Windows and Linux store it precomposed (NFC), so café.txt on one side and café.txt on the other can look identical and still be different strings. With the pairing option on, such pairs are matched and tagged with the reason; with it off they appear as one file only on each side.

In hash mode a pair whose sizes differ is different without reading either file. Equal sizes are hashed with BLAKE3 in 4 MB slices, four files at a time, and the hashes are compared. Size-and-date mode treats equal size and modification times within 2 seconds as identical, a tolerance that covers FAT's two-second timestamps. Text mode normalises line endings, trailing blanks and, optionally, runs of spaces for files up to 8 MB without NUL bytes, and falls back to the hash for the rest.

Glob rules follow .gitignore syntax: a pattern without a slash matches a name at any depth, a leading or inner slash anchors it, a trailing slash limits it to directories, ** spans directories, and a ! line re-includes. Limits: 250,000 entries per folder, text diffs up to 2 MB, a ZIP of at most 512 MB, and 1,200 pixels on the longer image side for the pixel diff.

Common use cases

  • An admin compares a server's /etc backup with the live /etc, hides identical files, and finds one file whose size is the same on both sides but whose BLAKE3 hashes differ, a change a size check would have missed.
  • A developer comparing a release build with the previous one excludes *.map and .DS_Store, then uses the ZIP export to send only the changed files to QA.
  • A designer comparing two exports of an asset folder opens a changed PNG and sees the pixel diff mark a 40 by 12 pixel region where a logo moved.
  • A team moving files from a Mac to Windows finds 14 names that differ only in Unicode normalisation, which explains the duplicates in their sync tool.

How to use this tool

  1. Choose the left folder and the right folder; the built-in example fills both sides with small trees.
  2. Pick how equality is decided, add any include, exclude or .gitignore filters, and choose Compare.
  3. Open directories and click a file name to see its difference.
  4. Read the notes above the tree for entries left out by globs or .gitignore before trusting a short Different list.
  5. Export the CSV or HTML report, or build a ZIP of the files that differ.

Example

The built-in example: two small folders with nine files each side

Left and right hold README.md, build.log, src/util.js and a CHANGELOG that has CRLF line endings on the left only; config/app.yml and src/app.js change port 8080 to 9090; src/old.js exists only on the left and src/new.js only on the right; notes/café.txt is stored as NFC on the left and NFD on the right; docs/Guide.md is docs/guide.md on the right

Summary after Compare in hash mode, then in text mode

Hash mode: 5 identical (two of them the paired name variants café.txt and Guide.md), 3 different (CHANGELOG, config/app.yml, src/app.js), 1 only left, 1 only right
Text mode: 6 identical (CHANGELOG now matches), 2 different, 1 only left, 1 only right
With name pairing off, hash mode: 3 identical, 3 different, 3 only left, 3 only right; text mode: 4 identical, 2 different, 3 only left, 3 only right (café.txt and Guide.md move to the one-sided lists)

Tips for best results

  • Start with size-and-date mode to see the shape of a large comparison in seconds, then rerun in hash mode on the part you care about.
  • Use Text mode for source trees that went through Git on Windows: a file that differs only in line endings drops out of the Different list.
  • Add node_modules and build/ to Exclude before comparing a project folder; they usually hold most of the files and none of the interest.

Common pitfalls

A matching hash and size prove the bytes are equal; matching size and time prove very little. Size-and-date mode can call a file identical after a same-length edit that preserved its timestamp.

Folders chosen through the standard picker omit empty directories, because the browser lists files only. Use the File System Access picker, where available, when empty folders matter.

Common errors and how to fix them

The folder has more than 250,000 entries
Choose a sub-folder, or compare in several passes. The limit exists so the tree and the hashing queue stay responsive in one tab.
That selection is 700 MB; ZIP export is limited to 512 MB
Pick a narrower option, for example only the left-only files, or export the CSV and copy the listed files with your file manager.

Best practices

  • Keep the CSV report next to the backup it describes, so a later comparison can start from the paths that changed.

Choosing a comparison mode

Size and date is the quick look: it reads no file contents, so it costs only the time the browser takes to list the two folders. Hash mode is the proof: it reads only pairs whose sizes match, and files that differ in size are never opened.

Text mode answers a different question, whether the words changed. It forgives line-ending and spacing changes that formatters, editors and Git on Windows introduce, so it is the right mode for source trees and the wrong one for binaries.

Names that differ between macOS and Windows

macOS file systems have historically stored accented names decomposed (NFD) while Windows and most Linux tools write them precomposed (NFC). Two folders synced between those systems then hold files that look identical but compare unequal as strings.

The page pairs such names when the option is on, labels the pair, and counts it under Name variants. Names that collide when letter case is ignored inside one folder are reported separately, because a case-insensitive volume cannot hold both.

Frequently asked questions

Does it report the same files as diff and rsync?

In hash mode it names the same differing and one-sided files as diff -rq and rsync -rcn, including a pair that has the same size and different content. Two cases are reported differently on purpose: names that differ only in case or Unicode normalisation are paired and tagged rather than listed as one-sided, and a file whose only change is its line endings counts as different in hash mode but identical in text mode.

Why is a file I know changed shown as identical?

Either the comparison mode ignored the change (size and date with a preserved timestamp, or text mode with whitespace collapsed), or the file was filtered out. Switch to hash mode, and check the notes above the tree for entries left out by globs or .gitignore.

Can it copy or sync files for me?

No. The page never writes to your folders. It can build a ZIP of the differing files for you to unpack wherever you want.