Tools
Text and JSON comparator / formatter
Compare text or JSON and normalize formatting
In text mode the comparison is literal, line by line, preserving case, whitespace, and the original order.
Left panel
Right panel
Diff result
About this tool
Comparing two versions of a text or JSON is a common task in software development: reviewing changes between API responses, comparing configuration files, or verifying that a data migration produced the expected result. Manual line-by-line comparison is slow and error-prone, especially with long documents.
Diff algorithms, such as Myers' algorithm, calculate the minimum edit sequence (insertions and deletions) that transforms one text into another. This sequence is known as the minimum edit distance and is obtained by solving a dynamic programming problem. For JSON, comparison can be semantic: normalizing the format before comparing avoids false positives from indentation or key order differences.
This tool visualizes the differences between two texts or JSONs with color highlighting: green for added lines, red for removed lines, and yellow for modified ones. For JSON, it automatically normalizes the format before comparing. Useful for reviewing changes in configurations, API responses, or any pair of text documents.
Articles published on the blog
