Compare files by syntax rather than line by line with Difftastic, a structural diff command-line tool.

difftastic.wilfred.me.uk
Difftastic homepage screenshot

About Difftastic

Difftastic is a command-line diff tool that compares files based on their syntax rather than line by line. It parses code with tree-sitter, which lets it show what changed in the code's structure. According to the homepage, this produces diffs that are easier for people to read.

The tool can separate real changes from formatting changes, such as a code formatter splitting an expression across several lines. It can also show when a wrapper has been added around existing code, matching the delimiters exactly. Its output includes the actual line numbers from the before and after files. The homepage lists supported programming languages and file formats, including Python, Rust, TypeScript, JSON, and YAML, and says the full lists are in the manual.

Key features

  • Compares files by syntax rather than line by line
  • Parses code with tree-sitter to identify structural changes
  • Ignores formatting changes such as code split across lines
  • Shows when a wrapper has been added around existing code
  • Displays actual line numbers from both before and after files
  • Supports many programming languages and file formats listed in the manual
Best for: Developers and code reviewers who want to see structural code changes and ignore formatting-only differences from the command line.
Good for
  • Produces diffs that the homepage describes as more accurate and easier to read
  • Can separate formatting changes from changes to what the code actually does
  • Shows the actual line numbers from both versions of a file

Difftastic at a glance

Type
Online tool
Pricing
Not confirmed. Check the site
Platforms
Web
Open source
Not stated
Language
English
Last checked
Oct 6, 2026 · Online when checked
Listed
Oct 5, 2026

Difftastic alternatives

Tools and sites you could use instead, ranked by how closely they match.

All 24 alternatives

Popular in Git & Code Hosting

Well-known listings from the same topic.

All 67

Difftastic FAQ

Which programming languages does Difftastic support?
The homepage lists languages including C++, C#, Clojure, Dart, Erlang, Go, Haskell, Java, JavaScript, Kotlin, Lisp, Lua, OCaml, PHP, Python, R, Ruby, Rust, Scala, and TypeScript. It states that the full list is in the manual.
Does Difftastic work with Git?
The homepage says it works with Git and links to git configuration instructions in the manual.
Is something wrong or out of date?

Tell us and an editor will check it.

Own this website?

Claim the listing and suggest updates yourself. An editor checks every claim first.

Claim this listing