UltraConvert
Text Tools

Diff Checker

Identify differences between two versions of text with visual line-by-line comparison. Added lines highlighted in green, removed lines in red, and changed sections clearly marked. Useful for code reviews, legal document comparison, editing feedback, and version control visualization.

What does this tool do?

The Diff Checker performs line-level comparison between two text versions using a diff algorithm. It presents results in side-by-side or unified views. In side-by-side mode, corresponding lines from both versions are shown aligned. In unified mode, changes are shown sequentially with markers. Statistics summarize the scope of changes: lines added, removed, and modified. The ignore-whitespace option allows focusing on substantive changes while ignoring formatting differences.

How it works

The tool implements a standard diff algorithm based on longest common subsequence (LCS) to find the minimal set of changes between two texts. Input is split into lines, then the algorithm finds matching sequences and identifies insertions, deletions, and modifications. Side-by-side view aligns lines: matching lines appear on same row, additions show right-only, deletions show left-only, modifications show both with highlighting. Unified view shows the patch format with +/- markers. Complexity is O(N×M) in worst case but optimized for typical inputs. A 200ms watchdog prevents freezing on extremely large inputs.

Features

How to use

  1. 1

    Paste original text

    Enter the original version in the left panel. This is the baseline for comparison.

  2. 2

    Paste modified text

    Enter the revised version in the right panel. The tool compares against the original to find changes.

  3. 3

    Read the diff

    Added lines highlight green (present in modified, not in original). Removed lines highlight red (present in original, not in modified). Changed lines show both versions.

  4. 4

    Toggle view and options

    Switch between side-by-side and unified views. Enable ignore-whitespace if formatting changes clutter the results.

  5. 5

    Copy or export

    Copy the unified diff for email, code review systems, or patch files. The format follows standard diff/patch conventions.

Common use cases

Code review

Compare code versions to review changes, verify refactoring didn't alter behavior, and check pull request diffs.

Legal document comparison

Compare contract versions to identify exactly what language changed between negotiation rounds.

Editing and proofreading

Review changes made by editors, verify only intended modifications were made, and compare drafts.

Configuration management

Compare config files before and after changes to document modifications for change management.

Tips & best practices

Frequently asked questions

Is this word-level or line-level diff?
Line-level using longest common subsequence. For word-level highlighting within changed lines, use a dedicated word-diff tool — that's on our roadmap.
Will huge files work?
Diff is O(n×m) so multi-megabyte files with many differences get slow. For source code and typical documents, you're fine. There's a 200ms timeout to prevent browser freezing.
Can I save or share the diff?
Copy the unified diff output and paste it into emails, review systems, or save as .patch files. Direct URL sharing of diffs is planned for a future update.
Does it detect moved lines?
No — moved lines appear as a deletion in the original location and an addition in the new location. True move detection requires more sophisticated algorithms not implemented here.

Related tools