๐Ÿ“ Diff Checker

Compare two texts side by side. See added, removed, and changed lines with line numbers and color highlighting.

Text Diff Checker

Compare two texts or code snippets and instantly see the differences. Perfect for reviewing code changes, comparing document versions, or checking configuration files.

Features

Frequently Asked Questions

How are differences detected?

The tool uses the LCS (Longest Common Subsequence) algorithm to find the longest shared sequence of lines, then marks all other lines as added or removed.

What does JSON Mode do?

JSON Mode pretty-prints both inputs with consistent formatting (2-space indent, sorted keys) before comparing. This way, structural differences are shown rather than formatting-only differences.

Related Tools

Find & Replace ยท Text Statistics ยท JSON Formatter ยท All Text Tools