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.
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. |
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 100% locally in your browser memory using JavaScript. No documents or code are ever sent to an external server.
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.