Diff Tools

diffoscope – in-depth comparison of files, archives and directories

diffoscope investigates what makes two files or directory trees different. Rather than stopping at the outer file format, it recursively unpacks archives and transforms recognised binary formats into more human-readable representations before comparing their contents.

This makes it particularly valuable for reproducible-build investigations, package analysis and other situations where superficially similar artefacts need to be examined deeply. It can work directly with complex objects such as package archives, filesystem images, executables, office documents and compressed files.

This is free and open source software.

Key Features

  • Recursively examines archives and nested containers instead of comparing only their outer bytes.
  • Transforms supported binary formats into representations that expose meaningful internal differences.
  • Produces terminal text reports and HTML reports.
  • Supports directories, Git repositories, tar archives, ZIP archives, ISO images and numerous compressed formats.
  • Understands Linux filesystem images and several firmware and boot-image formats.
  • Handles executable and object formats including ELF, PE, WebAssembly and LLVM bitcode.
  • Supports Android APK, DEX, boot image and package resource table data.
  • Understands many document, database and structured-data formats including PDF, DOCX, ODT, SQLite, JSON, XML and HTML.
  • Supports language-specific artefacts including Python bytecode, Java classes and modules, OCaml interfaces and Rust objects.
  • Can inspect fonts, image formats, multimedia metadata, packet captures, cryptographic files and package formats.
  • Falls back to hexadecimal comparison when no more specialised comparator is available.
  • Uses fuzzy matching to pair files that appear to have been renamed.
  • Provides meaningful exit status codes for use in scripts and automated build checks.

Website: diffoscope.org
Support:
Developer: Many contributors
License: GNU General Public License v3.0

diffoscope
Click for full size image

diffoscope is written in Python. Learn Python with our recommended free books and free tutorials.


Related Software

Terminal-Based Diff Tools
difftasticStructural diff tool that compares files based on their syntax
hunkTerminal diff viewer with syntax highlighting and side-by-side views
diff-so-fancyAttractive diffs with diff-highlight and more
deltaViewer for git and diff output
icdiffAn improved colored diff
diffoscopeIn-depth comparison of files, archives, and directories
colordiffWrapper for diff with pretty syntax highlighting
diffsitterSemantic diff tool
objdiffLocal diffing tool for decompilation project
ydiffTool to view colored, incremental diff in a version controlled workspace
diffrWord-by-word diff highlighting utility
dyffdiff tool for YAML files
WdiffWordwise implementation of diff
dwdiffdiff program that operates at the word level
diffymlCompares YAML documents by their structure
oyoStep-through diff viewer
diff2html-cliGenerate HTML diffs
biodiffTerminal-based binary diff viewer
dirdiffCompute the differences between two directories
csvdiffFast diff tool for comparing CSV files
VBinDiffVisual binary diff
riffWrapper around diff
csv-diffDiffing CSV and JSON files
xmldiffCompare XML documents
PatdiffFile diff using the Patience Diff algorithm
dead-ringerBinary diff utility
sesdiffGenerates a shortest edit script
semdiffSemantic diff tool written in Rust

Read our verdict in the software roundup.


Best Free and Open Source Software Explore our carefully curated directory of recommended free and open source software, covering every major software category.

The directory forms part of our extensive collection of articles for Linux enthusiasts. It includes hundreds of detailed reviews, together with free and open source alternatives to proprietary software from companies such as Google, Microsoft, Apple, Adobe, IBM, Cisco, Oracle, and Autodesk.

LinuxLinks also covers interesting projects worth exploring, Linux-compatible hardware, free programming books and tutorials, and much more.

Know a useful free and open source Linux application that we haven’t covered? Tell us about it using our submission form.
Subscribe

Please read our Comment Policy before commenting.

Notify of
guest
0 Comments
Oldest
Newest Most Voted