Text & code / LING.TOOLS

Text diff

Compare two texts by character, word or line, highlight additions and removals, and copy a unified diff.

Input & settings

01
Configure tool input
Processed in your browser. Your input is never uploaded or saved.

Result

02

Ready when you are

Set up your input and run the tool. Your result will appear right here.

Private · Instant · Local

GUIDE & CONTEXT

About this tool

Review edits without uploading either version. Character mode reveals small punctuation changes, word mode suits prose, and line mode is useful for code or configuration. A unified diff provides a portable textual summary, while visual highlighting makes additions and removals easier to scan.

How to use it

  1. Paste the original text and the modified text into their respective fields.
  2. Choose character, word or line comparison.
  3. Compare the highlighted changes and copy the unified diff when you need a text-only result.
Example

Comparing const limit = 10; with const limit = 20; in character mode highlights the changed digit.

↑ ↓ navigate · Enter openEsc close