WMW

Text Diff Checker

Free

Compare two blocks of text and see exactly what was added, removed, or changed at the line, word, or character level, with a unified or side-by-side view and a downloadable standard diff file, all running entirely in your browser.

Runs entirely in your browser. Your text is never uploaded anywhere.

Recent Activity

Visible to everyone. Last 20 uses across all visitors, newest first.

Compared two texts (1 added, 1 removed)

1 hour ago

Compared two texts (1 added, 2 removed)

1 hour ago

Compared two texts (2 added, 1 removed)

1 hour ago

Compared two texts (1 added, 1 removed)

1 hour ago

Compared two texts (0 added, 0 removed)

1 hour ago

Compared two texts (1 added, 1 removed)

1 hour ago

Compared two texts (2 added, 1 removed)

1 hour ago

Compared two texts (21 added, 3 removed)

1 hour ago

Compared two texts (4 added, 1 removed)

1 hour ago

Compared two texts (2 added, 1 removed)

1 hour ago

Compared two texts (2 added, 1 removed)

1 hour ago

Comments (0)

Found this tool useful? Leave a comment, share a tip, or tell us how we can make it better.

Guest comments are reviewed before publishing. Sign in to post instantly.

No comments yet. Be the first to share your thoughts!

What this tool does

This tool compares two blocks of text and highlights exactly what was added, removed, or changed, at the line, word, or character level, with a unified or side-by-side view, optional case- and whitespace-insensitive comparison, and a downloadable standard unified diff file.

How It Works

This tool uses the same longest-common-subsequence diff algorithm found in Git and the Unix diff command to find the smallest set of additions and removals that turns the original text into the changed text. In Lines mode, once a block of removed lines is matched against a block of added lines of the same size, each pair of lines is compared a second time at the word level so only the words that actually changed are highlighted, rather than marking the entire line as different.

Problems it solves

Frequently asked questions

›What is the difference between Lines, Words, and Characters mode?

Lines mode compares the two texts line by line, which is best for comparing documents, config files, or code where entire lines are added or removed; Words mode breaks the text into words and highlights exactly which words changed within a sentence; Characters mode goes even finer, highlighting individual character changes, useful for spotting a single typo or a small edit in a short string.

›What is the difference between Unified and Side-by-side view?

Unified view shows one column with removed lines directly above the added lines that replaced them, similar to a command-line diff; Side-by-side view splits the original and changed text into two columns so you can compare them at the same vertical position, which is often easier to follow for longer documents.

›What exactly does "Ignore leading/trailing whitespace" do?

It treats two lines as identical if they only differ in spaces or tabs at the very start or end of the line, which is useful when comparing code that has been re-indented. It does not collapse extra spaces in the middle of a line; if you need that, switch to Words mode, which already treats runs of whitespace between words as equivalent.

›Can I download the result as a patch file?

Yes, the "Download .diff" button saves the comparison in the standard unified diff format used by tools like Git and the Unix diff command, with the usual --- / +++ file headers and @@ hunk markers, so it can be applied with patch or reviewed in any diff-aware editor.

›Why does changing one word on a line highlight the whole line?

In Lines mode, the tool first determines which lines were added or removed, then, for a line that was replaced, it runs a second word-level comparison between the old and new version of that specific line so only the changed words are highlighted rather than the entire line; if a line was removed entirely with no replacement nearby, there is nothing to compare it against, so the full line is shown as removed.

Related Tools