Text Diff Checker

Compare two versions of text by words, lines, or characters. Review highlighted additions and removals and download a plain-text comparison.

Loading tool...

Processing happens locally in your browser. Your input is not uploaded to a processing server.

Compare revisions without losing the details

A text comparison answers a specific question: what changed between an earlier version and a later one? It is useful for reviewing a revised email, comparing configuration snippets, checking a supplier's updated description, or examining changes to a short policy. Reading two similar passages separately makes small differences easy to miss. Placing them into one comparison makes additions and removals more visible while leaving unchanged material available for context.

The original text belongs on one side and the revised text on the other. Reversing them changes the meaning of added and removed, even though the underlying differences are the same. This checker compares the supplied strings rather than understanding document history. It cannot identify the author of a change, recover an earlier draft, or decide whether a revision is correct. Those questions require the original files and the context in which the document was written.

Pick a comparison level that matches the task

Word comparison is a practical default for ordinary prose. It makes a replaced phrase easier to read without highlighting every individual letter. Line comparison is often more useful for lists, short configuration files, or records where each line represents a separate item. Character comparison exposes punctuation, spelling, and small formatting differences that a broader view might make less obvious.

Each mode is a different presentation of the same input, not a different definition of truth. A paragraph moved to another place may appear as a removal followed by an addition. Several nearby edits can also be grouped differently depending on the comparison level. Use the result to locate a change, then read the surrounding sentence or record before deciding what it means. A single changed digit in a price or account reference can matter more than a much larger stylistic rewrite.

Whitespace and copied text can affect a result

Text copied from a PDF, word processor, or website may contain line breaks and spaces that are not obvious on screen. A paragraph that appears identical can differ because of a nonbreaking space, a different quotation mark, or an extra newline at the end. This checker does not silently normalize every such difference because doing so could hide a meaningful change in code or data.

If your purpose is editorial review rather than exact matching, you may choose to normalize both inputs before comparing them. Apply the same cleanup to both copies and keep the untouched versions for reference. Never remove punctuation or whitespace from only one side and then interpret the result as a faithful record of the original revision. For programming files, indentation and line endings may have different importance depending on the language and the surrounding toolchain. Use version-control review for a full code history.

A practical review example

Suppose a quotation changes from delivery within ten working days to delivery within fifteen calendar days. A comparison can highlight the replaced words, but the reviewer still needs to recognize that both the number and the unit have changed. The result should lead to a business question about the new commitment, not merely a count of edited words. The same principle applies to dates, exclusions, negations, and conditions in ordinary correspondence.

This browser tool limits input length and comparison time so a highly different pair of documents does not keep the page busy indefinitely. If a large comparison is rejected, divide it at meaningful section boundaries rather than trimming random characters. The downloaded report marks added and removed fragments in plain text; it is not a tracked-changes Word document or a machine-applicable patch. Preserve both originals when the review must be reproducible, and do not rely on highlight colors alone when explaining an important change.

Handle source text and exports carefully

Keep a copy of your original input before converting or reformatting it. A useful working pattern is to preserve the source, create a separate result, and compare a few representative records or paragraphs before passing the output to another application. Include unusual cases in that comparison: quotation marks, accented names, empty values, long lines, and punctuation often reveal problems that an ordinary sentence does not.

The text entered into this tool is processed in the browser. It is not submitted to a text-processing server by this tool, but that does not remove the usual responsibilities of working on a shared device. Clipboard contents may remain available after you leave the page, and downloaded files remain in the browser's download folder. Do not paste passwords or confidential customer records merely to try a sample operation.

Text formats describe structure, not trust. A document that parses successfully can still contain inaccurate information, a suspicious link, or content you do not have permission to publish. Review the result before using it in a spreadsheet, website, report, or production system. Where your workflow needs an audit trail, record the source filename, the transformation you applied, and the date outside the tool. Browser output is a working artifact, not a substitute for your organization's review process.

When testing an unfamiliar workflow, begin with a short, non-sensitive sample whose expected result you can explain. Include at least one awkward case instead of testing only simple words and numbers. Open a downloaded export in its destination application and check it there too. This small round-trip test is often more informative than trying a large private document first and discovering a format mismatch after sharing it.

Guide by . Report an issue or suggest a correction.

Frequently asked questions

Can the checker compare PDF or Word files directly?

This tool compares pasted text. Extract the relevant text first, then review whether the extraction preserved reading order and punctuation. File-level comparison, page-layout comparison, and tracked changes in a word processor are different tasks.

Does the comparison ignore spaces?

Whitespace can affect the result. The tool does not automatically remove every formatting difference because spaces and line breaks can be meaningful. If you intentionally clean the text, apply the same operation to both versions and retain the originals.

Why can a moved paragraph appear twice?

A standard text diff can describe a move as a deletion in the old location and an insertion in the new location. That presentation does not necessarily mean the paragraph was rewritten. Read both fragments before accepting or rejecting the change.

Related tools

Reference and further reading

jsdiff's comparison documentation provides background on the relevant format, technology, or requirements. External services have their own policies and may change independently of this page.