Text & Code Diff Checker

Compare two texts or files side by side or in unified view, highlight word or line changes, and download the differences as a patch file.

About Text & Code Diff Checker

The diff checker compares an original and a modified version of any text or code. Paste both versions or upload a file into each side, and the changes are highlighted in a side-by-side view with synchronized scrolling or in a single unified view. You can highlight differences word by word or line by line, and ignore case or whitespace changes when they do not matter.

A summary bar shows a similarity percentage and counts of added, deleted and unchanged lines. Swap the two sides, clear them, copy the result as a patch, or download a .patch file. There is also an image mode: load two images and slide an overlay to compare them visually. Files are read in your browser and are not uploaded.

How to use it

  1. Paste or upload the original text on the left.
  2. Paste or upload the modified text on the right.
  3. Pick side-by-side or unified view and word or line highlighting.
  4. Copy the patch or download it as a .patch file.

Questions

Can I ignore formatting-only changes?

Yes. Turn on Ignore Whitespace to skip spacing differences and Ignore Case to treat upper and lower case as equal.

Can it compare images?

Yes. Switch to image mode, load two images and use the opacity slider to overlay one on the other.

Does it merge the two versions?

No. It shows and exports the differences, but it does not merge changes into a combined file.

More Developer & Code tools

Home · All Tools · Blog