Diff Checker
Compare an original and a revised version and see what changed. Choose what you want to compare below.
Runs in your browser. Your files are not uploaded.
Compare text
Paste text into both boxes, or open a plain-text file on each side. Lines are compared one by one.
Limits and how text is compared
- Each line of the revised text is matched against the original using a standard difference algorithm. A line that was edited is shown as changed, with the edited words highlighted.
- Symbols are shown alongside colours: + added, − removed, ~ changed.
- Ignore whitespace treats runs of spaces and tabs as one space and ignores spaces at the start and end of lines. Line breaks still count.
- Windows (CRLF) and Unix (LF) line endings are treated as the same.
- Files must be plain text in UTF-8 or UTF-16 (with a byte-order mark).
Compare images
Choose two PNG, JPEG or WebP images. The tool shows both images and a difference view that marks every changed pixel.
Limits and how pixels are counted
- A pixel counts as changed when its red, green, blue or transparency value differs by more than the tolerance, on a scale of 0 to 255. With tolerance 0, any difference counts.
- Images are lined up at their top-left corners. If the sizes differ, both sizes are shown, only the overlapping area is compared pixel by pixel, and the extra area of the larger image is counted separately as outside the overlap. Images are never stretched or resized.
- Stored pixel values are compared. Embedded colour profiles are not applied, so two files can look alike but still differ slightly.
- JPEG and lossy WebP compression changes pixels a little every time a file is saved. Use a small tolerance if you only care about visible edits.
- The file type is checked from the file's contents, not its name. For animated images, only the first frame is compared.
Compare documents
Choose two Word documents (.docx) or two PDFs. The tool extracts the text from each file in your browser and compares it.
This is a text comparison. It checks the words in the documents. Formatting, fonts, layout, images and page breaks are not compared.
Limits and what is checked
- Word (.docx): the main body text is compared, one line per paragraph, including tables. Tracked changes are read as if accepted. Headers, footers, footnotes, comments and text inside images are not included. Older .doc files are not supported.
- PDF: only selectable text is compared. Scanned pages are pictures of text and have no selectable text, so they cannot be compared here. If no text is found, the tool says so instead of reporting a match.
- Password-protected files cannot be opened. Remove the protection and save a copy, then compare the copy.
- Macros, scripts, links, form actions and embedded files are never run or opened, and documents cannot load anything from the internet.
- Some PDFs that use special East Asian font encodings may produce incomplete text.
Compare spreadsheets
Choose two Excel workbooks (.xlsx) or two CSV files. The tool lists every cell that was added, removed or changed.
Limits and how cells are matched
- Cells are matched by position. Cell B7 in the original is compared with cell B7 in the revised file. If a row was inserted, every cell below it moves and is reported as changed.
- Workbooks: sheets are matched by name. Sheets that exist in only one file are listed as added or removed. Choose a sheet that exists in both files to see its cell changes.
- Formulas are compared as text, and so are the values the spreadsheet saved with the file (the cached results). A cell is reported if either changes. Formulas are never calculated, so a value is only as up to date as the last time the file was saved.
- Number formats are not applied: dates appear as the numbers Excel stores them as. Empty cells are treated as blank.
- Macros, external workbook links and data connections are never run or followed. Only unprotected .xlsx files are supported; .xls and .xlsm files are not.
- CSV: quoted fields, commas inside quotes, doubled quotes and line breaks inside quotes are handled. Line endings inside cells are treated as the same. Values are compared as text exactly as written.
Private by design
Your text and files are read and compared by code running in this browser tab. Nothing you compare is sent to our server or anywhere else. Read the privacy page.
Clear when you are done
Clear both removes the inputs and results from the page and stops any comparison in progress. It cannot clear your device's clipboard if you copied a result.
Keyboard friendly
Use Tab to move between controls and the arrow keys to switch between the comparison types. Every result uses symbols and labels as well as colour.