Documentation

Folder & hex compare

Give DiffScope two folders and you get a side-by-side tree of every file. Give it two binary files and you get a byte-level hex view that streams from disk, so even very large files open quickly.

Applies to DiffScope v1.5.2 Updated Oct 2026

Folder compare

DiffScope folder compare: a tree of files with name, size and modified columns for each side and a status column in the middle DiffScope folder compare in the light theme
Each row pairs an entry on the left with the same name on the right.

Each side shows the name, size and modified time. The column in the middle shows the status. Sub-folders are scanned recursively, and folders that contain differences are expanded when the comparison opens. On Windows, names are matched without regard to case, so Readme.md pairs with README.md.

Statuses

MarkStatusMeaning
=SameIdentical under the current compare mode. A folder is Same when everything inside it is.
≠DifferentThe files differ, or the folder contains differences.
◀Left onlyExists on the left side only.
▶Right onlyExists on the right side only.
⚠Type mismatchA file on one side and a folder (or link) with the same name on the other.
!ErrorCould not be read, for example because access was denied. Hover the mark for the reason.

The status bar counts each status and shows the path and status of the selected row.

Compare modes

The drop-down in the toolbar sets how two files are judged equal. DiffScope remembers the mode and the filter for next time.

ModeTwo files are the same whenCommand line
Compare contentsEvery byte matches (default). Files of different size are known to differ without being read.--compare=content
Size & dateSizes match and modified times are within 2 seconds of each other.--compare=size-mtime
Size onlySizes match.--compare=size
Contents with rulesThe contents match under your ignore options and comparison rules, so files whose differences are all unimportant count as the same.--compare=rules

Size & date and Size only are much faster on large trees, because no file contents are read.

Filters

The filter buttons choose which rows are shown. The counts in the status bar always cover the whole tree.

  • All: every entry.
  • Differences: everything that is not Same.
  • Same: identical files only.
  • Orphans: entries that exist on one side only.

Folder › Show has more: any mix of statuses (Filter by Status…), files newer on the left or on the right, and hiding empty folders or binary files. Ctrl+F filters the tree by name as you type.

Folders stay visible when something inside them matches the filter. Expand all and Collapse all open or close the whole tree. Click a column header to sort, and drag its edge to resize it.

Filter strings and patterns

Type a filter string in the Filters box and press Enter. Entries are separated by ;. A name or pattern shows only what matches, a leading - hides what matches, and a trailing \ or / means folders: *.c;*.h;-obj\;-*.bak shows C sources and headers and hides the obj folders and backup files. The saved filter list next to it keeps named filter sets, including regular-expression rules. On the command line, use /filters="…" or repeat --exclude once per pattern.

Files ignored by the .gitignore and exclude files of a version-control working copy are hidden by default; View › Hide Ignored Files shows them again.

PatternMatches
*Any run of characters within one name (does not cross /).
?Any single character except /.
**Anything, including /. **/ matches zero or more folders.
[abc], [a-z], [!abc]One character from the set or range, or not in it.
A pattern without /Matches the entry's name at any depth: node_modules, *.obj.
A pattern with /Matches the path from the compare root: build/out, /docs/*.pdf. A leading / is optional.
A trailing /Matches folders only: bin/.

Backslashes count as path separators, so build\out works too. Matching ignores case on Windows.

node_modules; bin/; obj/; *.user; **/generated/*.cs

Opening a file pair

Double-click a file row, select it and press Enter, or use the compare button in the toolbar. The pair opens in a new tab, in the view that fits the files, with the same ignore options; Ctrl+double-click opens it in a new window instead. In that tab, F7 at the last difference offers the next changed file of the folder compare. Files that exist on one side only cannot be opened as a pair. Double-clicking a folder expands or collapses it.

To look without opening, press F3: the peek pane under the tree shows the selected pair as you move through the rows.

Use F7 and Shift+F7 to jump between differing rows (collapsed folders are expanded as needed), and the arrow keys to move through and open or close the tree. All keys are listed in Keyboard shortcuts.

Refresh (F5) scans again, and Swap sides exchanges left and right.

Renamed files

Turn on Folder › Detect Renamed Files and a file that exists on one side only is paired with a file of the same content (or a very similar one) on the other side, shown as renamed or moved. Select two orphans and choose Pair as Renamed to pair them by hand, or Compare These Two to open them.

File operations and sync

  • Copy to Right (Ctrl+Shift+→) and Copy to Left (Ctrl+Shift+←) copy the selected files and folders to the other side. Copy to Folder…, Move to Folder…, Rename… (F2), New Folder… and Delete… (to the recycle bin) are in the Folder menu.
  • Every operation shows what it will do first, and Ctrl+Z or Undo History… takes it back.
  • Synchronize Folders… updates one side from the other (new and newer files), both ways, or makes one side a mirror of the other, after a preview of the plan.
  • File › Patch and Report › Export Report… saves the comparison as HTML, PDF, CSV, XML, JSON or text; Print Report… prints it.

3-way folder merge

Open three folders (base, mine and theirs), for example by dropping them on Home. DiffScope shows one tree with what changed in each file and on which side. Merge All Non-Conflicting takes every file that changed on one side only; a file changed on both sides opens in a 3-way merge tab, or you take mine or theirs for it.

Top level only

Start with --no-recursive to compare only the top level. Sub-folders that exist on both sides are then listed as Same without being scanned.

Hex compare

DiffScope hex compare: offset, hex bytes and ASCII columns for two binary files with differing bytes highlighted DiffScope hex compare in the light theme
Offset, 16 bytes in hex, and the same bytes as ASCII, for each file.

Binary files open in the hex view automatically. Use --hex to force it for text files too. Each row shows the offset, 16 bytes in hex and the same bytes as ASCII. Differing bytes are highlighted in both panes, and the overview strip shows where the differences are.

  • Aligned insertions. When the files differ in size, bytes that were inserted or deleted are lined up, so the rest of the file still compares as equal instead of everything after the change looking different. View › Align Insertions turns this on or off; off, bytes are compared at the same offset, and bytes past the end of the shorter file count as differences.
  • Streaming. The comparison reads the files in chunks, and the view loads only the bytes on screen, so files of hundreds of megabytes open without being read into memory. Rows that are still loading show ยทยท.
  • Very different files. The list of differing ranges stops after 100,000 ranges. The status bar then says list truncated.

The status bar shows the current range ("Difference 2 of 7"), the number of differing bytes, the offset of the first difference, both file sizes and the size difference.

Navigation

  • F7 / Alt+↓ and Shift+F7 / Alt+↑ go to the next and previous differing range.
  • Ctrl+Home and Ctrl+End go to the start and the end.
  • F5 reloads both files; Swap sides exchanges them.

Go to offset

Press Ctrl+G (or click the box in the toolbar), type an offset and press Enter. The byte at that offset is marked. Spaces and underscores are ignored, so 0x1_0000 works.

You typeRead asOffset
0x1F0Hex (0x prefix)496
1F0hHex (h suffix)496
$1F0Hex ($ prefix)496
1f0Hex, because it contains a letter a–f496
496Decimal496
#496Decimal (# prefix)496

Plain digits are always decimal: 10 means 10, not 16. An offset past the end of both files shows the end.

Find bytes or text

Ctrl+F opens the find bar. Search for bytes in hex, with ?? for any byte (DE AD ?? EF), or for text in UTF-8, UTF-16 or Latin-1. F3 and Shift+F3 go to the next and previous match.