مدقق الفروق: قارن بين نصين وظلّل التغييرات
الصق نسختين من مستند أو عقد أو مقال أو شيفرة برمجية، واعرف بدقة ما أُضيف وما حُذف، سطرًا بسطر أو كلمة بكلمة أو حرفًا بحرف، مع درجة التشابه.
المدخلات
تلميح: اضغط Ctrl + Enter للتشغيل
الإعدادات المحفوظة
المساعدة المفصلة أدناه متاحة بالإنجليزية فقط حاليًا.
حول هذه الأداة
When a contract, essay, policy or piece of code comes back with changes, you need to see exactly what changed, not reread both versions. This diff checker compares the original and the changed text and highlights additions and removals word by word, line by line or character by character, with counts and a similarity percentage.
Both texts stay in your browser, so it is suitable for confidential documents. You can ignore differences in capitalization or extra spaces when those do not matter.
طريقة الاستخدام
- Paste the original text in the first box and the changed text in the second.
- Choose to compare by words (best for prose), lines (best for code and lists) or characters (for short strings).
- Optionally ignore case or extra spaces.
- Run the comparison and review the highlighted additions and removals.
كيف يعمل الحساب
The texts are split into tokens and aligned with the Myers O(ND) difference algorithm. Similarity = 2 × unchanged tokens ÷ (tokens in both texts). In word mode, the spaces between words help alignment but are not counted as changes.
Myers O(ND) diff · similarity = 2 × unchanged ÷ (tokens in A + tokens in B)مثال تطبيقي
A lease draft changes "The tenant pays rent on the 1st." to "…on the 1st of each month." and "after 5 days" to "after 3 days". Comparing by words shows "of each month" added, "5" removed and "3" added: 4 words added, 1 removed and an 84.8% similarity.
مثال على الإدخال والنتيجة
«خلال 30 يومًا» ← «خلال 15 يومًا»: يُعلَّم 30 كمحذوف و15 كمُضاف.
القيود
- Plain text only; formatting such as bold or fonts is not compared.
- Up to 500,000 characters per text.
- Moved paragraphs appear as a removal and an addition.
آخر تحديث:
الأسئلة الشائعة
Is my text uploaded?
No. The comparison runs in your browser and nothing is sent to a server.
Which mode should I use?
Words for documents, lines for code, CSV or lists, and characters for IDs or short strings.
Can it compare Word or PDF files?
Paste the text from each file. For PDFs, the compare PDF tool works on the files directly.
استكشاف الأخطاء وإصلاحها
Every line shows as changed.
One version may use different line endings or trailing spaces. Turn on "ignore extra spaces".
The result is hard to read for long documents.
Compare by lines to see which paragraphs changed, then compare those paragraphs by words.
Copied text from a PDF shows many changes.
PDF copy adds line breaks. Compare by words with "ignore extra spaces" switched on.
الخصوصية & مجاني
هل تُخزَّن مدخلاتي؟
تبقى مدخلاتك في علامة التبويب هذه. لا نتلقى ملفاتك أو النصوص الملصقة أو قيم الحسابات.
هل هذه الأداة مجانية؟
نعم. لا يلزم تسجيل أو دفع.
انظر أيضًا
خطوات تالية مفيدة
عدّاد الكلمات والأحرف
عُدّ الكلمات والأحرف الظاهرة والفقرات والأسطر محليًا، مع تقسيم يراعي اللغة.
النصوص والكتابةمحوّل حالة الأحرف
بدّل بين الأحرف الكبيرة والصغيرة وحالة العنوان وحالة الجملة في أداة واحدة.
النصوص والكتابةإزالة الأسطر المكررة
يحتفظ بأول ظهور لكل سطر مطابق ويحافظ على الترتيب الأصلي.
النصوص والكتابة