Difftastic
difftastic.wilfred.me.uk
- Free plan
- Windows
- macOS
- Linux
What Difftastic is
Difftastic is a free, open-source command-line tool that compares files by their syntax rather than relying only on line-by-line matching. It detects a file’s language, parses its code, and compares syntax trees with tree-sitter. The manual lists support for more than 30 programming languages; the site names HCL, HTML, JSON, and YAML among the supported formats. When whitespace or line wrapping changes but an expression stays the same, Difftastic can recognize that and show the files’ actual line numbers. Unsupported formats and extremely large inputs fall back to a conventional line-oriented diff with word highlighting. It supports folder comparisons and syntax highlighting, and can be configured as Git’s external diff command. The manual also provides configuration instructions for Mercurial, Fossil, and Jujutsu. Prebuilt binaries are available for Linux, macOS, and Windows, with package-manager installation options also listed. Difftastic is MIT-licensed. The manual warns that Git 2.43.1 and earlier can crash when an external diff is used after file permissions change.
Who it suits
Difftastic suits developers who want syntax-aware file or folder comparisons from the command line, including those working with Git, Mercurial, Fossil, or Jujutsu. It is available on Linux, macOS, and Windows.
Good to know, and what to watch
- Syntax-aware comparisons recognize unchanged expressions.
- Shows actual line numbers from the files.
- Supports folder comparisons and syntax highlighting.
- Free and open source under the MIT license.
- Unsupported formats use a conventional line-oriented diff.
- Extremely large inputs use a conventional line-oriented diff.
- Git 2.43.1 and earlier may crash after permission changes.
Plans
Every plan and priceDifftastic
Open source
The verdict
Difftastic offers syntax-based comparisons, folder support, and integrations with several version-control tools. Keep its fallback behavior and the documented Git limitation in mind.
What the maker publishes
- Fallback behavior
- For unsupported formats or extremely large inputs, it uses a conventional line-oriented diff with word highlighting. source
- File formats
- The site lists HCL, HTML, JSON, and YAML among supported file formats, and points to the manual for more. source
- Git integration
- Difftastic can be configured as Git’s external diff command and used with Git subcommands. source
- How it works
- It detects a file’s language, parses the code, and compares syntax trees using tree-sitter. source
- Install options
- Prebuilt binaries are published for Windows, macOS, and Linux; the manual also lists package manager installation options. source
- License
- Difftastic is open source software under the MIT license. source
- Notable Git limitation
- The manual warns that Git 2.43.1 and earlier can crash when using an external diff if file permissions have changed. source
- Other version control
- The usage manual links instructions for configuring Difftastic with Mercurial, Fossil, and Jujutsu. source
- Purpose
- Difftastic is a CLI diff tool that compares files based on syntax rather than line by line. source
- Readable changes
- It can recognize unchanged expressions across whitespace or line wrapping changes and shows actual line numbers from the files. source
- Security and compliance
- The maker’s site and manual pages reviewed here do not state security certifications or compliance claims. source
- Support
- The manual identifies GitHub as the place where the project is available and its changelog records features and bug fixes by version. source
- Supported languages
- The manual says Difftastic supports over 30 programming languages. source
Checked against the maker's pages on 5 Oct 2026.