全球免费使用

删除重复行

保留每个完全相同行的首次出现,并保持原有顺序。

你的数据只保留在此标签页中。我们不会收到你的文件、粘贴的文本或计算数值。

输入

提示:按 Ctrl + Enter 运行

你的结果

结果将显示在这里。

下方的详细帮助目前仅提供英文版。

关于此工具

Mailing lists, keyword exports, inventory codes and log extracts often contain the same line several times. This tool keeps the first occurrence of each line and removes later exact repeats, without re-sorting the list, so the order you had is preserved.

Matching is exact. Lines that differ only in capitalization or trailing spaces are treated as different, which avoids merging entries you did not mean to merge. Clean those first if you want them treated as the same.

使用方法

  1. Paste the list, one item per line.
  2. Run the tool.
  3. Copy the de-duplicated list.
  4. If near-duplicates remain, normalize case with the case converter and spaces with the whitespace cleaner, then run it again.

计算原理

Lines are read in order; a line is kept only if exactly the same line (including spaces and case) has not appeared before.

计算示例

A product list contains "apple", "Apple", "apple " (with a trailing space), "pear" and "apple". The result keeps "apple", "Apple", "apple " and "pear": only the last line was an exact repeat. Lowercasing and trimming first would reduce the list to "apple" and "pear".

示例输入和结果

苹果 / 梨 / 苹果 → 苹果 / 梨

局限性

  • Exact matches only; no fuzzy matching.
  • Blank lines are treated like any other line, so only the first blank line is kept.
  • Up to 100,000 characters.

最后更新:

常见问题

Does it sort the list?

No, the original order is kept. Use sort lines afterwards if you want alphabetical order.

Can it ignore uppercase and lowercase?

Not directly. Convert the list to lowercase first if case should not matter.

What about duplicate rows in a CSV?

This works on whole lines, so identical CSV rows are removed. For column-aware cleanup, use the CSV cleanup tool.

故障排除

Duplicates are still there.

Look for differences in case, trailing spaces or invisible characters copied from websites.

My blank lines disappeared.

Repeated blank lines are duplicates of the first blank line. Keep paragraph breaks by removing duplicates only from a list.

Email addresses with different capitals were kept.

Lowercase the list first; email addresses are not case-sensitive in practice.

隐私 & 免费使用

我的输入会被保存吗?

你的数据只保留在此标签页中。我们不会收到你的文件、粘贴的文本或计算数值。

这个工具免费吗?

是的。无需注册或付费。

在浏览器中处理

推荐下一步