Text & Conversion

Text Difference

Compare two texts line by line and mark additions and removals.

Read the guide

Run the tool

The calculation runs in your browser. This tool does not send your input to JVR Software.

More information

Back to the tool

What it is and when to use it

Text Diff highlights where two text samples disagree by line position. It is useful when comparing fixed-format exports, corresponding lines in two generated configs, or a short draft before and after a correction. Meaningful invisible differences such as extra spaces will count as changes.

How it works

The browser splits each input at line boundaries and compares matching positions. A differing entry is shown with the values it found on each side. Position-based comparison is easy to read when the files line up. An inserted line can shift the rest of the comparison.

How to use it

  1. Paste the earlier version on one side and the new version on the other.
  2. Run the comparison and read the first difference in context.
  3. Align the samples or move to a sequence-aware comparison if one insertion causes many subsequent lines to appear changed.

Worked example

Compare three lines named north, central and south with north, east and south. The middle position is different. If you insert east above central instead, both central and south shift to new positions, so the supplied comparison marks more than one line after that point.

Reading the result

A line marked as different means its contents or presence differ at that position. A line with identical visible text may contain different spaces or tabs. If position changes matter less than membership, make separate sorted copies first and compare those.

Common mistakes and limits

Keep original inputs if blank lines and whitespace carry meaning. A side-by-side browser inspection is useful for small examples. Use a sequence-aware diff when reviewing larger code changes, reorderings or shifts caused by multiple insertions and deletions.