Why use Text Diff Checker?
- Line-by-line diff with green/red colour coding for additions and removals
- Left and right line numbers for easy navigation in long documents
- Added, removed and unchanged line count shown as a clear summary
- Free and private — comparison runs entirely in your browser, no uploads
About Text Diff Checker
Whether you are proofreading a document revision, reviewing a code change, or checking what differs between two versions of a config file, this Text Diff Checker gives you an immediate visual answer. Paste your original and modified text into the two boxes and the tool computes a line-by-line diff using the Longest Common Subsequence algorithm — the same core technique used by version-control systems like Git. Added lines are highlighted in green, removed lines in red and unchanged lines remain plain.
The diff view includes left and right line numbers so you can quickly locate changes in large documents, plus a summary showing the exact count of added, removed and unchanged lines. You can copy the annotated diff output to share with collaborators or paste into a report. Everything runs entirely in your browser — no files are uploaded and no account is needed.
How to use Text Diff Checker
- 1
Paste your original text
Put the original or older version of the text into the left-hand "Original text" box.
- 2
Paste the modified text
Put the new or revised version into the right-hand "Modified text" box. The diff renders automatically.
- 3
Review and copy
Read the colour-coded diff below. Use the summary counts to gauge the extent of changes, then click "Copy diff" to save the annotated output.
Frequently asked questions
How does the diff algorithm work?
The tool uses the Longest Common Subsequence (LCS) algorithm, which finds the largest set of lines that appear in the same order in both texts. Lines not in the LCS are marked as added or removed. This is the same foundational approach used by Git and most diff tools.
Does it show character-level differences within a line?
Currently the tool shows differences at the line level — a modified line appears as one removed line (old) and one added line (new). Character-level inline highlighting is not yet available.
Can I compare large documents?
Yes, though very large texts (hundreds of thousands of lines) may cause a brief pause while the LCS table is computed. For most documents the diff is instant.
What does "Copy diff" copy?
It copies a plain-text annotated version of the diff where each line starts with "+ " for added lines, "- " for removed lines and " " (two spaces) for unchanged lines — a format compatible with most diff viewers.
Is my text sent to a server?
No. All comparison logic runs locally in your browser using JavaScript. Your text is never uploaded or stored anywhere.
Can I use it to compare code files?
Absolutely. Paste any plain-text content — source code, JSON, Markdown, logs or prose — and the tool will compare it line by line regardless of format.
Related text & writing
Browse more free tools
Explore every category in our toolbox.