Monu Tools

删除重复行

从列表或文本中删除重复行,可选择忽略大小写、修剪和排序。

如何使用 删除重复项

  1. 01

    粘贴你的行或列表。

  2. 02

    选择是否忽略大小写、修剪、删除空行或排序。

  3. 03

    复制去重后的结果。

What it does

This tool removes duplicate lines from any list or block of text. By default it keeps the first occurrence of each line in its original position and drops the later repeats, so the order you had is preserved.

It is the quick fix for messy lists: deduplicating an email or address list, cleaning an export, collapsing repeated log lines, or tidying a keyword list where the same term crept in several times.

The processing happens entirely in your browser, so even long lists are handled instantly and nothing you paste is uploaded.

How matching works

Matching is exact by default, comparing the whole line character for character. That makes it predictable: two lines count as duplicates only if they are truly identical, unless you loosen the rules with the options below.

Options you can combine

Trim ignores leading and trailing spaces, turning off case-sensitivity treats "Apple" and "apple" as the same line, and you can drop empty lines so blank rows do not survive.

You can also sort the result alphabetically if order does not matter and you would rather have a clean, sorted list than the original sequence.

常见问题

它会保留原始顺序吗?

会。除非你启用排序,否则每行的首次出现会保留在其原始位置。

如何匹配重复项?

默认按完全相同进行比较。启用修剪可忽略首尾空格,关闭区分大小写可将 "Apple" 和 "apple" 视为相同。

我的数据私密吗?

私密。处理完全在你的浏览器中进行;不会上传任何内容。

嵌入此工具

将此工具添加到你自己的网站。复制下方代码片段即可,它会自动保持最新。

<iframe src="https://monu.tools/embed/zh/remove-duplicate-lines" width="100%" height="640" style="border:1px solid #e5e5e5;border-radius:12px;max-width:680px" loading="lazy" title="Monu Tools"></iframe>

相关工具