Guides
New to DiffScope? Read Getting started below first. After that, each page covers one part of the app.
Text compare
Side-by-side diff, ignore options, editing, copying blocks and saving.
Read the guide3-way merge
Resolve conflicts, edit the output, save, and the exit codes it reports.
Read the guideFolder & hex compare
Folder trees, filters, sync and file operations, and byte-level binary compare.
Read the guideCommand line
Every switch, headless mode, settings overrides and exit codes for scripts.
See the referenceKeyboard shortcuts
All the keys for each view, the menu bar and your own key bindings.
See the keysGetting started
DiffScope runs on Windows and on Debian or Ubuntu Linux. It needs no account and connects to the network only for update checks on Windows, which are off unless you turn them on.
Requirements
- Windows 10 or 11, 64-bit (x64). The installer is 107.7 MB; no admin rights are needed.
- Linux: Debian 12 or newer, or Ubuntu 22.04 LTS or newer, 64-bit (amd64). The package is 120.1 MB and installs with
sudo.
Download and install
On Windows:
- Download
DiffScope-Setup-1.5.2.exe. The download page lists its SHA-256 checksum if you want to verify the file. - Run the installer. It installs to
%LOCALAPPDATA%\Programs\DiffScope, adds Start-menu and desktop shortcuts and thediffscopecommand; no admin rights needed. - DiffScope starts when setup finishes and the home screen opens. Later, start it from the Start menu or the desktop shortcut.
Windows protected your PC
The installer is not code-signed yet, so SmartScreen may warn when you run it. Click More info, then Run anyway. To be sure the file is the one we published, check the SHA-256 on the download page first.
On Debian or Ubuntu:
- Download
diffscope_1.5.2_amd64.deb. - In a terminal in your download folder, run
sudo apt install ./diffscope_1.5.2_amd64.deb. apt also installs the few system libraries DiffScope needs. - Start DiffScope from the applications menu, or type
diffscopein a terminal.
Change settings on the settings page (Tools › Settings, Ctrl+,); they are saved in %APPDATA%\DiffScope\settings.json on Windows and ~/.config/DiffScope/settings.json on Linux. Uninstall steps for both systems are on the download page.
The home screen
When you start DiffScope without arguments, Home opens:
- Drop zone
- Drop files or folders here, or click Choose files… (Ctrl+O). The arrow next to it offers folders, your favourite locations and or paste text to compare two snippets.
- Start a comparison
- One card per mode: File compare (Ctrl+O), 3-way merge (Ctrl+Shift+M), Folder compare (Ctrl+Shift+O) and Hex compare (Ctrl+Shift+H). Click a card to pick the files step by step, or drop files onto it to force that mode.
- Recent, Pinned and Sessions
- Your recent comparisons reopen with a click or Enter. Pin the ones you repeat (Ctrl+D), search the list with Ctrl+K, and keep a comparison with its options as a saved session. Missing files are greyed out.
The menu bar lists every command with its shortcut, and the command palette (Ctrl+Shift+P) runs any of them by name. The first start shows a short welcome tour; Help › Welcome Tour shows it again.
Your first comparison
- Drag two files from your file manager onto the DiffScope window. The comparison opens straight away, in a new tab.
- Press F7 to jump to the next difference and Shift+F7 to go back.
- Press Alt+→ to copy the current difference from left to right, then Ctrl+S to save.
- Press Ctrl+T or click + in the tab bar to start another comparison.
Drag and drop
On Home you can drop files and folders anywhere in the window:
| You drop | DiffScope does |
|---|---|
| Two files or two folders | Opens the comparison. |
| One item | Keeps it as the first side and waits for the second; drop or choose it next. |
| Three files | Opens the merge setup with base, mine and theirs guessed from the names (or the dates). Check them, then click Merge. |
| Three folders | Opens a 3-way folder merge. |
| Onto a mode card | Uses that mode, for example a hex compare of two text files. |
A file and a folder, or more than three items, cannot be compared; Home says why.
How DiffScope picks the view
You never choose the mode up front. DiffScope looks at what you open:
- Two folders open the folder compare; three folders a 3-way folder merge.
- Two text files open the text compare. Files that look binary (a NUL byte in the first 8,000 bytes that is not UTF-16 text) open the hex compare.
- Two images (PNG, JPEG, GIF, WebP, BMP, ICO, AVIF, SVG) open the image compare, and
.csv,.tsvor.tabfiles the table compare. - One
.patchor.difffile opens the patch viewer: every file it changes, and what applying it would do. - Base, mine and theirs open the 3-way merge. All three must be text files.
From the command line you can override the choice with --text, --hex, --folder, --table or --image. See the command-line reference.
Tabs and closing
Every comparison opens in a tab of its own, and Home stays open in its tab. A file pair opened from a folder compare gets a new tab too. Ctrl+Tab and Ctrl+1…9 switch tabs, Ctrl+W closes one, and File › Move Tab to New Window gives a comparison a window of its own. If a tab has unsaved edits, DiffScope asks whether to save first.
Comparisons started from the command line or by another program join the running DiffScope as tabs; the program still waits for its own tab and gets that tab's exit code.
Next steps
- Learn the keyboard shortcuts, or run any command by name with the command palette (Ctrl+Shift+P).
- Resolve conflicts in the 3-way merge.
- Script comparisons with headless mode and its exit codes.
