Text comparison tool

Text Diff Checker

Compare two versions of a text and see exactly which lines changed. Both texts are processed in your browser and never uploaded, so confidential documents stay on your device.

Lines are compared in order. Removed lines start with - and added lines start with +.

Result

Differences appear here after you compare.

How to compare two texts

Paste both versions and compare

Paste the earlier version into the Original text field and the newer version into the Changed text field, then click Compare texts. If both fields are empty, the tool shows "Add text to at least one field before comparing." Comparing against one empty field is allowed and marks every line of the other text as added or removed.

Read the result

The result lists every line of the comparison in order. Lines that start with - exist only in the original text and were removed. Lines that start with + exist only in the changed text and were added. Lines with no marker are the same in both versions. The status line reports how many lines were added and how many were removed; identical texts show "No differences found."

Copy result and Clear text

Copy result places the comparison on your clipboard as plain text, with a one-character prefix on each line: + for added, - for removed, and a space for unchanged. Clicking it before comparing shows "Compare texts first before copying." Clear text empties both fields and the result and returns focus to the Original text field.

How line-by-line comparison works

Whole lines, compared in order

The tool compares whole lines, not words or characters. It finds the longest sequence of lines the two texts share, keeps those as unchanged, and marks every other line as removed or added. Order is always preserved, and an edited line appears as one removed line followed by one added line — there is no separate "changed" state.

Line endings

Windows (CRLF), old-Mac (CR), and Unix (LF) line endings are all accepted, and two lines with the same text compare as equal regardless of which ending they use. A single trailing newline is ignored, so it never appears as a phantom difference.

Exact comparison

Line comparison is exact and case-sensitive, including spaces and punctuation. Two lines that differ only by a trailing space are different lines. There are no ignore-case or ignore-whitespace options; if you need to normalize text first, do it before comparing.

Worked example

Original (three lines):

  1. 1. Hello world
  2. 2. The quick brown fox
  3. 3. Same closing line

Changed (four lines):

  1. 1. Hello world
  2. 2. The quick red fox
  3. 3. A brand new line
  4. 4. Same closing line

Result:

  1. 1. Hello world (unchanged)
  2. 2. - The quick brown fox (removed)
  3. 3. + The quick red fox (added)
  4. 4. + A brand new line (added)
  5. 5. Same closing line (unchanged)

The status reports 2 lines added, 1 line removed. The removed line always appears before the added lines that replace it.

Counts and limits

What the counts mean

Lines added counts lines that appear only in the changed text; lines removed counts lines that appear only in the original text. Unchanged lines are shown in the result but not counted in the status.

Practical limits

Comparison work grows with the number of differing lines in both texts, so very large texts with many changes take longer. Capacity and speed depend on your browser and device — no fixed maximum is promised. The copied result is plain prefixed text for reading and sharing; it is not a .diff or .patch file for tools like git.

Private, browser-based text comparison

Both texts and the comparison result are processed in this browser. They are not uploaded or sent to a 247 Tools server, and the tool does not save comparison history — which matters when you are comparing contracts, legal or medical documents, source code, or anything else confidential. Copy result writes only the current result to your system clipboard when you choose it. Clear text removes both texts and the result and refocuses the first field; it does not clear the system clipboard.