Compare Two Lists Online
Compare two text lists or spreadsheet columns side-by-side to find unique items, duplicates, and differences instantly.
Open ToolCompare two text files or code snippets side-by-side with Split and Unified views, line differences, and addition/deletion highlighting.
| # | Original (Old) | # | Modified (New) |
|---|---|---|---|
| 1 | function processOrder(orderId, items) { | 1 | function processOrder(orderId, items, discount = 0) { |
| 2 | console.log("Processing order: " + orderId); | 2 | console.log(`Processing order #${orderId}`); |
| 3 | let total = 0; | 3 | let total = 0; |
| 4 | for (let i = 0; i < items.length; i++) { | 4 | for (const item of items) { |
| 5 | total += items[i].price; | 5 | total += item.price; |
| 6 | } | 6 | } |
| 7 | return total; | 7 | const finalTotal = total - (total * discount); |
| 8 | return Math.max(0, finalTotal); | ||
| 8 | } | 9 | } |

Take this tool beyond the browser. Connect inputs, configure execution loops, and automate actions on Windows.
Paste your base text into the left "Original Text" box and your updated version into the right "Modified Text" box.
Switch between Split View (2 columns) or Unified View, and toggle Case-sensitive or Ignore whitespace as needed.
Review green additions (+) and red deletions (-), then copy the unified diff or summary report with one click.
Comparing two text drafts or code files side-by-side to highlight additions and deletions.
Original: timeout = 30; retry = 3;
Modified: timeout = 60; retry = 5; debug = true;Lines changed: timeout updated to 60 (Modified), retry updated to 5 (Modified), debug = true added (Green Addition).Switch between side-by-side split view and inline unified diff view.
Understand the differences between Split and Unified views, plus standard Git patch syntax symbols for code reviews and document redlining:
| Diff Concept / Symbol | View Format | Meaning & Representation | Best Use Case |
|---|---|---|---|
| Split View (Side-by-Side) | Two Columns | Original text on the left, modified text on the right with synchronized scrolling. | Document proofreading, legal contracts, comparing two distinct article drafts. |
| Unified View (Inline) | Single Column | Combines deletions and additions into a single sequential timeline with color coding. | Source code reviews, software patches, Git commit inspections. |
| Minus Sign ( - ) | Red Highlight / Strikethrough | Text or code lines present in the original version that have been removed or replaced. | Identifying deprecated code, deleted clauses, removed paragraphs. |
| Plus Sign ( + ) | Green Highlight | New text or code lines inserted into the modified version. | Tracking newly introduced features, added contractual terms, updated copy. |
Diffing algorithms scale with O(ND) time and space complexity.
Comparing files exceeding 5,000 lines can take a few seconds due to matrix diff graph calculations.
View differences side-by-side or combined into a unified git-like diff stream.
Uses Longest Common Subsequence (LCS) algorithm for accurate text alignment.
Ignore accidental whitespace changes or enforce strict character comparison.
Quickly invert original and modified texts with the one-click Swap button.
Clear answers about using this tool and automating workflows with RunMacro.
No. The diff computation runs locally in your browser memory using JavaScript. Your documents and code are processed in your browser and are not uploaded.
Split View displays the old and new text in two parallel columns. Unified View merges them into a single column with +/- prefixes, matching git diff formats.
Yes. Our browser-based engine handles code files and text documents with thousands of lines smoothly and without lag.
RunMacro can automatically extract daily report exports, compare them against baseline spreadsheets, and highlight anomalies automatically.
Explore other helpful browser-based utilities in the same category.