Diff Checker – Compare Two Texts Online

Free diff checker — paste two versions and every change is marked, line by line and word by word.

Side by Side or Inline
Word-Level Highlighting
Nothing Leaves Your Device
Original
Drop a text file, or click to choose
Changed
Drop a text file, or click to choose
Options
Whitespace, case and granularity
Differences

No sign-up and no size limit worth worrying about; your text is compared right here and never sent anywhere.

How to use the diff checker

Put the original on the left and the changed version on the right. The comparison runs as you type, so there is nothing to press. That is the whole of it — a difference checker online should not need a manual. The same operation covers a lot of ground: a diff checker tool for source, a data diff checker for CSV and JSON exports, and a plain difference text checker when what you are comparing is prose.

  • Paste or drop. Type into either box, paste, or drop a file on it. Any plain text works — code, JSON, CSV, XML, SQL, logs, configuration.
  • Read the colours. Red is gone, green is new, amber is edited, and inside an amber line the exact words that changed are picked out.
  • Narrow it down. Tick Only differences to hide identical lines, or Ignore whitespace after a reformat.
  • Move through it. The up and down arrows jump from one change to the next, which beats scrolling a long file, and the button beside them opens the comparison full screen — press Esc to come back.
  • Keep it. Copy the result, or download it as a .diff file.

What the colours mean

Three states, and each answers a different question when you check difference text between two versions:

ColourMeaningWhere it appears
RedLine is on the left but not the rightOriginal only
GreenLine is on the right but not the leftChanged only
AmberSame line, editedBoth sides, with the changed words darker
PlainIdenticalBoth sides

That last one is the part most tools skip. Telling you a line changed is easy; showing you which three words changed inside a forty-word paragraph is the difference between a result you can read and one you have to squint at. Tick compare by character and it narrows further still, down to individual letters — useful for a changed number or a single typo.

The options, and when each one matters

  • Ignore whitespace — strips every space and tab before comparing. Turn it on after running a formatter, when the indentation moved but the meaning did not.
  • Trim line ends — the gentler version: ignores leading and trailing spaces, keeps the spacing inside the line. Good for catching stray trailing spaces without hiding real indentation changes.
  • Ignore case — treats Value and value as the same. Useful for config keys and SQL, misleading for anything case-sensitive.
  • Only differences — hides identical lines entirely, so a two-line change in a thousand-line file is not buried.

Comparing files, not just pasted text

Drop a file on either box and it loads straight into it. This is where a document difference checker usually asks you to sign up; here the file is read by the page and never leaves the machine. Anything plain text is fair game, which in practice covers most of what people actually want to diff check between two files: source in any language, JSON and XML payloads, CSV exports, SQL dumps, server logs, .env and config files, Markdown drafts, subtitle files.

Long files are handled by skipping the identical stretches at the beginning and end before the comparison starts, which is why a five thousand line file with one changed line comes back instantly. Two very large files that differ almost everywhere hit a deliberate ceiling and fall back to a coarser answer — and the page says so rather than pretending.

Why nothing you paste leaves this page

Most people reach a diff checker holding something they should not be handing to a stranger: an employment contract, a production config with credentials in it, source code that belongs to an employer. The usual tools send all of it to a server to do the work.

This one does not. The algorithm, the highlighting and the download all run in the page itself, so your text never crosses the network. It also means the tool keeps working with the connection off once the page has loaded. If you have ever hesitated before pasting something into a comparison box, that hesitation was correct, and this is the answer to it.

What this tool does not do

Worth saying plainly. It compares plain text. It will not compare Word documents, PDFs or spreadsheets: those store layout and styling alongside the words, so a diff of the raw file is unreadable and a diff of the extracted text quietly throws away the formatting that often was the change. It also does not merge, and it compares two things rather than three or a whole folder.

Those are deliberate limits, not missing features. A comparison you cannot trust is worse than no comparison, because a wrong answer looks exactly like a right one.

Frequently Asked Questions

Put the original on the left and the changed version on the right. The comparison runs as you type, so there is no button to press. Removed lines are red, added lines are green, and an edited line is amber with the changed words picked out inside it.
Red means the line exists on the left but not on the right. Green means it exists on the right but not on the left. Amber means the same line was edited, and the darker patches inside it are the exact words that changed. Anything left plain is identical on both sides.
Yes. Drop a file onto either box, or click it to pick one. Any plain text file works: code, JSON, CSV, XML, HTML, SQL, Markdown, logs, configuration files. The file is read by the page itself and is never sent anywhere.
It compares the lines with every space and tab removed, so a line that was only re-indented no longer counts as a change. Use it after reformatting code. Trim line ends is the gentler version: it ignores leading and trailing spaces but keeps the spacing inside the line.
It is the share of rows that are identical on both sides. If ten rows are shown and eight match, the score is 80 percent. Rows rather than characters, so one heavily rewritten line counts the same as one lightly edited line.
No. Those formats store layout and styling alongside the words, and a diff of the raw file would be unreadable while a diff of the extracted text would quietly lose the formatting that made the change matter. This tool compares plain text, and it says so rather than producing something that looks right and is not.
Files up to 5 MB will load, and long files with a limited number of changes are fast because identical stretches at the start and end are skipped before the comparison begins. Two very large files that differ almost everywhere will fall back to a coarser result, and the page tells you when that happens.
No. The comparison, the highlighting and the download are all produced in this page, so nothing is sent anywhere. That matters more here than on most tools, because the text people compare is usually a contract, a configuration file or source code they are not free to hand to a server.