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

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

[Open tool](https://www.toolcabana.com/ar/deduplicate-lines) · [النصوص والكتابة](https://www.toolcabana.com/ar/category/text-and-writing)

Tool ID: deduplicate-lines. Requested language: ar. Description language: ar. Complete guide translation: yes.

## Overview (en)

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.

## Supported tasks (ar)

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

## Steps (ar)

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

## Settings

- إزالة المسافات من طرفي الأسطر (ar; key: trim; type: checkbox)
- مراعاة حالة الأحرف (ar; key: caseSensitive; type: checkbox)
- الإبقاء على الأسطر الفارغة (ar; key: keepEmpty; type: checkbox)
- الإبقاء على آخر ظهور (ar; key: keepLast; type: checkbox)

## Limitations (ar)

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

## Example input

```text
Hello world.
A second line.
Café, İstanbul, 日本語, and 👨‍👩‍👧‍👦.
```

## Privacy and connections (ar)

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

## Questions (ar)

### 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 محرف. تفرض أدوات التحليل والتوليد والصيغ الفردية حدودًا إضافية تظهر في عناصر التحكم الخاصة بها.

## Related tools

- [Sort lines alphabetically](https://www.toolcabana.com/ar/sort-lines)
- [Reading time calculator](https://www.toolcabana.com/ar/reading-time)
- [Remove line breaks](https://www.toolcabana.com/ar/remove-line-breaks)
- [Character counter](https://www.toolcabana.com/ar/character-counter)
