Remove Duplicate Lines
Paste a list and keep each line only once, in the same order. Choose whether case, spaces and empty lines count.
7 lines in, 3 kept, 3 duplicates removed, 1 empty line removed.
First copy kept
Every repeated line is removed and the first one stays where it was.
Sort if you like
Sort the cleaned list A to Z, ignore case and spaces, and drop empty lines.
Private
Your text is processed in your browser. Nothing is sent or saved.
How to use the Remove Duplicate Lines
- Paste your list, one item per line.
- Choose whether case and spaces count, and whether to drop empty lines or sort.
- Copy the cleaned list.
Questions and answers
Is my text sent or saved anywhere?
No. Everything happens in your browser. The text is not sent to a server and is not saved after you leave the page.
Is it free?
Yes. The tool is free to use and needs no account or sign-up.
Which copy of a repeated line is kept?
The first one. It stays in the same place, and every later copy is removed.
Are Apple and apple the same line?
By default, yes. Tick Match case to treat them as different lines.
More free tools
Find and Replace
Replace a word, phrase or pattern everywhere in your text, with whole word, match case and regular expression options.
Open toolWord Frequency Counter
See how many times each word appears in your text and its share, with options to skip common words and short words.
Open toolClient Image Compressor
Compress an image in your browser: set the strength and width and see the new size.
Open toolCompress Image to 20 KB
Make a photo or image 20 KB or smaller for an online form, in your browser.
Open toolNeed a custom tool or app for your business? See our web and software development and AI automation services.