Text Diff Checker
FreeCompare 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
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
- Reviewing what actually changed between two versions of a document, config file, or paragraph of text before accepting the edits.
- Spotting a single changed word or character in two otherwise-identical strings, such as a slightly different API key or URL.
- Generating a standard patch file from two text snippets without having access to a version control system.
- Comparing code that was reformatted with different indentation to confirm the actual logic did not change.
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
Text
Add Text Each Line
Insert the same text into every line, at the start, end, an exact position, or next to a match, right in your browser.
FreeText
Text To ASCII Converter
Convert text into its ASCII character codes and back again, with the result also shown in binary, hexadecimal, and octal, all running entirely in your browser with nothing ever uploaded.
FreeText
Text To Binary Converter
Convert text into its binary character codes and back again, with the result also shown in decimal, hexadecimal, and octal, all running entirely in your browser with nothing ever uploaded.
FreeText
Adler32 Checksum Calculator
Calculate the Adler-32 checksum of text or a file, right in your browser.
FreeText
Anagram Generator
Find English anagrams and shorter words you can make from any word, right in your browser.
FreeText
API Tester
Send HTTP requests to any API endpoint and inspect the response, right in your browser.
FreeText
Argon2 Hash Generator
Generate and verify Argon2id/Argon2i/Argon2d password hashes entirely in your browser, with adjustable memory cost, time cost, and parallelism.
FreeText
Atbash Cipher Tool
Encode and decode text with the Atbash cipher in classic, digit, and Hebrew variants, with a live mirror-pair reference and character mapping table.
Comments (0)
Found this tool useful? Leave a comment, share a tip, or tell us how we can make it better.
No comments yet. Be the first to share your thoughts!