Text utility

Duplicate Line Remover

Clean text lists by keeping first or last unique occurrences, extracting duplicates, counting rows, normalizing Unicode and whitespace, ignoring case and locale-sorting output in your browser.

Input list

Paste lines to clean

Local only

Ready.

Cleaned output

Line statistics

Duplicate summary

Total lines0
Blank lines0
Unique lines0
Duplicate groups0
Removed rows0
Output lines0

Duplicate groups

LineCountFirst rowLast row

Popular duplicate-line tasks

Mode reference

ModeWhat it returnsBest for
Keep unique linesOne selected occurrence of each lineCleaning emails, keywords and IDs
Show duplicate lines onlyOne row for each value that occurs more than onceFinding repeated records
Show removed occurrencesEvery occurrence excluded by the keep-first or keep-last ruleAuditing exactly what changed
Show line countsEach unique line with its occurrence countQuick frequency analysis

Duplicate line notes

Local processingYour list is processed in the browser and is never uploaded.
Case and sortingCase-insensitive matching and locale-aware numeric sorting follow the current page language.
Whitespace rulesTrim and collapse options clean copied spreadsheets, logs and keyword exports.
Unicode normalizationNFC matches canonically equivalent accents; NFKC also folds compatibility forms such as full-width characters.

Duplicate line remover FAQ

Does the tool keep the first duplicate or the last?

You can choose either. Unique output and removed-occurrence auditing follow the selected keep rule.

Can I remove empty lines at the same time?

Yes. Keep Remove blank lines enabled to omit empty rows; disable it to treat blank lines as a normal value.

Why use Unicode normalization?

Visually identical text can use different Unicode sequences. NFC merges canonical equivalents, while NFKC also merges compatibility forms.

Can I sort after removing duplicates?

Yes. Choose ascending or descending locale-aware sorting; count mode is sorted by line value rather than count prefix.