←
Developer

Diff Checker

Loading the tool…

Ready when you are.Runs in this browser · nothing is uploaded

Compare texts and highlight changes

  • Free
  • No sign-up
  • No upload
  • Works offline

Tool facts

Opens
TXTDIFFPATCH
Saves as
DIFF
Price
Free, no sign-up, no watermark
Are files uploaded?
No. Everything is processed in this browser, on your device.
Batch processing
One file at a time
Offline use
Works without a connection once this page has loaded
Built with
jsdiff
Browser
A recent Chrome, Edge, Firefox or Safari, on computer or phone.

Check it yourself: press F12, open the Network tab, then use the tool. No request carries your data.

About Diff Checker

Diff Checker compares two versions of a text and highlights exactly what changed: removed parts in red, added parts in green. In line mode it lines up the original and changed versions side by side with line numbers and also marks the changed words inside each modified line, the way code review tools do. Word and character modes show changes inside running text such as contracts, articles or translations.

Options let you ignore leading and trailing whitespace or differences in upper and lower case, hide long runs of unchanged lines, and switch between a side-by-side and an inline (unified) view. You can download the result as a standard unified .diff patch for git or the patch command. Comparison uses the jsdiff library in your browser, so confidential documents and source code stay on your computer.

Diff Checker runs entirely in your browser. Your data is processed on your device and is never uploaded to Qiyi or anyone else.

How to use Diff Checker

  1. Paste the old version into Original and the new version into Changed, or drop a file onto each box.
  2. Choose Compare by Lines, Words or Characters.
  3. Pick Side by side or Inline view and set Ignore whitespace, Ignore case or Hide unchanged lines if needed.
  4. Read the highlighted differences and the counts of added and removed items; click Download .diff to save a patch.

Frequently asked questions

Which mode should I use?

Use Lines for code, configuration files, CSV and lists, because changes are shown per line with line numbers. Use Words for prose, where a sentence may be edited without the line breaks changing. Characters is best for short strings such as IDs, URLs or passwords where a single letter matters.

What does Ignore whitespace do?

In line mode, lines that differ only in leading or trailing spaces or tabs are treated as equal, which helps when indentation changed. In word mode, changes to the amount of space between words are ignored. Spaces inside a line in line mode still count.

How does it decide what changed?

It uses the Myers diff algorithm, also used by git and GNU diff, which finds the smallest set of insertions and deletions that turns the original into the changed text. Modified lines are shown as a deletion paired with an insertion, with the changed words highlighted.

Can I compare files such as Word documents or PDFs?

The checker compares plain text, so it can open .txt, code, CSV, JSON, XML, Markdown and similar files directly. For Word or PDF files, copy the text out of the document and paste it into the boxes.

What is the downloaded .diff file?

A unified diff patch with --- and +++ headers and @@ hunks, the same format produced by git diff. You can apply it to the original file with git apply or patch, or attach it to a bug report.

· Free · Runs in this browser · nothing is uploaded

Drop any file here
Drop it to see which tools can open it