Left ↔ RightDiff Anything 1.5 Smart Diff comparing two TypeScript files with normal syntax highlighting, exact token changes, and the conventional Line Diff option beside it

Comparison and merge tool macOSWindows

Available on macOS and Windows · Available on the Mac App Store and Microsoft Store

Diff AnythingFile and folder comparison for Mac and Windows

Find the changes that matter in your code, files, and folders.

Compare code, spreadsheets, documents, images, archives, and folders in one desktop app. Review exact differences, resolve text conflicts with Pro, and keep compared files on your computer.

See every change. Keep every source local.

Spot meaningful code changes with Smart Diff across 117 editor languages. Switch to Line Diff whenever you want an exact line-by-line review. Both views keep syntax highlighting and editing close at hand.

Excel, OpenDocument, and Apple Numbers workbooks compare stored cell values across formats in a sheet-aware grid, and a CSV or TSV export can be checked against a sheet of the workbook it came from. CSV files compare by row and column. JSON, YAML, and XML compare semantic paths, matching list items by id, Pro adds an interactive three-way merge workspace for text, PDFs switch between rendered-page visual comparison and extracted text, and images offer overlay, swipe, blink, heatmap, and changed-pixel views.

Folder comparison provides two-pane tree and table layouts, global search and filtering, progressive loading, semantic nested-file comparison, moved-file detection, and ignore patterns. Archive mode compares normalized paths and streamed SHA-256 hashes across ZIP/ZIP64/ZIPX, 7z, RAR, TAR families, and standalone compressed streams, including encrypted and supported multipart sets. Pro turns reviewed folder changes into explicit create, update, delete, and move plans with stale-result protection, progress, cancellation, metadata preservation, durable recovery, rollback, and one-click undo.

Keep repeat comparisons ready with Pro: save profiles and rules, return to recent work, and preserve your review state. On Windows, bring comparisons into scripts and everyday source control with the CLI and a Git difftool or diff driver; Pro adds a CI check that can fail only on breaking API schema changes.

Read every result your way. A Blue and yellow difference palette offers an alternative to red and green highlights. The accessible workspace lists each difference in words, with its location and both values, for keyboard review and supported apply actions.

One customer’s experience · 5 out of 5 stars

“Holy smokes, this tool is worth the price just because of the visual diffing alone.”
sddista · Mac App Store, Estonia · Read the review

Why I built it

I built Diff Anything because the useful question is rarely ‘which lines changed?’ It is ‘what changed in the thing I am actually looking at?’

Capabilities

Use the comparison model that matches the material.

Explore local code, spreadsheet, folder, archive, PDF, image, and API comparisons in Diff Anything. Pro adds merge, synchronization, and automation.

Diff Anything image heatmap with changed-pixel, similarity, dimension, alignment, and threshold measurements
Product view Use heatmap, changed pixels, overlay, swipe, or blink while exact visual measurements stay visible.

Language-aware code comparison

Switch between Smart Diff and the conventional Line Diff while keeping normal syntax highlighting, exact source text, editing, moved blocks, wrapping, and compact context visible. Detection uses filenames, extensions, shebangs, and pasted content.

Folder and archive review

Compare folders in two-pane tree or table layouts with global search, filtering, progressive loading, semantic nested-file comparison, moved-file detection, ignore patterns, and direct opening of nested pairs. Archive mode compares normalized paths, types, sizes, link targets, and streamed SHA-256 hashes across ZIP/ZIP64/ZIPX and ZIP-based packages, 7z, RAR, TAR variants, Gzip, Bzip2, XZ, and Zstandard. It supports encrypted ZIP, 7z, and RAR archives plus multipart numbered 7z and common RAR volume sets, with separate in-memory passwords for each side, cancellation, and expansion safety limits; open changed text entries or extract them explicitly. Pro folder synchronization applies reviewed create, update, delete, and move plans transactionally with stale-result protection, progress, cancellation, metadata preservation, durable recovery, restart-safe rollback, and one-click undo.

Connected PDF review

Review rendered PDF pages, move between them, zoom the originals, or switch to extracted text. Visual diff compares page pixels, highlights changed regions, and reports a per-page visual-match percentage; selecting a wording difference keeps Extracted text active. Free shows the first 3 rendered page previews; Pro removes that preview cap.

Browse all Diff Anything capabilities

Workflow

Choose the material, inspect the change, act on it.

  1. Choose sources

    Open files or folders, paste content, or use Pro to load a saved profile with known options.

  2. Select a mode

    Use automatic detection or explicitly choose text, structured, cross-format spreadsheet, folder, archive, document, image, binary, or API comparison. In code comparisons, switch between Smart Diff and conventional Line Diff without changing sources.

  3. Review and resolve

    Navigate stable differences, apply supported changes, or use Pro to resolve three-way conflicts or approve a folder synchronization plan without losing source context.

  4. Save or automate

    Use Pro to export a report or retain a profile, invoke the CLI, or wire the comparison into Git and CI.

Diff Anything PDF Visual diff with rendered-page highlights and a visual match percentage
In practice Visual diff compares rendered pages, highlights changed areas, and reports a per-page visual match percentage.

Go deeper

Every comparison mode, explained.

Popular workflows

Start with the job you need to do.

compare folders on Windows

Compare two folders on Windows and see what changed

Compare two folders (directories) on Windows 10 and 11 with a visual folder diff. Find missing, changed, and moved files in every subfolder, then open any pair to compare the two files.

Open workflow →
compare folders on Mac

Compare two folders on Mac and see what changed

Compare two folders on a Mac with a visual folder diff. Find missing, changed, and moved files in every subfolder, then open any pair to compare the two files.

Open workflow →
Beyond Compare alternative

