Skip to content
Veltoryx Technologies

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.

Runs in your browser. Nothing is uploaded.
Original Text12 lines
Modified Text14 lines
Comparison Output
+7 added-5 removed7 unchanged
11 server:
2- port: 8080
2+ port: 8443
3+ ssl:
4+ enabled: true
35 servlet:
4- context-path: /api/v1
6+ context-path: /api/v2
57
68 spring:
79 application:
810 name: order-service
911 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

1
Paste original and modified texts

Paste your before-and-after source code, YAML configs, or JSON files into the side-by-side inputs.

2
Toggle view and comparison settings

Choose Unified (inline) or Split (side-by-side) view, with options to ignore whitespace or case.

3
Inspect changes and statistics

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.

📖 Related Lessons on Veltoryx Learn

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.

🛡 Safe for confidential enterprise payloads