Diff · macOS

See the differences, side by side, on your own Mac.

Same or different — and where — for text, images, binaries and folders, in a Mac window. What you compare never leaves your Mac (unless you hand it a URL). In the terminal, the free CLI (mrdiff) does it too.

brew install mr-tabata/tap/mrdiff

Free forever · CLI / $29 One-time · up to 2 Macs per license

MrkDiff comparing two config files as text: the differing lines, and the changed characters inside them, are marked (made-up files)

Features

Three-way merge: resolve only the conflicts

Build the result from yours, the common base and theirs. Changes that can be taken automatically are taken; only the conflicting spots are resolved with [Mine] [Theirs] [Both] [Base]. It registers with git mergetool (Settings ▸ Git integration).

MrkDiff with yours, the base and theirs in three columns and the result below; conflicts have Mine, Theirs, Both and Base buttons (made-up files)

Binaries, side by side in hex

Two files in hex and text, changed bytes highlighted. Jump to any difference from the list; if the lengths differ, it says so. Show 8, 16 or 32 bytes per row.

MrkDiff comparing two binary files in hex, changed bytes highlighted, with the number of differing spots and the length difference at the bottom (made-up files)

Images, side by side or overlaid

Compare two images side by side, as an onion-skin overlay, or by wiping between them. Differing pixels are marked, and a tolerance slider ignores tiny shifts. Two slightly shifted images can be aligned automatically.

MrkDiff comparing two screenshots of this site’s top page (16.4 megapixels each) side by side: where the button wording changed (“Download free” to “Download”) and the button colours changed, differing pixels are marked in orange, with the share of differing pixels and the number of spots at the bottom

Folders: read them as a table, pick what to copy

A two-sided table (name, modified, size) you can filter to what differs, what is on one side only, and what is the same. Pick rows with the arrows in the middle, then copy after a confirmation (from the newer side to the older).

MrkDiff comparing two folders as a table: left-only, right-only and differing files are colour-coded, with arrows in the middle for the direction to copy (made-up folders)

In the terminal: images — how many pixels, where first

PNG, JPEG, HEIC, WebP, TIFF, PSD, camera RAW — anything the OS ImageIO can read. It counts pixels, so a one-pixel difference never rounds to “0.0%”.

$ mrdiff before.png after.png
Images differ — 12,481 of 390,000 pixels (3.2%)
First difference at (412, 88)
largest per-channel gap: 41 — --tolerance=41 would call these the same

In the terminal: PDFs — which page, and where on the paper

It answers in millimetres, not pixels. Pages are rendered and compared, so re-flowing the whole file for one fixed word still gives the answer a proofreader needs.

$ mrdiff proof-v1.pdf proof-v2.pdf
PDFs differ — 1 of 12 pages
p.7  2 regions
     top 107 mm, left 25 mm, 71 × 14 mm
     top 205 mm, left 106 mm, 21 × 21 mm

In the terminal: does the live site match its source folder?

--site fetches each git-tracked file from the site and reports what differs or is missing. “Did we forget to deploy this?” becomes a CI check.

$ mrdiff --site https://example.com ./site
changed   index.html
not on site   pricing.html
1 changed, 1 not deployed, 0 could not be checked

In the terminal: over SSH, in both directions

--ssh compares a whole tree both ways, including files on the server that aren’t in the repo. Authentication is your own ssh’s; it never asks for a password.

$ mrdiff --ssh ./site deploy@host:/var/www
changed   config/app.yml
only local (not deployed)   pages/new.html
only on remote (left over?)   backups/customers.sql
1 changed, 1 only local, 1 only on remote

And more in the app

  • Big images, pixel by pixelTwo photos of about 80 megapixels (10,944×7,296, 16-bit TIFF, about 460 MB each) compare in about 2.2 s with mrdiff and about 6 s in the app (a rough figure). At about 20 megapixels, mrdiff takes about 0.6 s. Time grows roughly with the pixel count. (Measured on a Mac with an Apple M4 and 24 GB of memory; mrdiff 0.9.0, MrkDiff 1.7.0.)
  • Terraform, with secrets maskedCompares states and plans resource by resource. Passwords, tokens and sensitive values are always masked and kept out of Diff Time Machine.
  • SQLite, schema onlyCompares tables, columns, indexes, views and triggers side by side. Row data is never read or displayed.
  • Diff Time MachineEvery merge and comparison is saved to a local SQLite store. Scrub a slider back to a past state and restore it in one click (sensitive Terraform files and SQLite row data are kept out of history automatically).
  • Compare with the clipboardPut copied text or an image next to the open file (⌘⇧V). No pasting, no saving.
  • Compare with an SSH hostWrite host:/path to compare a file or folder on a server with your local one.
  • CSV and TSV, cell by cellRows are matched on a key column, so a re-sorted file still lines up. Columns are matched by header.
  • HistoryThe right sidebar lists git, MrkDiff’s own records and macOS file versions; pick two to compare them.
  • Difference mapA thin strip on the right edge shows where the differences are. Click it to jump there, or drag the knob to scroll proportionally.

In the terminal, one command for every kind

Which comparison runs is decided by the content, not the extension. All of this is in the free CLI (mrdiff), MIT licensed.

Files

  • Text and source (character-level highlights)
  • JSON and YAML (structural diff)
  • Images (any format ImageIO can read)
  • PDFs (page and position in mm)
  • Binaries (number of regions, first offset)

Places

  • Two URLs (both fetched and compared)
  • Clipboard vs file or URL
  • A live site vs its git folder
  • A local directory vs a server over SSH
  • Two folders

Looking inside

  • Archives (zip, xlsx, pptx, EPUB, Sketch)
  • Word documents (per paragraph)
  • Fonts (OTF, TTF, TTC, per glyph)
  • Terraform state and plan (secrets masked)
  • SQLite schemas and two PostgreSQL environments

As a tool

  • Exit code 1 when they differ (--exit-code)
  • Machine-readable --json
  • English output; MRDIFF_LANG=ja for Japanese
  • Shell completion (bash, zsh, fish)
  • No account, no telemetry

Pricing

mrdiff (terminal)

Same or different — and where, from the terminal.

Free

Free forever · CLI

MIT License · Source on GitHub

  • Text, JSON, YAML, images, PDFs, binaries
  • URLs, sites, SSH, folders, archives
  • Word, fonts, Terraform, SQLite, PostgreSQL
  • Stays on your machine; a 10-million-line log in 0.7 s
  • Exit codes and --json for pipelines
  • Installs with Homebrew
How to install the CLI

MrkDiff (the app) vs. mrdiff (the terminal)

mrdiff (terminal)MrkDiff
Text diff✓✓
Image diff✓✓
Binary diffSummaryHex, side by side
Folder comparison✓A table, with rows to copy
A window to look at (Mac app)—✓
Three-way merge—✓
Apply a difference to either side (⌘Z to undo)—✓
Diff Time Machine—✓
Terraform & SQLite schema✓✓
PDFs, Word, fonts, archives (zip and more)✓✓
Live sites, URLs, PostgreSQL✓—
Runs in the terminal (pipes, exit codes, --json)✓—
PriceFree$29 one-time

Start with 14 days, free.

Try every feature free for 14 days. If it doesn’t work, you get a refund within 30 days.

How to install the CLI