Text Compare

Compare two pieces of text locally in your browser with a unified diff. Inserted lines are green, removed lines are red, and matching line numbers make review easier.

Use the previous and next buttons to jump between changed blocks in long files. You can also ignore case, normalize whitespace, remove whitespace, ignore punctuation, or highlight changed words inside modified lines.

Choose comparison options carefully

Normalize whitespace when indentation and repeated spaces should count as equivalent, or remove all whitespace when only the visible characters matter. Whole-line changes remain easier to audit with unchanged context enabled, while inline word highlighting is useful for prose, configuration values, and small code edits.

Comparison runs locally and accepts pasted text or loaded files. The copied unified diff is convenient for review notes and issue reports, but it is not a patch file generator for every source-control workflow.

Related tools: JSON Compare ยท Line Sorter