File compare
Put two texts or files side by side and see every line and word that changed. Open files, drop them or paste. It runs on your device: nothing is sent.
How it works
Put the original text on the left and the changed one on the right: type or paste it, choose Open a file, or drop a file on either side. The comparison below follows as you type.
- Side by side shows the original on the left and the changed text on the right, each with its own line numbers. Lines that were removed are grey and marked −; lines that were added are tinted and marked +; a changed line is shown on both sides, with the words that changed struck through on the left and underlined on the right.
- Unified shows one list, each removed line followed by what replaced it. On a phone the comparison is always unified.
- Unchanged stretches fold away, three lines from each change. Show 8 unchanged lines opens one.
Options
- Ignore spaces at line ends: a space or tab left at the end of a line does not count.
- Ignore all spaces: no space counts, anywhere, so a line indented differently is the same line.
- Ignore case:
Helloandhelloare the same. Lines are still shown as typed.
Moving between changes
The counts above the comparison say how many lines were added, removed and changed. Next and Previous step from one change to the next, highlight it and bring it into view. From the keyboard, press N and P (outside the text boxes), or Alt+↓ and Alt+↑ anywhere in the tool.
Swap sides exchanges the two texts, so what was added becomes what was removed. Hide the texts gives the comparison the whole window; Full screen gives the tool the whole screen.
Questions and answers
Are my files sent anywhere?
No. The files you open and the text you paste are read and compared in your browser, on your device. Nothing is uploaded, and nothing is kept once you close the page.
How does it decide what changed?
It finds the fewest lines to remove and add to turn the original into the changed text (Myers' difference algorithm, the one most version-control tools use). Where a removed line and an added line are alike, it shows them as one changed line, and marks the words, or in a short line the letters, that differ.
Why does it say the line endings differ when no line is marked?
Windows ends lines with two characters (CRLF), Linux and macOS with one (LF). The lines are compared without their endings, so a file saved on each system shows no difference, but the tool tells you, since some programs care.
Can it compare large files?
Yes, up to 50 MB each. Large texts are compared in the background, with the progress shown, so the page stays responsive; Cancel stops it. Two very large texts that have almost nothing in common are compared approximately, and the tool says so.
Can it compare Word documents or PDFs?
No, only plain text: code, data such as JSON, CSV or YAML, notes, subtitles, logs. Copy the text out of a document and paste it on each side to compare it.
Runs on your device. Nothing you type or open is sent anywhere.
Comparison
1 added1 removed4 changed