Diff Checker
Compare two texts line-by-line with an LCS diff.
About the Diff Checker
Compare two blocks of text line by line using a longest common subsequence algorithm, viewable as a unified or side-by-side diff, with options to ignore whitespace and case differences.
Popular uses
- diff checker
- text compare
- compare files
- lcs diff
Examples
Compare lines
line1\nline2Output
line1\nline2 (changed)Keyboard shortcuts
- Copy the main outputCtrl / ⌘ + Shift + C
- Download the resultCtrl / ⌘ + S
- Share this toolCtrl / ⌘ + Shift + S
- Reset the inputsAlt + R
- Open the tool search paletteCtrl / ⌘ + K
Related tools
Code Diff Merger
Dev Utilities
Side-by-side line diff of two code snippets with stats.
JSON Compare
JSON
Diff two JSON documents and list added, removed, and changed paths.
JSON Diff Viewer
Dev Utilities
Compare two JSON documents and see added, removed and changed keys.
JSON Formatter
JSON
Pretty-print and beautify JSON with custom indentation.
JSON Key Sorter
JSON
Sort JSON object keys alphabetically, naturally, or by array field.
JSON Merger
JSON
Merge two or more JSON documents with shallow/deep strategies.
Frequently asked questions
Read more
- Reviewing code diffs side by side: spotting changes and merging snippets offline
Compare two versions of code in your browser, read side-by-side and line diffs correctly, pick the right granularity and keep private code on your device.
- Line diff is not enough: word and character diffs for prose, config and JSON
Line-based diffs mark a whole paragraph as changed when one word moved. Word and character granularity, unified patches and side-by-side views each solve a different problem.
Version 1.1.0 · Updated 2026-10-24 · Runs entirely in your browser