Compare two texts, line diff

Side-by-side inputs, green/red line diff.

Files stay on your device. No accounts. Free.

Loading tool...

About this tool

Paste the original on the left and the changed version on the right; the diff below shows added lines in green and removed lines in red, computed with a proper longest-common-subsequence algorithm.

Use it for config drift, reviewing edits, comparing API responses or checking what a colleague changed in a snippet, without pasting your text into someone else's server. The comparison runs locally.

How it works

  1. Paste your input, or drop a text file onto the box.
  2. The output updates live as you type.
  3. Copy it to the clipboard, or download it as a file.

Frequently asked questions

How is the diff computed?

With a longest-common-subsequence algorithm on lines, the same family of algorithm git uses. That means it finds the minimal set of added and removed lines rather than marking everything after the first change.

Can I diff configs or code containing secrets?

Yes. Both texts are compared entirely inside your browser and never transmitted, which is the reason to use this over pasting into a random diff site.

Is there a size limit on the texts?

Very large inputs, beyond roughly two thousand lines each, are declined to keep the comparison instant in the browser. For files of that size a desktop diff tool is the better fit.

Related tools

Missing something? Suggest a feature →