# حذف سطرهای تکراری

> سطرهای تکراری را با امکان تطبیق بزرگی و کوچکی حروف حذف کنید.

[Open tool](https://www.toolcabana.com/fa/deduplicate-lines) · [متن و نوشتن](https://www.toolcabana.com/fa/category/text-and-writing)

Tool ID: deduplicate-lines. Requested language: fa. Description language: fa. 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 (fa)

سطرهای تکراری را با امکان تطبیق بزرگی و کوچکی حروف حذف کنید.

## Steps (fa)

1. متن خود را بنویسید یا جای‌گذاری کنید، یا یک نمونه بارگذاری کنید.
2. تنظیمات پایه را تغییر دهید یا برای تنظیم دقیق نتیجه، حالت پیشرفته را باز کنید.
3. نتیجه را بررسی و کپی یا دانلود کنید. برای اجرای دستی، نتایج زنده را متوقف کنید. متن ورودی یا هر تنظیمی با بیش از 20,000 نویسه به اجرای صریح نیاز دارد.

## Settings

- حذف فاصله‌های ابتدا و انتهای سطرها (fa; key: trim; type: checkbox)
- تطبیق بزرگی و کوچکی حروف (fa; key: caseSensitive; type: checkbox)
- نگه داشتن سطرهای خالی (fa; key: keepEmpty; type: checkbox)
- نگه داشتن آخرین رخداد (fa; key: keepLast; type: checkbox)

## Limitations (fa)

عملیات متنی معمولاً تا 2,000,000 نویسه را می‌پذیرند. تجزیه‌گرها، تولیدکننده‌ها و فرمول‌های مختلف محدودیت‌های بیشتری دارند که در کنترل‌های آن‌ها نمایش داده می‌شود.

## Example input

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

## Privacy and connections (fa)

این عملیات، متن ورودی را در مرورگر شما پردازش می‌کند. کپی و دانلود فقط با اقدام شما انجام می‌شوند؛ متن ورودی در حساب یا سابقه ذخیره نمی‌شود.

## Questions (fa)

### 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/fa/sort-lines)
- [Reading time calculator](https://www.toolcabana.com/fa/reading-time)
- [Remove line breaks](https://www.toolcabana.com/fa/remove-line-breaks)
- [Character counter](https://www.toolcabana.com/fa/character-counter)
