# difftastic

> a structural diff that understands syntax

Source: https://talira.ai/catalog/difftastic-64hrxm0r
Every listing: https://talira.ai/catalog.md

- Kind: Open source
- Types: Command-line tool
- Categories: [developer tools / git / diff](https://talira.ai/categories/developer-tools/git/diff)
- Platforms: macos, linux, windows, cli
- Licence: MIT
- Pricing: Free and open source
- Free tier: yes
- Self-hostable: yes
- Creator: Wilfred

difftastic compares files based on their syntax trees rather than lines. It highlights exactly which pieces of syntax changed, ignores pure reformatting and indentation changes where whitespace is insignificant, and works with git and other VCSs. It supports over 30 languages and falls back to line-oriented diffs for unknown files. Output is for humans; it does not produce patches.

## Links

- Website: https://difftastic.wilfred.me.uk/
- GitHub: https://github.com/Wilfred/difftastic
- Docs: https://difftastic.wilfred.me.uk/

## Ways to install

### Package managers

- [Homebrew](https://talira.ai/catalog/homebrew-djy17yn9.md): <https://formulae.brew.sh/formula/difftastic>[^1]
- [mise](https://talira.ai/catalog/mise-0axr08xw.md): <https://mise-versions.jdx.dev/tools/difftastic>[^2]

## Problems it solves

- a formatter reflowed my code and git diff shows every line as changed
- diff that ignores indentation changes but shows real code changes
- see which expression changed inside a long line
- reviewing a refactor where code moved across lines is impossible with line diffs
- want a diff that understands the programming language
- wrapping a function call over multiple lines makes the diff unreadable
- compare two JSON or code files structurally
- use a smarter diff tool as git difftool

## Features

- syntax-aware diffing
- 30+ languages
- side-by-side display
- git integration
- line-diff fallback

## Capabilities

- Has a command line tool: plan not known

## Trust

Overall: 0.75 out of 1.
Signals: maintenance 1.00, adoption 0.88, momentum 0.74, community 1.00, backing 0.20, extensibility 0.20.

- last commit 9 days ago
- 95 commits in the last 90 days
- latest release 0.72.0 25 days ago
- 26.2k GitHub stars
- 503 contributors
- created by Wilfred

## Alternatives

- [delta](https://talira.ai/catalog/delta-0rr39z93.md): A syntax-highlighting pager for git, diff, grep, rg --json, and blame output
- [Mergiraf](https://talira.ai/catalog/mergiraf-kdd3yy3b.md): A syntax-aware git merge driver for a growing collection of programming languages and file formats

## Sources

[^1]: https://formulae.brew.sh/api/formula.json (checked 21 Nov 2026)
[^2]: https://mise-versions.jdx.dev/tools.json (checked 21 Nov 2026)
