Text Diff & Deduplicator
Inline Diff · DedupeLine + inline word-level diff highlights · Remove duplicate lines & sort
Enter text in both boxes to highlight line and inline word changes immediately.
Compare two text snippets with line-level and inline word-level change highlights, or deduplicate, trim, and sort line lists locally in your browser.
How to Use
- 1
Pick "Text Diff" to compare two texts or "Deduplicate & Sort Lines" to clean up a list.
- 2
Paste your text and toggle ignore whitespace, case-insensitive matching, changes-only view, or sorting.
- 3
Inspect inline word-level highlights or cleaned output in real time, then copy or download as .txt.
Frequently Asked Questions
Does it highlight specific changed words inside a modified line?+
Yes. Adjacent removed/added lines are paired for a second-pass word/token LCS diff so subtle edits stand out immediately.
Is it safe to compare private code, logs, or .env files here?+
Yes. Everything runs locally in your browser memory—nothing is logged, stored, or sent to any server.
Can I remove duplicates while preserving original line order?+
Yes. The default sort mode keeps the original order of first occurrence while removing subsequent duplicates.
Two-Pass Line & Inline Word Diff Engine
LocalKit runs an in-memory Longest Common Subsequence (LCS) line diff and then pairs modified lines for token-level inline highlighting—making single-digit config edits or contract clause tweaks effortless to spot without uploading secrets.
- Enable "Changes only" to collapse matching lines in large config files while keeping inline word highlights.
- Enable "Trim whitespace" before deduplicating copied lists to catch trailing spaces.
Related Practical Guides
All Guides →3 min read
How to Compare Config Files (.env, JSON) & Drafts Privately Using Local Diff
Never paste API keys or confidential contracts into cloud diff checkers. Compare lines locally in your browser with whitespace and changes-only filters.
3 min read
How to Clean, Deduplicate, and Sort Keyword or Email Lists in Seconds
Remove duplicate lines, blank lines, and trailing spaces while preserving original order or sorting A–Z locally in your browser.