Diff Checker: Compare Two Texts and See the Differences

Paste the original and the changed version, or open two files. Every added, removed and changed line is highlighted, down to the word.

0 lines
0 lines

Frequently asked questions

What is a diff checker?

A tool that compares two versions of a text and shows what changed between them: which lines were added, which were removed and which were edited. The name comes from diff, the command programmers use to compare files. This one does the same in your browser, with no installing and no sign-up.

What kind of differences does the tool show?

Lines that were added, removed or changed. It works out which lines match up first, the way Git does, so a line inserted near the top does not make every line below it look changed. Inside a changed line, the words that differ are highlighted.

What is the difference between added, removed and changed?

Removed lines appear in the first text only. Added lines appear in the second only. Changed lines exist in both, with different content on each side.

Two lines look identical but are marked as different. Why?

Almost always a difference you cannot see: a trailing space, a tab where the other side has spaces, a non-breaking space, or a zero-width character. The tool marks those inside the highlight, so you can see which one it is. Tick Ignore differences in spacing if they do not matter to you.

Does it ignore upper and lower case?

Only if you tick Ignore upper and lower case. By default a capital letter counts as a difference, because in code, data and file paths it usually is one.

Can I compare two files?

Yes. Use Open file above each field, or drop a file onto it. Any plain-text file works, such as .txt, .csv, .json or source code. The file is read in your browser and never uploaded.

How do I compare two Word documents or PDFs?

Open each one, select all, copy, and paste the text into its own field. Word and PDF files are not plain text, so they cannot be opened here directly. The comparison then covers the wording only, not fonts or layout. If both versions are Word files and you need the formatting compared too, Word's own Review, then Compare, does that.

Is my text sent anywhere?

No. The comparison runs entirely in your browser. Neither the text you paste nor the files you open are uploaded or stored, so it is safe for contracts, code and other material you would rather keep to yourself.

What does Copy Differences give me?

A unified diff, the format Git and patch use: removed lines start with a minus, added lines with a plus, and each change comes with three lines of context.

Can I compare code as well as prose?

Yes. The comparison is plain text, so source code, CSV rows, log files and configuration files all work.

Is there a size limit?

Files up to 20 MB. Texts tens of thousands of lines long compare in well under a second, and long unchanged stretches are folded away so the differences are easy to find.