Skip to main content
Text Tools
Popular
Recently added

Text Diff

Compare two texts line by line and highlight additions and removals.

Introduction

Compare two text versions and highlight added and removed lines with an LCS-style diff. Handy for reviewing copy edits, configs, and small code snippets.

Features

  • Line-by-line comparison
  • Added and removed line highlighting
  • Ignore whitespace option
  • Live diff stats

How to use

  • 1
    Paste the original text on the left and the changed text on the right.
  • 2
    Review highlighted additions and removals in the diff panel.
  • 3
    Enable Ignore whitespace if spacing-only changes should be skipped.

Example

Changed line

Input
Hello
Old line
End
Output
Hello
+ New line
− Old line
End

Benefits

  • Use Text Diff without installing a desktop app or browser extension.
  • Works well alongside Find & Replace and Whitespace Remover for adjacent steps in the same workflow.
  • Results stay in this browser tab until you copy or download them.

FAQs

This tool compares by line. Whole lines are marked as added or removed when they differ.

No. Diffing runs entirely in your browser.

It trims and collapses whitespace before comparing lines so formatting-only changes are ignored.

Pair Text Diff with Find & Replace, Whitespace Remover, Word Counter. See Related tools on this page.


Developer resources