Skip to content

Text Diff Checker

Paste two versions of a text, or open files, and see exactly what changed — by line or by word, side by side or inline. Copy a unified diff or download a .diff file. Everything stays on your device.

original.txt · 0 characters

changed.txt · 0 characters

Diff
View

Each side can be up to 1,000,000 characters or 80,000 lines. Original: 0 characters, 0 lines. Changed: 0 characters, 0 lines. Comparison runs in a background worker when the browser allows it, so the page stays responsive.

A private, in-browser comparison

This checker is for the everyday job of spotting what changed between two versions of a file, an email, a JSON snippet or a few paragraphs of copy. It does not replace a version-control system: it will not talk to Git, and it will not merge conflicts. It will, honestly, show a line or word diff and hand you a standard unified patch you can copy or save.

Large pastes are compared in a background worker so the tab does not lock up. Each pane is capped at one million characters or 80,000 lines so a huge dump cannot take the page down. If the on-screen view would be thousands of rows long, a prefix is shown and the full result is still in the .diff download.

How to compare two texts

  1. Paste or open both sides. Put the original text in the left pane and the changed text in the right pane. You can also load a text file into either side.
  2. Choose options. Compare by line or by word, view the result side by side or inline, and optionally ignore whitespace or letter case.
  3. Compare. Click Compare. The work runs in a background worker when the browser allows it, so typing and scrolling stay responsive.
  4. Copy or download. Copy the unified diff, or download it as a .diff file you can apply with patch or review in an editor.

Views, options and limits

Side by side puts the original on the left and the changed text on the right, with added and removed lines highlighted. Inline stacks removals and additions in one column, like a typical unified view. Word mode highlights the words that changed rather than the whole line — useful for prose, less useful for a 200-line code patch, where line mode stays easier to scan.

Ignore whitespace is for diffs that are mostly indentation or wrapping.Ignore case is for lists or names where capitals should not count as a change. Both options rewrite the compared copies; the patch you download is built from those copies, so turn the options off if you need a patch that applies to the original files.

Related text tools on this site — changing case, sorting lines, removing duplicates — live on the text tools hub. For structured JSON, use the JSON Formatter or JSON Validator first, then compare the results here.

Related tools and guides

Diff checker FAQ

Is my text uploaded?

No. Both panes, the comparison and the .diff file are produced in your browser. Nothing is sent to a server.

What's the difference between a line diff and a word diff?

A line diff treats each line as a unit, which is what you want for source code, logs and most patches. A word diff marks individual words that changed inside a line, which is clearer for prose.

What does Ignore whitespace do?

It collapses runs of spaces and tabs and trims spaces at the start and end of each line before comparing. Line breaks are kept, so a line diff still lines up. Differences that are only spacing then disappear.

What does Ignore case do?

Both sides are compared in lowercase, so Hello and hello count as the same. The downloaded .diff is also built from those case-folded copies, and will not show the original capitals.

How large can the inputs be?

Each side can be at most 1,000,000 characters or 80,000 lines, whichever comes first. Above that the tool refuses to run rather than freeze the tab. Very large results are computed in full for the .diff download, but the on-screen view shows a prefix so the page stays usable.

Is the downloaded file a standard unified diff?

Yes. It is a unified patch (--- / +++ / @@ hunks) from the same well-maintained jsdiff library that powers the on-screen view, with three lines of context. You can open it in any editor that reads .diff files. Because Ignore case and Ignore whitespace change the compared text, a patch built with those options may not apply cleanly to the original files.