Skip to content

Menu

Text Diff Checker

Compare two texts side by side and highlight differences.

Runs entirely in your browserText & DiffFree, no sign-up
Loading tool

01What is Text Diff Checker?

You changed a config file, a prompt or a test fixture, and now you need to know exactly which lines moved. Paste the old version into Original Text and the new one into Modified Text. The checker lists the comparison below, marking each line as unchanged, removed in red with a minus, or added in green with a plus. Under the hood it is a line diff built on the longest common subsequence, the same idea that classic diff and Git rely on. It finds the biggest set of lines both texts share in the same order, so the result shows the fewest possible additions and removals. Lines that match at the very start and end are paired off first, which keeps large, mostly identical files quick. If what is left is still huge, above about four million line pairs, it switches to a faster greedy matcher. That fallback can report more changes than strictly needed. Within each changed block, removals are listed before additions, as in unified diff output. Windows CRLF and Unix LF line endings are treated as the same break. Here is a small example. The original holds host=a and port=80 on CRLF lines, and the modified copy holds host=a, port=8080 and debug=true on LF lines. You get host=a unchanged, then - port=80, then + port=8080 and + debug=true. The counters read +2 added, -1 removed and 1 unchanged. The line ending switch does not show up at all. Each row shows a line number. Removed rows use the number from the original text. Added rows use the number from the modified text, and unchanged rows show the original number. Copy Diff puts the whole comparison on your clipboard, with a +, - or space and then a space before each line. Both texts are compared inside your browser tab, so the files you paste never leave your machine. Now the honest limits. Matching is exact, so a changed tab, a trailing space or different letter case marks the whole line as different. A line where one word changed shows as one removal and one addition, with no highlight inside the line. Moved lines are not detected as moves. They show as a removal in one place and an addition in another. The copied text has no @@ hunk headers or file names, so you can't feed it to patch or git apply.

Developers, technical writers and QA engineers who need a quick line-by-line comparison of two pasted texts without opening a Git client. The tool runs entirely in your browser, so your data never leaves your device.

02How to use Text Diff Checker

  1. Paste the old version into Original Text
  2. Paste the new version into Modified Text
  3. Read the added, removed and unchanged counters above the result
  4. Scan the red minus and green plus rows, using the line numbers to find them in your files
  5. Click Copy Diff to share the comparison as plain text, or reset to start over

03Worked examples

Input: Original: apple / banana / cherry Modified: apple / blueberry / cherry (one item per line)
Result: apple - banana + blueberry cherry
A changed line shows as a removal followed by an addition, because matching is per whole line.
Input: Original: a / b / c Modified: a / c / b
Result: a - b c + b
A moved line is reported as removed in one place and added in another.
Input: Original: one / two / three / four Modified: zero / one / three / four
Result: + zero one - two three four
Counters read +1 added, -1 removed, 3 unchanged.
Input: Original: host=a / port=80 (CRLF endings) Modified: host=a / port=8080 / debug=true (LF endings)
Result: host=a - port=80 + port=8080 + debug=true
The CRLF versus LF difference is ignored. Only the content changes appear.
Input: Original: a / <tab>b Modified: a / four spaces then b
Result: a - b + b
Whitespace is compared exactly, so a tab and spaces are different lines.
Input: Original: "line one\nline two" Modified: "line one\nline two\n"
Result: line one line two + (empty line 3)
A trailing newline in only one text shows up as an added empty line.

04Common use cases

  • Comparing two versions of an .env or YAML config to see which settings changed before a deploy
  • Checking that a find-and-replace across a file only touched the lines you meant it to
  • Comparing log output or API responses captured from staging and production
  • Reviewing edits to an LLM prompt or a README between two drafts
  • Confirming that a file saved with Windows line endings has no real content changes
  • Diffing expected and actual test output pasted from a failing snapshot test

05Tips

  • Trailing spaces and tabs count as changes. Clean whitespace on both sides first if you only care about content.
  • Two lines that look the same but are marked changed often hide a tab versus spaces or a non-breaking space.
  • Pretty-print JSON or format code the same way on both sides, or a minified file shows up as one big changed line.
  • A missing final newline on one side shows as an added or removed empty line at the end.
  • The copied output has diff-style prefixes but no hunk headers, so treat it as a readable summary, not a patch.

06Related concepts

Longest common subsequence, Line diff, Unified diff, Version comparison.

Frequently Asked Questions

What is Text Diff Checker?

Text Diff Checker is a free, browser-based developer tool on AIDToolStack. Compare two texts side by side and highlight differences. It requires no installation or sign-up and works entirely in your browser.

Is Text Diff Checker free to use?

Yes. No sign-up, no fees and no usage cap.

Does Text Diff Checker store my data?

No. It runs in your browser; nothing is uploaded.

Cheat sheet

Reviews and commentsShow

Reviews

Sign in to leave a review.

Loading reviews…

Comments

Sign in to leave a comment.

Loading comments…

What changed in AI dev tools, once a month

Renames, shutdowns, pricing changes and new MCP setups, each with a source.

Subscribe