重复行删除工具
删除文本中的重复行,支持大小写不敏感匹配、去除空白、保留顺序或排序输出。
When to use Duplicate Line Remover
Remove repeated lines from a list while choosing which occurrence to retain.
How to use Duplicate Line Remover
Paste one item per line. Set trimming, case sensitivity, retained occurrence and ordering, then inspect the counts and output.
Worked example
Default options: [ A , A, B] → [A, B]; one line removedHow the tool handles input
Default settings trim lines, compare case-sensitively, preserve order and keep the first occurrence. Keeping the last occurrence retains its position among the surviving lines. Disabling order preservation sorts with localeCompare.
Limitations
Trimming changes retained content. Empty lines participate in deduplication, including a trailing newline's empty item. Comparison does not normalize Unicode or parse CSV records.
Frequently asked questions
Does case-insensitive matching lowercase the output?
No. It uses lowercase comparison keys but retains the selected occurrence's text after any requested trimming.
What are the main limitations?
Trimming changes retained content. Empty lines participate in deduplication, including a trailing newline's empty item. Comparison does not normalize Unicode or parse CSV records.