Free online tool

Compare two texts line by line

Paste an original and revised passage to identify matching, added and removed lines. The comparison is line-based, runs in your browser and does not edit either source.

Quick answer

Quick answer

Paste an original and a revised passage and the tool compares them line by line, labelling each line as unchanged, added or removed. It works in your browser and never uploads your text, leaving both versions editable. A small change inside a long line marks the whole line as changed, so split long paragraphs into sentences first.

Open the interactive Text Diff / Text Compare

The interactive tool loads in the page. Enable JavaScript to enter data, process content, and download results.

About this tool

About the Text Diff / Text Compare

Paste an original and revised passage to identify matching, added and removed lines. The comparison is line-based, runs in your browser and does not edit either source.

Detailed guide

How to get useful results from Text Diff / Text Compare

Compare two versions of text quickly

Spotting changes between two versions of a document can be tedious when reading line by line. This free online text diff and text compare tool highlights which lines match, which were added, and which were removed between an original passage and a revised version. Writers, editors, students, translators, lawyers, developers, and content teams worldwide use it to review edits, check contract revisions, compare configuration files, verify copied content, and track changes in drafts. Paste both texts and see the differences instantly, with no upload, account, or software installation required.

How line-based comparison works

The comparison runs line by line, which is the same approach used by many developer tools. Lines that appear in both texts are shown as unchanged, new lines are labeled as additions, and missing lines are labeled as removals. Because comparison is line-based, a small change inside a long line marks the whole line as changed. For more precise results, split long paragraphs into sentences on separate lines before comparing. Whitespace and capitalization differences count as changes, so normalize spacing if you only care about wording differences.

Privacy and practical use cases

Both source texts stay in your browser and remain editable, so you can adjust them and compare again. Comparison is bounded to keep the page responsive on very large inputs. This makes the tool suitable for confidential drafts, internal policies, and code snippets that should not be pasted into online services that store data. Use it to confirm translation updates, check whether a published article matches the approved version, compare product descriptions, review changes in CSV exports, or verify that a configuration file was updated correctly before deployment.

Teachers and editors can also use text comparison to review student revisions or contributor edits, seeing exactly which lines were rewritten between drafts. Translators can compare an updated source text with the previous version to translate only what has changed, which saves time and reduces cost on large localization projects.

Quick guide

How to use this tool

  1. 01Paste the original text in the first box.
  2. 02Paste the revised text in the second box.
  3. 03Select Compare to review added, removed and unchanged lines; very large inputs are capped to keep the page responsive.

Capabilities

Features and supported formats

  • Line-level insertions and removals are clearly labeled.
  • Keeps both source texts unchanged and editable.
  • Bounded local comparison avoids transmitting text or blocking the page on oversized inputs.

Supported formats

Input and output: plain text; comparison results are shown in the page.

Answers

Frequently asked questions

Does the compare tool upload my text?

No text is submitted to a Toolkit Studio processing endpoint; the comparison is computed in this page. Google Analytics measures page usage separately and is described in the Privacy Policy.

Does it compare individual words?

The current comparison is line-based. Put separate words or phrases on separate lines when you need to compare them as units.

Can I compare code with this tool?

Yes. Line-based comparison works well for code, configuration files, CSV data, and other plain text.

Does capitalization or spacing count as a difference?

Yes. Lines must match exactly, so extra spaces or different capitalization are shown as changes.

How do developers use text diff tools in the US?

Developers use diff tools to review code changes, compare configuration files, and check document revisions before merging. The same line-by-line comparison powers Git diffs, which are the standard code review workflow at US tech companies.

What is the difference between diff and merge?

Diff shows what changed between two texts, highlighting added and removed lines. Merge combines changes from two versions into one file, resolving conflicts where both versions edited the same lines.