± Text Diff Checker

Compare two blocks of text side by side and see differences highlighted. Line-by-line and word-level diff view. Free online text diff tool — no signup, works in browser.

How to Use

1

Paste your texts

Paste the original text in the left box and the modified text in the right box.

2

Click Compare

Press Compare to instantly highlight all additions, deletions, and unchanged lines.

3

Read the results

Green lines are additions, red lines are deletions, grey lines are unchanged.

Frequently Asked Questions

How does the diff checker work? +
The tool compares your two texts line by line. Lines only in the first text are shown in red (removed), lines only in the second text are shown in green (added), and matching lines are shown in grey (unchanged).
Can I compare code files? +
Yes. Paste any code, configuration files, JSON, SQL, or plain text. The tool highlights exactly which lines changed.
What does "ignore whitespace" do? +
When enabled, lines that differ only in leading/trailing spaces or tabs are treated as equal. Useful when comparing code that was reformatted.
Is there a size limit? +
There is no hard limit, but very large texts (100,000+ lines) may be slow since all processing happens in your browser.
Is my text sent to a server? +
No. The entire comparison is done in JavaScript in your browser. Your text never leaves your device.


Tam Rehber: Metin Karşılaştırma Aracı

Bir diff aracı, metnin iki versiyonunu karşılaştırır ve neyin değiştiğini — eklemeler, silmeler ve değişiklikler — vurgular. Bir meslektaşın belge düzenlemelerini incelemeniz, bir yapılandırma değişikliğini hata ayıklamanız veya bir hukuki sözleşmeyi prova okumanız gerektiğinde, iyi tasarlanmış bir diff görünümü değişiklikleri anında görünür kılar.

Diff Granülaritesi

Myers Diff Algoritması

Myers algoritması 1986'da Eugene Myers tarafından yayımlanmış ve en yaygın kullanılan diff algoritmasıdır. En kısa düzenleme betiğini bulur — bir metni diğerine dönüştürmek için gereken minimum ekleme ve silme sayısı. git diff, GNU diff ve çoğu diff kütüphanesi tarafından kullanılır.

Boşlukları Yoksayma

Yalnızca girintinin değiştiği yeniden biçimlendirilmiş kod veya belgeleri incelerken, boşlukları yoksayan diffler çok değerlidir:

git diff -w HEAD~1 HEAD -- config.json

Node.js'de Programatik Diff

const Diff = require('diff');

const biri = 'Hızlı kahverengi tilki';
const digeri = 'Hızlı kahverengi köpek';

const degisiklikler = Diff.diffWords(biri, digeri);
degisiklikler.forEach(parca => {
  if (parca.added) process.stdout.write('[+' + parca.value + ']');
  else if (parca.removed) process.stdout.write('[-' + parca.value + ']');
  else process.stdout.write(parca.value);
});
🧰 50+ Tools