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-Hant/remove-duplicate-lines" width="100%" height="640" style="border:1px solid #e5e5e5;border-radius:12px;max-width:680px" loading="lazy" title="Monu Tools"></iframe>

相關工具