Giga Useful Tools
All tools

Text

Text diff

Compare two texts line by line and see what changed.

+2 -1 · 2 unchanged

Hola mundo
- Segunda línea
+ Segunda línea editada
Tercera línea
+ Cuarta línea

Everything runs in your browser. No file is ever uploaded to a server.

How to use it
  1. 1Paste or type your original text into the left box.
  2. 2Paste or type the updated text into the right box.
  3. 3Read the diff below: green lines were added, red lines were removed, and the counts above summarize how many lines changed.
Frequently asked questions
Does it compare word by word or line by line?+

Line by line. Each line in the original text is matched against the new text using a longest-common-subsequence algorithm, so unchanged lines stay neutral, removed lines show in red, and added lines show in green. Even if a line just moved position or only one word inside it changed, it's the whole line that gets flagged.

Can I use it to compare code or config files, not just prose?+

Yes, it works on any plain text, line by line, so it's just as useful for a diff of code, JSON, YAML or CSV rows as it is for paragraphs. Leading spaces and exact punctuation count, since lines are compared as literal strings.

Is what I paste in here private?+

Yes. Both text boxes are compared entirely in your browser: nothing you paste is sent anywhere, so it's safe to diff drafts, internal notes or anything else you'd rather not upload elsewhere.