A Beyond Compare alternative for spreadsheets, archives, and structured files

Compare Diff Anything with Beyond Compare. See where each tool fits, then try Diff Anything free on Windows or Mac for folders, spreadsheets, archives, JSON, and code.

Open workflow →
archive compare tool

Compare encrypted, multipart, and compressed archives by content

Compare ZIP/ZIP64/ZIPX, 7z, RAR, TAR families, Gzip, Bzip2, XZ, and Zstandard locally, with passwords, multipart support, streaming, and explicit safety limits.

Open workflow →
file compare tool

Compare the files developers actually work with

A local file compare tool for cross-format spreadsheets, text, JSON, YAML, XML, folders, archives, documents, images, binaries, and API schemas.

Open workflow →
compare spreadsheets different formats

Compare spreadsheets even when the file formats differ

Compare stored cell values across Excel, OpenDocument, and Apple Numbers workbooks in a private, sheet-aware desktop diff, even when the formats differ.

Open workflow →
three-way merge tool

A local three-way merge tool for Base, Ours, and Theirs

Merge three text files locally on Mac or Windows with Diff Anything Pro. Review Base, Ours, and Theirs, resolve overlapping conflicts, and edit the result without an upload.

Open workflow →
Browse all Diff Anything workflows

How-to guides

Step-by-step help with common jobs.

Start here

Diff Anything guides.

Set up local comparisons, review folders and spreadsheets, resolve merge conflicts, and use Diff Anything with Git and CI.

Open the complete manual

Start your next project

Get Diff Anything.

See every change. Keep every source local. Available on the Mac App Store and Microsoft Store.

Free & Pro: what’s included

Free desktop use lets you try every comparison engine for files up to 5 MiB per side and 10 new comparison sessions per local day; collection previews show the first 100 items and PDF previews show the first 3 pages. The free CLI supports text and JSON. A one-time Pro purchase removes the preview and session limits and unlocks larger sources within technical limits, saved profiles and history, report export, three-way merge, folder synchronization, batch manifests, trusted preprocessors, and every CLI mode.

Privacy and data

No accounts, cloud comparison service, analytics, or telemetry.

Getting started

Your first workflow, explained.

Follow the Diff Anything guide from setup to your first result.

Open the getting-started guide

Common questions

Before you download Diff Anything.

Do compared files leave the computer?

No. Comparison is local. The application has no account, cloud comparison service, analytics, or telemetry.

How does automatic mode choose a comparison?

Compatible spreadsheet formats can use the shared stored-value comparison even when their extensions differ, matching structured formats use their semantic engine, two folders use folder comparison, and other compatible inputs fall back to text. You can always choose a concrete mode.

Can I compare different spreadsheet formats?

Yes. Diff Anything compares stored cell values by sheet and coordinate across Excel, OpenDocument, and Apple Numbers workbooks in any pairing. A CSV or TSV file opened beside a workbook is compared by cell values with one sheet, the first by default; choose another under Compare with sheet. Values are compared as stored text, so 20 and 20.0 count as different. Formulas, formatting, charts, macros, and workbook layout are not compared.

Can Diff Anything be used from Git or CI?

Yes, with the Microsoft Store version on Windows. The CLI supports difference exit codes, machine-readable output, Git difftool configuration, and a Git diff driver for file types you assign in .gitattributes. The free CLI compares text and JSON; Pro adds every other CLI mode, batch manifests with JSON, JUnit, or SARIF output, and --fail-on breaking for API schema checks.

How does three-way merge handle conflicts?

Three-way merge is part of Pro. Choose a common Base for Ours and Theirs. Focused source diffs show what each side changed from Base, and independent line edits, or edits to separate words of the same line, combine automatically. When both sides change the same words, the result is a conflict; a value is never assembled from parts of each side. Overlapping edits offer Ours, Theirs, Ours then Theirs, Theirs then Ours, and Base choices, with conflict navigation, bulk side choices, and reset. The result remains editable and cannot become the current right source while conflict markers remain; saving that modified source is a separate action.

Can folder synchronization be undone?

Yes. Pro folder synchronization previews create, update, delete, and move actions, rejects stale plans, applies the reviewed selection transactionally with progress and cancellation, preserves supported metadata, uses durable recovery journals and restart-safe rollback, and offers one-click undo after a successful synchronization.

Which archives can Diff Anything compare?

ZIP/ZIP64 and ZIPX, ZIP-based packages, 7z, RAR 1.3 through 7, TAR and compressed TAR variants, plus standalone Gzip, Bzip2, XZ, and Zstandard streams. Encrypted ZIP, 7z, and RAR archives are supported, as are numbered 7z and common RAR volume sets. Split ZIP, ACE, ARJ, CAB, ISO/disk images, and filesystem images are not archive-mode inputs.

Which changes can be applied directly?

Selected text, JSON, YAML, XML, environment-file, HTTP-response, and API-schema differences can be applied in either direction. JSON and HTTP targets are edited in place, so their comments, trailing commas, indentation, and layout are kept. YAML and XML targets are rewritten from their parsed data after a confirmation, which drops comments and custom layout. A JSON API schema keeps its layout; a YAML schema is rewritten after a confirmation.

Can I change the red and green difference colors?

Yes. In Settings → Difference colors, choose Blue and yellow. Additions become blue and removals yellow, in light and dark themes. Written difference descriptions provide another way to check what changed. The setting is part of the free plan.

Can I review a comparison without the side-by-side view?

Yes. The accessible workspace (Command-Shift-A on a Mac, Control-Shift-A on Windows) lists every difference in words with its location and both values, and lets you review, ignore, and apply changes from the keyboard. On a Mac it opens automatically when VoiceOver is running.