Remove duplicate lines
Paste a list and get it back with the repeats gone and the first of each kept in place. It tells you how many it removed.
Two toggles handle the awkward cases: ignore the spaces around a line, and ignore whether it is capitalised, when deciding what counts as the same.
No duplicates found.
0 words, 0 characters
Questions
- Is my text sent anywhere?
- No. Every count and every conversion happens in this page as you type. There is no server here that could receive what you paste, and you can check it in your browser's network tab: typing produces no requests at all.
- Which copy of a duplicate is kept?
- The first one, in the order they appear, and it is kept exactly as written. The toggles only change how two lines are compared, never how the kept line looks.
- Does it reorder my lines?
- No. The lines that survive stay in their original order. If you want them sorted as well, run the result through the sort tool afterwards.
- What do the toggles do?
- Ignore surrounding spaces treats " apple " and "apple" as the same line. Ignore case treats "Apple" and "apple" as the same. Both off means only exactly identical lines are treated as duplicates.
- Does it change the last line?
- No. Blank lines are treated like any other line, so a run of empty lines is collapsed to one if they count as duplicates of each other.
The other tools here
- Word counter, words, characters, sentences and reading time
- Case converter, upper, lower, title and sentence case
- Clean text, fix spacing, line breaks and duplicate lines
- Find and replace, swap text, plain or with a pattern
- Sort lines, a to z, z to a, numeric, or shuffle
- Lorem ipsum, placeholder text, by paragraphs or words
- Read aloud, have text spoken by your device's voice
- Transcribe speech, turn a recording or mic into text, on your device