Text

Changes

Compares the left text area with the right one by line. A line diff, not a word or character diff. The result updates as you type.

About this tool

You have two drafts and you need to see which lines changed. This page puts the left draft beside the right one and runs a line diff, so a changed line is a whole line, not a highlighted word.

Left red, newline, blue against right red, newline, green keeps red and marks blue removed and green added. The copied result uses -, +, and a leading space on the unchanged line.

The view updates as you type. It does not merge, does not apply a patch, and does not treat near-matching lines as the same. The text stays in the browser.

How to use it

  1. 1

    Paste or type in the left area and the right area. The comparison is by whole line. It is not a word diff and not a character diff.

  2. 2

    In the copied result, an added line starts with +, a removed line starts with -, and an unchanged line starts with a space. Left red then blue against right red then green shows blue removed and green added.

  3. 3

    The view updates as you type. It does not merge the two sides and does not apply a patch. Whitespace is ignored only when the two lines are actually identical. Nothing is uploaded.

What it accepts

The page holds two text areas. The left side is compared with the right side as a sequence of lines. A line that exists only on the right is marked +. A line that exists only on the left is marked -. A line that is the same on both sides is copied with a leading space. Example: left red, newline, blue and right red, newline, green shows blue removed and green added. Spaces inside a line count. Two lines match only when they are identical, so a trailing space is a difference. The page does not merge, does not apply a patch, and does not offer a word or character diff.

Where your data stays

The left and right text areas and the line diff between them stay in this browser. MegaToolkit does not receive either side. The copied result marks added lines with +, removed lines with -, and unchanged lines with a leading space. Closing the tab drops both texts.

Questions

Is this a word diff?

No. The comparison is by line. A word or character diff is not offered. Two lines match only when they are identical.

What do + and - mean?

In the copied result, + marks a line added on the right, - marks a line removed from the left, and a leading space marks a line that is unchanged.

Does it merge or apply a patch?

No. It shows the line diff and updates as you type. It does not merge the two texts and does not apply a patch.

Does whitespace get ignored?

Only when the lines are actually identical. A trailing space makes the lines different. Nothing from the two areas is uploaded.