Drop any file to identify it
No upload. No signup. No sending your file halfway across the internet.
We tell you what it is, right here in your browser.
Drop it!
Let go to identify this file.
Couldn't identify this file
Need to convert it? fwip it →
A diff file is a text document showing exactly what changed between two versions of a file. Lines starting with `+` were added. Lines starting with `-` were removed. Context lines (unchanged) provide orientation. The format was invented for Unix in the 1970s and remains the foundation of every version control system.
Git generates diffs internally for every commit, merge, and pull request. `git diff` produces unified diff format. GitHub and GitLab render diffs with colour-coded highlighting. Code review is fundamentally the act of reading diffs and deciding whether the changes are correct.
Diff files can be applied as patches: `patch < changes.diff` applies the changes to the original file. This mechanism powered open-source collaboration before Git — developers emailed patches (diffs) to maintainers, who applied them to the codebase. The format is still used for distributing small fixes and security patches.