重複行削除
重複した行を削除し、一意の行だけを残します。
What is Remove Duplicate Lines?
Remove Duplicate Lines is a free online tool that deduplicates text by keeping only the first occurrence of each line. It is ideal for cleaning up lists of URLs, email addresses, keywords, or any line-based data with unwanted repetitions.
How to use
- Paste your text (one item per line) into the input box.
- Click Remove Duplicates. Only unique lines are kept.
- Copy the result to your clipboard with the Copy button.
Notes
- Comparison is case-sensitive: "Apple" and "apple" are treated as different lines.
- Empty lines are also deduplicated Emultiple blank lines become one.
- The order of the remaining lines is preserved from the original input.
FAQ
- Does it remove leading/trailing spaces before comparing?
- No Elines are compared exactly as-is, including surrounding whitespace. Trim your lines first if you want whitespace-insensitive deduplication.
- Can I use this to clean a list of email addresses?
- Yes. Paste one email per line and click Remove Duplicates. The result will contain only unique addresses. Note that comparison is case-sensitive, so normalize case first if needed.
- Is there a line limit?
- There is no enforced limit. The tool handles thousands of lines without issue on modern browsers.
概要
テキスト中の重複行を削除して一意な行だけを残します。ログ整理、キーワード一覧、1行1項目データの整形に有効です。
使い方
- 入力欄に行データを貼り付けます。
- 重複削除を実行します。
- 整形後の結果をコピーします。
使用例
-
キーワード重複除去
入力: apple\napple\nbanana
出力: apple\nbanana
-
ログ簡易整理
入力: INFO A\nINFO A\nINFO B
出力: INFO A\nINFO B
補足
- 前後スペースが違うと別行として扱われます。
- 大文字小文字の差で重複判定が変わる場合があります。
- 行順が重要なデータは結果を必ず確認してください。
よくある質問
- 行の順序は維持されますか?
- はい。最初に出現した順序を維持します。
- 空行はどうなりますか?
- 入力次第です。空行が意味を持つ場合は出力を確認してください。
- 大量行でも使えますか?
- 一般的な範囲なら可能ですが、極端に大きい入力では遅くなることがあります。
Embed this tool
Paste this iframe into any HTML page to embed 重複行削除 on your site: