Text Diff & Comparison Checker
Compare two texts or configuration files line by line with split and unified diff views, whitespace filtering, and addition/deletion counters.
| 1 | 1 | server: | |
| 2 | - | port: 8080 | |
| 2 | + | port: 8443 | |
| 3 | + | ssl: | |
| 4 | + | enabled: true | |
| 3 | 5 | servlet: | |
| 4 | - | context-path: /api/v1 | |
| 6 | + | context-path: /api/v2 | |
| 5 | 7 | ||
| 6 | 8 | spring: | |
| 7 | 9 | application: | |
| 8 | 10 | name: order-service | |
| 9 | 11 | datasource: | |
| 10 | - | url: jdbc:postgresql://localhost:5432/orders | |
| 11 | - | username: postgres | |
| 12 | - | maximum-pool-size: 10 | |
| 12 | + | url: jdbc:postgresql://postgres.internal:5432/orders | |
| 13 | + | username: db_user | |
| 14 | + | maximum-pool-size: 25 |
How to use this tool
Paste your before-and-after source code, YAML configs, or JSON files into the side-by-side inputs.
Choose Unified (inline) or Split (side-by-side) view, with options to ignore whitespace or case.
Review color-coded additions (+), deletions (-), line numbers, and total modified lines.
Frequently Asked Questions
How does the diff algorithm compute differences?
The tool uses a standard Longest Common Subsequence (LCS) dynamic programming algorithm to determine the minimal number of insertions and deletions needed to transform the original text into the modified text.
What is the difference between Split and Unified view?
Split view presents the original text on the left and modified text on the right side by side. Unified view displays all changes chronologically in a single stream with + and - markers, similar to git diff.
Does 'Ignore Whitespace' affect line endings?
Yes. 'Ignore Whitespace' trims leading and trailing spaces and normalizes both Windows CRLF (\r\n) and Unix LF (\n) line endings.
Is any of my text sent to a server?
Never. All text diff computation executes 100% locally in your browser's JavaScript engine. You can inspect DevTools Network tab to confirm 0 network requests are made.
Deepen your architecture knowledge with practical, production-tested guides:
Client-Side Privacy Guarantee
This tool never transmits your payloads to any server. Open DevTools (F12) → Network tab to verify that zero HTTP requests are sent while using this page.