Command-line tool
wdiff
brew/wdiff
Checked 25 Oct 2026, 21:09 UTC · Listing refreshed from Homebrew, winget, npm, Scoop and cargo; npm packages checked against OSV.dev
Display word differences between text files
At a glance
- Type
- Command-line tool
- Install on
- macOS, Linux
- Last checked
- 25 Oct 2026, 21:09 UTC
Install it
macOS
brew install wdiff
Linux
brew install wdiff
Compare two files
wdiff path/to/file1 path/to/file2
Ignore case when comparing
wdiff -i path/to/file1 path/to/file2
Display how many words are deleted, inserted, or replaced
wdiff -s path/to/file1 path/to/file2
Related command-line tools
- latexdiff
Compare and mark up LaTeX file differences - texres
Fast TeX engine written in Rust - sqldiff
Displays the differences between SQLite databases - cloc
Statistics utility to count lines of code programming-language cloc count-lines - difftastic
Diff that understands syntax diff tree-sitter - nmh
New version of the MH mail handler - pdf-diff
Tool for visualizing differences between two pdf files - json-schema-diff
A language agnostic CLI tool and nodejs api to identify differences between two json schema files. diff difference…
Listing text is written by the maker; AptLynx lists tools and does not vouch for them. Find another tool · Browse by topic · For agents