🔀

Diff Viewer

Compare two texts side by side or unified, with word-level highlighting inside changed lines and unified patch export.

Utilities v1.0.0 37 uses
Input

Original

Changed

About This App

A proper comparison tool for two versions of anything text-shaped — code, config, prose, query output. It computes a real line diff rather than a naive row-by-row comparison, so an inserted line shifts everything sensibly instead of marking the whole remainder as changed. Inside each changed line it runs a second pass at word level, so you can see the three characters that actually moved rather than re-reading the whole line. View it side by side or as a unified listing, collapse long runs of unchanged context down to a few lines, and ignore whitespace or case when that noise is not what you are looking for. Export the result as a unified diff patch you can hand to git apply, or copy it straight to the clipboard. Everything is computed in your browser.

How to Use

  1. 1 Paste the original text on the left and the changed text on the right
  2. 2 The comparison updates as you type
  3. 3 Switch between Side by side and Unified with the view toggle
  4. 4 Turn on Ignore whitespace or Ignore case to filter out noise
  5. 5 Collapse context to hide long unchanged stretches
  6. 6 Word-level highlights show exactly what moved inside a changed line
  7. 7 Export a unified patch, or copy it to the clipboard
  8. 8 Swap sides if you pasted them the wrong way round
ESC