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
- Replace the sample text in Original with the earlier version.
- Paste the revised version into Updated. The comparison updates as you edit either panel.
- Read the added, removed and unchanged counts, then inspect the marked lines below the editors.
- Use Copy or Download to save the comparison report. To use the revised text itself, select it from the Updated editor.
- 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.
Choose the right preparation and related tool
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.