Text Diff Checker

Compare two text versions locally. Review exact line additions, removals and unchanged text, then copy or download the marked diff report.

Compare exact lines. Each input: up to 2,000 lines and 131,072 UTF-16 code units. Copy/Download export the marked comparison.

+ 2 added− 2 removed= 1 unchanged
Unchanged: ToolMint is useful.Removed: The design is minimal.Removed: Core tools are free.Added: The design is focused.Added: Core tools are free to use.
Steps

How to use

  1. Paste the earlier version into Original and the revision into Updated.
  2. Review exact added, removed and unchanged lines; one changed line counts as removed and added.
  3. Copy or Download the marked report. Select text from Updated to use the revision itself. Clear empties both inputs.
Examples and use cases
  • alpha / beta / gamma versus alpha / inserted / beta / gamma on separate lines: 1 added, 0 removed, 3 unchanged.
  • Changing beta to BETA on one of three lines: 1 added, 1 removed, 2 unchanged.
  • Two completely empty editors: zero counts and disabled exports.
Privacy, limits and tool details

Key facts

Input
Two pasted or typed plain-text versions; no file upload
Comparison
Exact whole lines aligned in order using LCS
Limits per input
2,000 line segments and 131,072 UTF-16 code units
Output
Marked comparison to copy or download as diff.txt
Processing
Local browser memory; no input upload or browser-storage persistence
Cost and account
Free to use; no account required
Privacy

Privacy and processing

Processing method: Bounded longest-common-subsequence comparison of exact lines. CRLF, LF and lone CR are equivalent separators; whitespace, case and Unicode spelling inside lines remain significant. Ties prefer removal before addition.

Privacy model: Inputs and output stay in component memory without upload or browser-storage persistence and are marked for Clarity masking. Comparison code does not pass entered text to analytics. Copy and Download create external copies; Share uses the page URL.

Limitations

Limitations

  • Whole-line comparison only; no word-level edits, move detection, ignore-whitespace option, semantic validation or file upload. Report exports are not revised text or applicable patches. Line ending conventions are normalized, so this is not byte comparison.
Features

Benefits

Aligned line review

Matching lines remain aligned when lines are inserted or removed.

Explicit export format

Copy and Download use the same marked report, including unchanged lines.

Tips

Pro tips

  • Keep comparable line structure in both versions.
  • Retain raw JSON when formatting or number tokens are part of the review.
  • Read the two-character report prefix separately from the original line content.
Watch out

Common mistakes to avoid

  • Treating a changed paragraph as a word-level edit count.
  • Assuming equal line content proves identical file bytes or equivalent meaning.
  • Using diff.txt as the revised text or a patch for git apply.
Detailed Text Diff Checker guide

What the Text Diff Checker compares

Text Diff Checker compares two pasted or typed plain-text versions, line by line, in your browser. It marks added, removed and unchanged lines and produces a report you can copy or download as diff.txt. It is free and requires no account. Use it to review draft copy, short configuration snippets or generated text before accepting a change.

A line must match exactly to count as unchanged: capitalization, spaces, tabs and punctuation matter. The comparison aligns matching lines in their original order using a longest common subsequence, or LCS. NIST's LCS definition explains the underlying sequence problem; ToolMint treats whole lines as its sequence elements. Matching lines can remain aligned when another line is inserted between them.

The result identifies textual changes. It does not assess factual accuracy, code behavior, legal meaning or whether an edit improves the writing. One changed word in a long paragraph makes that entire line appear as removed and added.

How to compare two versions

  1. Replace the sample text in Original with the earlier version.
  2. Paste the revised version into Updated. The comparison updates as you edit either panel.
  3. Read the added, removed and unchanged counts, then inspect the marked lines below the editors.
  4. Use Copy or Download to save the comparison report. To use the revised text itself, select it from the Updated editor.
  5. Use Clear to empty both editors. Empty inputs produce zero counts and disable Copy and Download.

There is no file upload or word-level comparison mode. Keep paragraphs or configuration entries on deliberate lines rather than introducing arbitrary line breaks. Splitting prose into shorter lines can help review, but it changes the text you are comparing; use the same preparation for both versions.

Read additions, removals and unchanged lines

Report prefix Meaning Count behavior
+ A line present in Updated and added by this alignment Adds one to added
- A line present in Original and removed by this alignment Adds one to removed
Two spaces A matching line retained in order Adds one to unchanged

The on-screen removed marker is −; the copied and downloaded report uses the ASCII prefix - . Colour helps locate changes, while markers and accessible row labels identify each kind of line independently of colour.

For example, compare Original containing alpha, beta, gamma on separate lines with Updated containing alpha, inserted, beta, gamma. The counts are 1 added, 0 removed, 3 unchanged, and the report is:

  alpha
+ inserted
  beta
  gamma

If beta instead changes to BETA, the counts are 1 added, 1 removed, 2 unchanged. There is no separate edited-line counter. When both inputs contain identical nonempty text, every line is unchanged and the report remains available to export.

Repeated lines can allow several equally valid alignments. ToolMint chooses removal before addition when two alignment choices have the same remaining LCS length. A moved line may therefore appear as removed and added; the tool does not identify moves or infer which repeated occurrence an author intended.

