Text Diff
Compare two texts line by line and download an easy-to-read difference report, entirely in your browser.
Loading tool…
How to use Text Diff
Review edits to a draft, configuration snippet, or list. The report prefixes removed lines with −, added lines with +, and unchanged lines with a space.
- Paste original and updated versions into their labeled fields.
- Run the line comparison and review + additions and − removals.
- Copy or download the report to keep a record of changes.
Good to know
- Line endings are normalized to LF before comparison. Whitespace inside lines remains significant.
- Each side is limited to 50,000 characters and 2,000 lines, with a short computation limit for responsiveness.
- The download is a readable line report, not a patch file for automatically applying edits.
See which line changed in a short revision
Put the first two-line text in Original text and the revision in Updated text. The report shows unchanged lines with a space, removed lines with a minus sign, and added lines with a plus sign.
Original and updated text
Original: Title Old wording Updated: Title Clearer wording
Readable difference report
--- Original +++ Updated Title -Old wording +Clearer wording
- Include a newline after the second line on each side to reproduce this example without a final-newline notice.
- This is a line comparison. It does not understand meaning or syntax, and whitespace within a line is significant.
- Download saves a readable comparison.diff report. It is not a patch for automatically modifying a file.
Common questions
Are my texts sent to a comparison server?
No. Both inputs and the difference calculation stay in your browser.
Does the comparison ignore a missing final newline?
No. A missing final newline is reported explicitly, while CRLF, CR, and LF line-ending styles are treated as equivalent.
Keep going with related tools
All text →Find & Replace
Replace literal text once or everywhere, with case-sensitive matching and no regular-expression execution.
TextText Cleaner
Clean extra whitespace, normalize Unicode accents, or remove non-printing control characters locally.
DeveloperJSON Formatter
Format and indent valid JSON in your browser, with downloadable output and clear syntax errors.
TextText List Comparator
Find common or exclusive entries in two text lists with an explicit comparison policy.
TextTranscript Error Rate Reviewer
Compare supplied reference and hypothesis text with explicit WER/CER rules, complete edit counts and source-mapped JSON or CSV evidence.
DeveloperJUnit XML Report Merger
Combine local legacy JUnit XML suites into one report ZIP while preserving every suite occurrence, original file and source-order evidence.