What is an LCS diff algorithm?
LCS (Longest Common Subsequence) is a computer science algorithm that identifies the longest sequence of lines or characters shared between two documents to calculate minimal insertion and deletion steps.
Is my text data safe and private?
Yes. The diff comparison runs 100% locally inside your browser using client-side JavaScript. No text is transmitted to any external server.
How does the 'Ignore Whitespace' toggle work?
When enabled, trailing spaces, tabs, and indentation changes are ignored during comparison, highlighting only actual text content changes.
Can I compare code files in languages like JS, Python, or JSON?
Yes! You can paste source code files, JSON configurations, HTML templates, CSS rules, or plain text articles.
What do the line numbers in Split View represent?
The left column lists original line numbers, and the right column lists modified line numbers. Empty rows are aligned to keep matching lines side-by-side.
Why are specific words highlighted inside a line?
When a line is modified, the engine calculates character-level diffs within that line range to highlight the exact characters or words changed.
Does it support large text files?
Yes. The in-memory JavaScript diff engine handles documents up to 50,000 lines efficiently.
How are blank filler lines displayed in Split View?
Filler rows (where lines exist in one file but not the other) render with light gray backgrounds to maintain visual alignment across columns.
How does the 'Ignore Case' option work?
When 'Ignore Case' is active, uppercase and lowercase letters (e.g. `DATA` and `data`) are treated as identical during comparison.
Can I compare JSON files using this tool?
Yes. For best results, format both JSON files first using our JSON Formatter so keys and values align cleanly line-by-line.
Can I compare HTML markup using this tool?
Yes. You can paste raw HTML strings to compare template changes, class attributes, or text content updates.
Does this tool support patch file generation?
The Unified View output displays standard `+` and `-` markers matching git diff patch formats, which you can copy into your notes.
Works on mobile browsers?
Yes. The diff checker interface scales down responsively for mobile and tablet screens.
Are there keyboard shortcuts?
Press `Ctrl+L` (or `Cmd+L` on Mac) to clear both text editors instantly.