Developer Tools

Diff Checker

Paste two versions of text or code and instantly see what changed, side by side.

Runs in your browser

Original
Changed
Added
Removed
Unchanged
Diff €” Side by Side
Original Changed

Click Compare to see the diff.

What is the Diff Checker?

A diff checker compares two blocks of text or code and visually highlights exactly what was added, removed, or left unchanged line by line. It is used by developers reviewing pull requests, writers tracking document revisions, and sysadmins comparing configuration files before and after a change. Paste the original version on the left and the updated version on the right, then click Compare. The tool uses a Longest Common Subsequence (LCS) algorithm the same method used by Git to produce a side-by-side diff with colour-coded additions (green), deletions (red), and unchanged lines (grey). All processing happens in your browser; no text is sent to a server.

How to use the Diff Checker

Paste your original text into the Original panel on the left and your updated version into the Changed panel on the right. The diff runs automatically when both panels have content. Use the checkboxes to ignore whitespace differences, ignore case, or hide unchanged lines. The colour-coded diff table below shows additions in green and removals in red, with line numbers on both sides. Click Copy diff to copy a unified diff string to your clipboard useful for pasting into pull request descriptions or bug reports.

Frequently asked questions

A diff checker compares two pieces of text and highlights what was added, removed, or unchanged. It is commonly used by developers to review code changes, compare document versions, or spot unintended edits before deployment.
No all comparison happens entirely in your browser using JavaScript. Your text is never sent to any server, making this tool safe for sensitive code and internal documents.
This tool uses a Longest Common Subsequence (LCS) algorithm the same approach used by Git and most professional diff tools. It finds the minimal set of changes needed to transform the original into the modified version.
Yes, the tool handles moderately large text in the browser. Very large files (thousands of lines) may slow down the comparison slightly, but there is no hard size limit. For very large diffs, consider hiding unchanged lines to focus on what changed.
Check the "Ignore whitespace" option before clicking Compare. This normalises multiple spaces and trims leading/trailing whitespace from each line before comparison, so formatting-only changes do not show up as differences.