ToolCabana

حذف الأسطر المكررة

احذف الأسطر المكررة مع إمكانية مراعاة حالة الأحرف.

Favorites are saved in this browser. Find them in My favorites.

حذف الأسطر المكررة

Instant results · processed in your browser
Update results automatically as you type or change settings. Turn off to run manually.Clear your input, files and result, and restore the default settings.
Load sample text to explore what this tool can do. This replaces your current input.
0 charactersClear the source text.

Type or paste to update the result automatically.

Your result appears here

Type, paste, or use an example. Copy your result when it is ready.

كيفية استخدام حذف الأسطر المكررة

Remove Duplicate Lines deletes repeated lines from a list and keeps the first copy of each in its original order. Matching is case-sensitive by default; you can switch that off, trim spaces from line edges before comparing, drop empty lines, or keep the last occurrence of each line instead of the first.

  1. اكتب النص أو الصقه، أو حمّل مثالًا.
  2. غيّر الإعدادات الأساسية أو افتح الوضع المتقدم لضبط النتيجة بدقة.
  3. راجع النتيجة وانسخها أو نزّلها. أوقف النتائج المباشرة مؤقتًا للتشغيل اليدوي. يتطلب النص أو أي إعداد منفرد يتجاوز 20,000 محرف تشغيلًا صريحًا.

وظائف هذه الأداة

احذف الأسطر المكررة مع إمكانية مراعاة حالة الأحرف.

إزالة المسافات من طرفي الأسطر
Set this value for your task.
مراعاة حالة الأحرف
Set this value for your task.
الإبقاء على الأسطر الفارغة
Set this value for your task.
الإبقاء على آخر ظهور
Set this value for your task.

الحدود والمعالجة

تقبل عمليات النص عادةً ما يصل إلى 2,000,000 محرف. تفرض أدوات التحليل والتوليد والصيغ الفردية حدودًا إضافية تظهر في عناصر التحكم الخاصة بها.

مثال للإدخال
Hello world.
A second line.
Café, İstanbul, 日本語, and 👨‍👩‍👧‍👦.

الأسئلة الشائعة

How do I remove duplicate lines while ignoring uppercase and lowercase?

Turn off Match case. Lines that differ only in capitalization are then treated as duplicates, and the copy that is kept retains its original casing. With Match case on, Apple and apple both stay in the list.

Why are lines with trailing spaces not removed as duplicates?

By default lines are compared exactly, so an extra space at the end makes them different. Enable Trim line edges to strip leading and trailing whitespace before comparing; the trimmed versions are what appear in the output.

Can I keep the last occurrence of a duplicate line instead of the first?

Yes. In Advanced mode, enable Keep the last occurrence. Each repeated line then stays at the position of its final appearance, and the remaining lines keep their relative order.

أين تتم معالجة النص المدخل؟

تعالج هذه العملية النص في متصفحك. يتطلب النسخ والتنزيل إجراءً صريحًا؛ ولا يُحفظ النص المدخل في حساب أو سجل.

ما حدود الإدخال؟

تقبل عمليات النص عادةً ما يصل إلى 2,000,000 محرف. تفرض أدوات التحليل والتوليد والصيغ الفردية حدودًا إضافية تظهر في عناصر التحكم الخاصة بها.