How this calculator works
- Step 1Splitone per lineEvery line break starts a new item.
- Step 2Comparecase, spacesYour options decide which lines count as the same.
- Step 3Keep firstfirst copyLater copies are dropped; order is kept unless you sort.
The tool reads your text line by line and keeps the first copy of each one. Everything runs in your browser; the list is never uploaded or put in the link.
Worked example: a pasted list of names
- Defaults
trim spaces, remove blanks, case matters
- Pasted“Asha”, “Ravi”, “asha”, “ Ravi ”, (blank), “Meera”, “Ravi”, “Kabir”8 lines
- Blank removed−1
- Duplicates removedtwo more Ravi−2
- KeptAsha, Ravi, asha, Meera, Kabir5 lines
“ Ravi ” matches “Ravi” because trimming removes the stray spaces. “asha” stays, because case matters by default.
How the options change the count
Each option merges more lines. Sorted A to Z with case ignored, the list becomes Asha, Kabir, Meera, Ravi.
Read the result
Lines kept + duplicates removed + blank lines removed always equals the lines you pasted.
The “Most repeated” list shows which lines appeared more than once, so you can spot a double entry before you send a list on.
Assumptions and limits
- Exact by defaultEvery character counts unless you ignore case.
- Spaces and tabsTrim removes only these, at each end.
- Text sortNumbers sort as text: 10 comes before 9.
- Not fuzzyNear-duplicates and typos are not merged.
Related text tools
Removing duplicates is one way to clean a list. Comparing and counting are others.
To see what changed between two lists, use the diff checker. The word counter counts lines and words, and the case converter makes entries consistent first.
Common mistakes
Mistake: Sorting a list whose order matters.
Instead: Keep the original order.
Mistake: Ignoring case for codes or passwords.
Instead: Leave case on when capitals carry meaning.
Mistake: Expecting “Ravi K” to match “Ravi”.
Instead: Only identical lines merge; edit near-duplicates by hand.
Checking the method
A separate script re-works every golden value with list membership and Python's own sort, without a hash map.
Read how we test our calculators, or browse more everyday tools.