Skip to content

Text Diff

Compares two texts side by side or inline, at line, word or character granularity.

Two versions side by side with the differences marked, computed with the Myers algorithm rather than a line-by-line comparison. Useful for a contract redraft, two exports of the same data, or a paragraph somebody edited without telling you what they changed.

🔒 Runs entirely in your browserdiffcomparemerge
View

Original

Drop a file for “Original”

Read in this tab. Nothing is uploaded.

Changed

Drop a file for “Changed”

Read in this tab. Nothing is uploaded.

How to use it

  1. Put the older version on the left

    The direction decides which side is called an addition and which a deletion. Left is what it was; right is what it became.

  2. Choose the granularity

    Line comparison is right for code and configuration. Word or character comparison is right for prose, where a line-level diff marks a whole paragraph changed because one word moved.

  3. Ignore what you do not care about

    Whitespace and case can be excluded from the comparison. A document that came back from a different editor often differs only in trailing spaces, and hiding those leaves the real edits visible.

Common questions

Is my document uploaded?

No. The comparison runs in your browser. A contract draft and an unreleased spreadsheet are the two things people most often want to diff and least want to upload, which is why this one does not.

It marks a whole paragraph changed

You are diffing by line and the paragraph is one long line. Switch to word or character granularity — a wrapped paragraph has no line structure for a line diff to work with.

Two identical-looking lines are marked different

Almost always an invisible difference: a trailing space, a non-breaking space, or Korean stored decomposed on one side and composed on the other. The invisible-character and normalisation tools name it exactly.

Feed it from

Next

These accept what this tool produces, so the result can go straight in.