Whitespace, line endings and Unicode

Leading and trailing spaces, indentation and tabs stay significant. A whitespace-only input is a real line. Blank lines inside a nonempty input are retained, and a final line break creates a trailing empty segment: alpha versus alpha followed by a newline shows one added empty line. A completely empty editor contributes zero lines. An input consisting of one newline contributes two empty segments.

CRLF, LF and lone CR are treated as equivalent line separators. The marked report uses LF between its rows. This makes the tool suitable for reviewing line content across common newline conventions, but it is not a byte comparison or a way to preserve original file encoding and line endings.

Unicode text, including Arabic, Chinese and emoji, stays in the line content. The tool does not normalize Unicode spelling. A precomposed accented letter and a visually identical letter plus combining mark can compare as different. Nor does it ignore punctuation, HTML tags, JSON member order or spaces inside values. HTML-like input is displayed as text rather than executed as markup.

Input limits and recovery

Each editor accepts a comparison of up to 2,000 line segments and 131,072 UTF-16 code units. Both limits apply independently to Original and Updated; a trailing empty segment counts toward the line limit. These are comparison limits, not file-upload sizes.

The size check uses JavaScript string length. MDN documents that string length counts UTF-16 code units, which can differ from visible character count or UTF-8 file size. For example, 🌍 takes two code units. The limit includes spaces and line separators present in the editor value.

When either input exceeds a limit, its text remains in the editor, a message identifies the input to shorten, and no partial or previous result is offered for export. Shortening it restores the comparison; Clear removes both inputs. Limits bound the comparison table, but do not guarantee a particular response time on every device. Use a local editor or version-control system for large documents or many files.

What Copy and Download contain

Both actions export the same marked comparison, including unchanged lines. Download saves UTF-8 plain text with the filename diff.txt. Read the first two characters of each report row as its prefix; any following + or - can be part of the original text.

The report is not the contents of the Updated editor. It has no file paths, line-number hunk headers or patch metadata and should not be passed to git apply. For an applicable source-code patch, use your repository workflow; Git's patch-format documentation describes its headers and structure. Keep the actual revised document separately from this review report.

Use this checker to verify whether a required sentence survived a rewrite, inspect two configuration values, or compare a master resume with a tailored draft. The resume tailoring guide explains an evidence-based revision workflow; this diff can help review the wording, but cannot verify qualifications.

For JSON, choose deliberately between comparing the original text and comparing formatted text. JSON Formatter can make structure easier to read, while the guide to formatting JSON without rounding large IDs explains why number handling and duplicate keys matter. Formatting can change whitespace and presentation, so retain the raw versions when those details are part of your review. This checker does not parse JSON or decide whether two documents represent the same data.

Use Word Counter for length metrics and Case Converter when you intend to change capitalization. Changing case before comparing can hide a case-sensitive edit. For PDF files, Compare PDF Text provides a separate extraction workflow with its own normalization and limits; this page compares pasted text only. These tools are available in the Utilities category.

Local processing and saved copies

The comparison runs in component memory. Its code does not upload the inputs or report, write them to browser storage, or pass entered text to analytics. The editors and output region are marked for Clarity masking; general site analytics remain subject to the site's existing consent settings.

Copy deliberately writes the report to your clipboard, and Download creates a file on your device. Clear removes the component's input and result, but does not erase clipboard contents, downloaded files or copies you saved elsewhere. Share uses the tool page URL. Leaving or refreshing the page resets the component to its sample text. Use the tool within your organization's rules for handling private drafts and review saved reports before sharing them.

Frequently asked questions

The tool compares whole lines. If any content in a line changes, that line is removed from Original and its replacement is added from Updated. It has no separate edited-line or changed-word counter.

Exact matching lines are aligned in order using a longest common subsequence. Repeated lines can have several valid alignments; ties prefer removal before addition. Moved lines can appear as removed and added because there is no move detection.

No. Spaces, tabs, capitalization, punctuation and Unicode spelling inside lines are significant. Visually identical precomposed and combining-mark spellings can differ. There is no ignore-whitespace setting or Unicode normalization.

CRLF, LF and lone CR are equivalent separators. Blank lines are retained, and a final separator creates a trailing empty segment. A completely empty input has zero lines; one newline has two empty segments. Report rows use LF, so the result is not a byte comparison.

Both export the marked comparison, including unchanged lines. Download saves UTF-8 diff.txt. Each row starts with + and a space for added text, - and a space for removed text, or two spaces for unchanged text. This is not the Updated text or a patch for git apply; select the Updated editor to copy the revision itself.

Identical nonempty text produces unchanged lines and an exportable marked report. Clear empties both editors, shows zero counts and disables Copy and Download. It does not erase clipboard contents or files you already downloaded.

Each input is limited to 2,000 line segments and 131,072 UTF-16 code units, including whitespace and separators in the editor value. A trailing empty segment counts as a line. Over-limit input remains editable but produces no partial or stale report; shorten it or Clear to recover.

Comparison runs in component memory without uploading inputs or reports or writing them to browser storage. The editors and output are marked for Clarity masking, and comparison code does not pass entered text to analytics. Copy and Download deliberately create external copies; Share uses the tool page URL. Site analytics follow existing consent settings.
6 min read