مقارنة النصوص (diff)
اعرض الفروقات سطرًا بسطر بين نصين أو كودين. تتم كل المعالجة في متصفحك؛ لا تُرسل بياناتك إلى الخادم أبدًا.
A diff answers one question quickly: what actually changed? Paste two versions of a config file, an API response or a log, and the comparison highlights the lines that differ instead of making you scan them by eye. Useful when "it worked yesterday" and you need to find out what moved.
كيفية الاستخدام
- Paste the original text on one side and the new version on the other.
- Press Compare to see added and removed lines highlighted.
- Works line by line — best for config files, JSON, logs and code, not long prose.
- Copy or share the result as a paste when you need someone else to look.
الأسئلة الشائعة
- Is my text uploaded anywhere?
- No. The comparison runs entirely in your browser. Neither side of the diff is sent to the server unless you deliberately share it as a paste.
- Why are two lines marked different when they look identical?
- Almost always invisible characters: trailing whitespace, a tab where the other has spaces, or Windows line endings (CRLF) against Unix ones (LF). The lines look the same but the bytes differ.
- Can it compare files rather than pasted text?
- This tool takes pasted text. Open the file, copy its contents and paste them in — that keeps everything client-side, which is the point.
- Does it do word-level diffs?
- It compares line by line, which is what you want for code and configuration. For prose where a single word changes inside a long paragraph, the whole line is marked as changed.