Features

Every compare, one fast window.

Text, 3-way merge, folders, raw bytes, tables and images, each in a tab of its own, plus a headless command line for scripts. DiffScope picks the right view for what you open.

Free v1.5.2 Windows and Linux No telemetry

Text compare

See exactly what changed, down to the word

Two files side by side, with the changed words inside changed lines highlighted. Edit either side and save without touching the encoding.

decoder.js (release 2.3) ↔ decoder.js (working copy) — DiffScope
DiffScope text compare: two versions of decoder.js side by side, changed words highlighted in red and green, with a differences overview on the right DiffScope text compare in the light theme: two versions of decoder.js side by side with changed words highlighted

Line and word-level highlighting

The words that differ inside a changed line are marked, so a renamed variable doesn’t hide in a sea of red.

Ignore what doesn’t matter

Ignore whitespace, case and blank lines, comments in 20+ languages, or your own rules for timestamps, IDs and generated text. What a rule explains is dimmed and skipped.

A real editor in every pane

Syntax colouring, find and replace (Ctrl+F), word wrap and go to line. Type straight into either side, copy a block with Alt+←/→, and undo covers both panes.

Saves what it read

UTF-8, UTF-8 BOM, UTF-16 LE/BE and Latin-1 are kept on save, and CRLF stays CRLF. A notice says when only these differ.

Moved code and pretty JSON

Detect Moved Blocks marks code that moved and jumps between the copies. Minified and pretty-printed JSON or XML compare by their real changes.

Huge files, fast keys

200,000-line files stay smooth. F7 / Shift+F7 jump between differences; collapse unchanged lines or switch to a one-pane inline view.

Keyboard shortcuts

3-way merge

Resolve conflicts with the whole picture

Mine, Base and Theirs above the merged result. Changes that don’t overlap merge themselves, so you only spend time on real conflicts.

  • Automatic merge of non-conflicting changes
  • Per conflict: take Mine, Theirs, Mine + Theirs, Theirs + Mine or Base
  • Pick single lines from either side, in the order you want
  • The magic wand resolves conflicts where each side changed different words
  • “Use … for all remaining” resolves every open conflict the same way
  • A “N of M left” counter; F8 / Shift+F8 for the next / previous conflict
  • Edit the result directly, with undo and redo; compare it with base, mine or theirs
  • Exits 0 only when saved with no conflicts left, so calling tools and scripts know the result

Merge guide

3-way merge
3-way merge of uart.c: Mine, Base and Theirs panes above the merged output, with two unresolved conflicts and per-conflict buttons 3-way merge of uart.c in the light theme
5
ways to resolve a conflict
F8
next conflict
0 / 1
exit code: resolved or not

Folder compare

Two whole trees, every difference

See what was added, removed or changed across two whole trees, then open any pair in a new tab with a double-click.

  • Compare by content, size, size and date, or with your comparison rules
  • Filter strings such as *.c;*.h;-obj\, saved filter sets, files your version control ignores hidden
  • Renamed and moved files paired; a peek pane (F3) shows the selected pair
  • Synchronise folders, copy, move, rename and delete, with undo
  • Three folders merge into one tree, file by file
Folder compare
Folder compare of release-2.3 and release-2.4: changed files in red, a left-only build folder and right-only files such as CHANGELOG.md Folder compare of two release folders in the light theme
4
compare modes: content, size, date, rules
6
report formats: HTML, PDF, CSV, XML, JSON, text
Undo
for every file operation

Hex compare

Byte-level compare for big binaries

Firmware images, archives and build outputs. Both files are streamed, never loaded whole, so a 100 MB+ image opens without a stall.

  • Differing bytes marked in the hex and ASCII columns
  • Inserted or deleted bytes are lined up, so the rest of the file still matches
  • Find bytes (DE AD ?? EF) or text with Ctrl+F
  • Go to any offset, in hex (0x1F0) or decimal (496)
  • Jump between differences with F7 / Shift+F7
  • Binary files are detected and open in the hex view automatically
Hex compare
Hex compare of two firmware images with differing bytes highlighted in both hex and ASCII columns Hex compare of two firmware images in the light theme
100 MB+
files, streamed in chunks
16
bytes per row, hex and ASCII
F7
next difference

Tables, images & patches

The files that are not just text

Spreadsheet exports compared cell by cell, pictures side by side, and patch files you can review before they touch anything.

  • CSV and TSV as grids: rows matched by key columns, columns by name
  • Changed cells highlighted, added and removed rows marked
  • Images (PNG, JPEG, GIF, WebP, BMP, ICO, AVIF, SVG) side by side, blended or with a swipe
  • Open a .patch or .diff to see every file it changes, then apply it
  • Every file a commit or a range of commits changed, as a folder compare
Table compare
Table compare of two parts lists: rows matched by part number, changed quantity, price and supplier cells highlighted, a removed and an added row marked Table compare of two parts lists in the light theme
Key
rows matched by columns you choose
8
image formats
Apply
patches, with undo

CLI & automation

The same engines, without a window

With --headless, DiffScope writes a unified diff, a merged file or a folder report and reports the result through its exit code.

  • Standard unified diff output, with -U N context
  • 3-way merge with conflict markers; --diff3 adds the base section
  • Folder report with --folder, --exclude and --compare=content|size|size-mtime
  • Table, folder and changeset reports as HTML, PDF, CSV or text with --report
  • Slash switches such as /base: /mine: /title1: and --long options, freely mixed
  • --set, --settings and --no-settings control saved settings per run
0
Identical, or merged cleanly
1
Different, or conflicts left (written with markers)
2
Error. For a merge, nothing is written

CLI reference

