Skip to content
D

Diffr

Yet another diff highlighting tool

by mookidFree

#3058in Developer Tools
0In stores

Description

diffr is a command-line tool that makes diffs easier to read. Line-based diffs can be hard to follow when lines are long or very similar, so…

Highlights

  • Word-by-word highlighting inside each hunk
  • Works as a Unix filter on stdin and stdout
  • Git integration through .gitconfig
  • Colors customizable with --colors
  • Optional line numbers for each hunk

Ratings & Reviews

No ratings yet

Be the first to rate Diffr.

People also visit

W

Webdiff

Two-column web-based git difftool

Utilities
Launch
D

diffle

A keyboard-first diff viewer with LSP support and GitHub integration

Developer Tools
Launch
H

hunk

Review-first terminal diff viewer for agentic coders

Developer Tools
Launch
L

Livediff

Real-time file monitoring with beautiful live diff visualization in the terminal

Developer Tools
Launch
D

diffity-diff

Open the diffity diff viewer in the browser to see your changes

AI Skills
Get
S

SemanticDiff

Programming language aware diffs for Visual Studio Code

Utilities
Launch

Diffr FAQ

What does diffr do?

It highlights diffs at the word level. It recomputes each hunk word by word and marks what changed, which is easier to read for long or very similar lines.

How do I install it?

Install it from the AUR on Arch Linux or from Homebrew, or build it from source with the Rust compiler. The README covers the latest published version and the development version.

How do I use it with git?

Add the section shown in the README to your .gitconfig file, or set it up from the command line, so git sends its diffs through diffr.

Can I change the colors?

Yes. The --colors flag lets you customize removed text, added text and common segments.

How is it different from git's own options?

The README calls diffr an improvement on the diff-highlight script that ships with git. It notes that git itself also offers --word-diff and --color-words.

What are the best Diffr alternatives?

Popular alternatives to Diffr include diffle, hunk and Livediff. See all Diffr alternatives

Developer Stuff

Badges