Text Tools

Text Diff

Compare two texts line by line to identify added, removed, and unchanged lines with counts.

Run tool

This online tool compares two blocks of text line by line to highlight differences between drafts, configuration files, or notes. Paste your original version into the Text A field and the updated version into the Text B field. When you run the comparison, the tool evaluates the text line by line and organizes the output in natural reading order. Each line in the resulting view is categorized clearly as added, removed, or unchanged. Lines present only in Text A appear as removed, while lines present only in Text B appear as added. Matching lines between both inputs are marked as unchanged. In addition to the ordered breakdown, the tool displays summary counts showing the number of added lines, removed lines, unchanged lines, and total difference entries. Leaving both fields empty produces an empty comparison with zero reported changes. If both fields contain identical content, every line is categorized as unchanged. This line-based review provides a quick way to inspect edits before saving changes.

Instructions

  1. Paste or type your base text into the Text A area.
  2. Enter your updated or alternative text into the Text B area.
  3. Click Run to perform the line-by-line text comparison.
  4. Inspect the diff list to see added, removed, and unchanged lines alongside the line counts.

Examples

  • Comparing "apple\nbanana" in Text A with "apple\ncherry" in Text B marks "banana" as removed and "cherry" as added, keeping "apple" unchanged.
  • Entering identical text into both Text A and Text B reports all matching lines as unchanged with zero added or removed lines.

FAQ

Does the tool check differences per word or per character?

No. The comparison operates on complete lines rather than individual characters or words.

What happens if one of the text inputs is left empty?

If one field is empty and the other contains lines, all lines from the non-empty field are marked as additions (if in Text B) or removals (if in Text A).

How are unchanged lines presented in the output?

Unchanged lines appear in their forward sequence within the diff list and are tallied in the unchanged line count.

Embed this tool

Add this working SmartPlusLab tool to your website with the code below.