Terminal
# Unified diff of two files
diffscope --headless old/app.js new/app.js > changes.diff

# 3-way merge; conflicts are written with markers (exit 1)
diffscope --headless --merge --base base.c --mine mine.c --theirs theirs.c -o merged.c

# Folder compare by content, skipping build output
diffscope --headless --folder --exclude node_modules --exclude "*.o" v2.3 v2.4 > tree.txt

# HTML report of two folders
diffscope --report report.html v2.3 v2.4

The diffscope command works in any terminal on Windows and Linux and prints there; exit codes work everywhere.

Menus & keys

Set it up once, the way you work

A tab per comparison, a full menu bar, a command palette, and settings that are remembered between sessions.

  • Every comparison in a tab of its own; Ctrl+T opens a new one
  • Saved sessions, recent comparisons, and the last session restored on request
  • Menu bar with every command and its current shortcut
  • Command palette (Ctrl+Shift+P) and your own key bindings, including two-stroke chords
  • Compare options, folder filter and mode, theme and window position are remembered
  • A searchable settings page (Ctrl+,), saved in a plain settings.json file
  • Drag and drop two files or folders anywhere in the window
  • A guided welcome tour, dark, light and high-contrast themes

Keyboard shortcuts

Home
DiffScope Home screen: a drop zone, cards for file, merge, folder and hex compares, and the recent comparisons with a pinned one on top DiffScope Home screen in the light theme with the drop zone, mode cards and recent comparisons
Tabs
one per comparison
1
command palette for every command
1
plain settings.json file

Privacy & quality

Your code stays on your machine. Your merges stay correct.

The app makes no network connections unless you turn on update checks: no telemetry, no account. DiffScope is built carefully because comparison tools need to be trustworthy.

Private by design

Your files stay on your machine. It runs the same on an air-gapped build machine as on your laptop.

No telemetryUpdates off by defaultNo accountWorks offline

Easy to install

Windows: a per-user installer, no admin rights. Debian and Ubuntu: a package that installs with apt.

1,800+

Automated tests

Unit tests and 340+ end-to-end tests of the real app: every view, the command line, screenshots and accessibility.

200k

Large-file tests

200,000-line text, 50 MB+ binary streaming and 100 MB hex compare, end to end.

20,000+

Fuzz cases

Generated inputs for the diff and merge engines, cross-checked byte for byte against independent reference implementations.

Checklist

Everything in version 1.4

Everything below ships today, on Windows and Linux, with the version it arrived in. What’s next is on the roadmap.

DiffScope 1.4 features by area, with the version each one arrived in
FeatureSince1.4
Text compare
Side-by-side diff with line and word-level highlightingSimilar lines paired, whitespace-only changes marked1.0
Ignore whitespace, case and blank linesWhitespace: all, changes only, or leading/trailing1.0
Encoding and line endings preserved on saveUTF-8, UTF-8 BOM, UTF-16 LE/BE, Latin-1; CRLF / LF / CR1.0
Copy blocks left / right, copy and advanceAlt+← / Alt+→1.1
Go to line, compare line endings, clipboard and pasted textCtrl+G, --clipboard, standard input1.2
A code editor in every paneSyntax colouring, find and replace, word wrap1.3
Collapse unchanged lines, inline one-pane view, line details1.3
Comparison rulesPresets, line and text filters, ignored comments, file types1.3
Moved-block detection, manual alignment, prettified JSON / XML1.3
3-way merge
Mine, Base and Theirs above an editable outputNon-conflicting changes merged automatically1.0
Take Mine, Theirs, both, or Base, per conflict or for all remainingAlt+1–Alt+51.0
Exit code 0 only when saved with no conflicts left1.0
Merges without a window, Mark as resolved/automerge, /reviewconflicts1.2
Line picking, the magic wand, compare the result with base, mine or theirs1.3
Open a file with conflict markers and resolve it--resolve FILE1.3
Recovery of an unsaved merge after a crash1.4
Folder compare
Recursive compare by content, size, or size and date1.0
Filters and exclude patternsFilter strings, saved sets, ignore files of version control1.3
Renamed-file detection, peek pane, sortable columnsF31.4
Synchronise folders; copy, move, rename and delete with undo1.4
3-way folder merge and changesets1.4
Hex, tables, images and patches
Streaming hex compare of 100 MB+ files with go to offset1.0
Aligned insertions and byte or text search in hexCtrl+F1.4
Table compare for CSV and TSV, rows matched by key--table, --table-key1.4
Image compare: side by side, blended, swipe1.4
Patch viewer: review and apply .patch / .diff files1.4
Command line and reports
Headless unified diff, merge and folder report with exit codes 0 / 1 / 2--headless, --merge, --folder, --diff31.0
Saved settings from the command line--set, --settings, --no-settings1.1
Patch export and unified diff files/createunifieddiff, -R1.2
Reports as HTML, PDF, CSV, XML, JSON or text, and printing--report1.4
The diffscope command in any terminalWindows installer and Linux package1.4
Window, menus and settings
Menu bar with every command and its shortcut, custom key bindings1.1
Home screen with a drop zone, mode cards and recent comparisons1.3
Tabs, saved sessions, restore last sessionCtrl+T, Ctrl+Tab1.4
Command palette and Quick OpenCtrl+Shift+P, Ctrl+P1.4
Settings page, searchableCtrl+,1.4
Welcome tour, high-contrast theme, screen reader support1.4
Platforms and privacy
Windows 10 / 11 per-user installer, no admin rights1.1
Debian 12+ and Ubuntu 22.04+ package1.4
No telemetry, no account, updates off by default1.0

Try it on your next diff.

Free, private, and no admin rights needed.

107.7 MBWindows 10/11 x64Per-user installer