Text Diff Checker

Compare two texts side by side.

FreeNo accountOn your device

Runs in your browser. How to verify

Loading tool…

About this tool

Paste the original in the left box and the changed version in the right box, then press Run. Lines that match are shown as they are, and lines that differ are marked with - for the original and + for the new version.

How to use

1
Step 1
Paste the original text into the first box.
2
Step 2
Paste the changed text into the second box.
3
Step 3
Press Run and read the result: a leading - marks the old line and + the new one.

How it works

This is a positional diff. Line 1 is compared with line 1, line 2 with line 2, and so on. It does not search for lines that moved. An unchanged line shows with two leading spaces, a changed pair shows as a - line followed by a + line, and extra lines at the end show on their own.

Worked example

One edited line and one added line

Input
Original: red / green / blue Changed: red / yellow / blue / pink
Output
red - green + yellow blue + pink
Walkthrough
Line 2 differs so it appears as - green then + yellow. Blue matches. Pink exists only in the new text, so it appears with +.

Limitations

  • Inserting or deleting a line near the top makes every later line look changed, because lines are matched by position, not by content.
  • No word-level or character-level highlighting.
  • Both boxes must contain text.

Questions

How do I compare two texts online?
Paste one in each box and press Run. Differences are marked with - and +.
Why does every line show as changed?
A line was added or removed near the top and the later lines shifted by one. The tool compares line 1 with line 1, line 2 with line 2.
Does it highlight words inside a line?
No. A whole line is marked when any part differs.
Is my text uploaded?
No. The comparison runs in your browser.

Features

  • Line-by-line comparison
  • - and + markers
  • Runs in your browser

Guides

Related resources

Guides and videos from around the web—opens on YouTube or the publisher’s site.

  • HTML Crash Course For Absolute Beginners

    Traversy Media

    Text on the web often starts as HTML you clean or count.

    Watch on YouTube
  • Learn Regular Expressions - Crash Course

    freeCodeCamp.org

    Regex powers many find/replace and clean-text workflows.

    Watch on YouTube
  • Accessibility

    MDN

    Readable text and case choices matter for inclusive copy.

  • String

    MDN

    JS string methods that mirror case, trim, and split tools.