Работа с текстом

Удаление повторяющихся строк

Удаление повторяющихся строк списка.

Удаление повторяющихся строк

Работает на UtilBrix

Данные остаются в вашем браузере. Аккаунт не нужен. Character counts use Unicode code points. Reading: 200 words/minute. Speaking: 130 words/minute.

Подробные методы и примеры доступны на английском.

Step-by-step instructions (English)

  1. Paste a list with one entry per line.
  2. Choose whether to trim edges, ignore case, discard blank lines, and preserve the first or last occurrence.
  3. Run the tool and compare the remaining entries with the original list.

Формула и метод

Lines are compared after optional trimming and case normalization. Preserve first keeps the earliest occurrence; preserve last keeps the final one in its original relative order. Ignoring empty lines removes them from the output.

Практический пример

Apple, apple, and Banana on separate lines become Apple and Banana when Ignore case and Preserve first are selected.

When this tool is useful

Clean a list of repeated labels, URLs, or identifiers while keeping a chosen occurrence order. Decide whether case and edge spaces are meaningful before treating two lines as duplicates.

Common mistakes and limitations

  • Ignoring case can merge identifiers that a receiving system treats as distinct.
  • The comparison covers the whole line; matching one column of a CSV requires a separate column-aware process.

Practical questions about this tool (English)

Will removing duplicates sort the list?

No. Deduplication retains the relevant original order. Use Sort Lines afterward if alphabetical or numerical ordering is also needed.

What is the difference between preserving first and last?

Preserve first retains the earliest occurrence. Preserve last retains the final occurrence and its relative position among the surviving lines.

Put this tool into practice

Другие полезные инструменты

Установить UtilBrix

Открывайте инструменты с главного экрана.

  1. Откройте меню браузера (⋮).
  2. Выберите «Установить приложение» или «Добавить на главный экран».
  3. Подтвердите добавление UtilBrix на главный экран.

Если пункта нет, откройте страницу в Chrome на Android.

Поиск инструментов

↑ ↓ Navigate · Enter Open · Esc Close