Skip to content
Text Runs offline

Remove Duplicate Lines

Strip repeated lines from a list, keeping the order you want.

Input

0 chars

Output

0 chars
Ctrl

Questions

Does the input need to be sorted first?

No. Unlike the Unix uniq command, which only collapses adjacent duplicates, this tool tracks every line it has seen, so duplicates anywhere in the input are found regardless of order.

What is the difference between "only unique" and "first occurrence"?

"First occurrence" keeps one copy of every line, including lines that repeated. "Only lines that appear once" keeps lines that were never repeated at all, dropping duplicated lines entirely.

Open Sort Lines

Sort Lines

Sort lines alphabetically, numerically, by length or at random.

Text
Open Word Counter

Word Counter

Count words, characters, sentences and reading time.

Text
Open Case Converter

Case Converter

Convert text between camelCase, snake_case, kebab-case and more.

Text