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 символов. Отдельные парсеры, генераторы и формулы применяют дополнительные ограничения, отображаемые в их элементах управления.