JSON Diff & Text Comparator

Secure side-by-side comparison sandbox by Aethvion Labs

Analyze difference matches between two text inputs or structured JSON datasets. Re-align mismatched records, format minified inputs, and inspect additions or deletions without sending any code data to external servers.

Original Text (Left)
Modified Text (Right)

How Text Diffing Works

Our Diff Comparator computes the differences between two strings using a line-by-line **Longest Common Subsequence (LCS)** algorithm. The algorithm identifies blocks of text that are identical, inserted, or deleted by finding the longest path of matching lines through a dynamic programming matrix.

JSON Formatting Support

Comparing raw JSON strings directly can be difficult due to differences in whitespace formatting, key orders, or indentation. When you click **Format JSON**, the tool parses the inputs locally and converts them into standardized, beautified JSON strings. This aligns keys and indentation, ensuring that only actual value mismatches or missing properties are highlighted in the diff comparison.