Loading the interface. JavaScript is required; controls stay disabled until ready.
Paste or type the text you want to work with.
Run the tool to generate your result here.
Input and output are limited to 1,000,000 UTF-16 units. Line operations support up to 20,000 lines; Compare is limited to 250,000 line pairs. Results remain plain text in your browser.
How Remove Duplicate Lines works
Keep the first spelling and original spacing of each matching line. Matching is exact by default; case-insensitive matching uses English lowercase, and trim affects comparison only. Blank lines are deduplicated too.
How to use this tool
- Paste or type text into the labelled input.
- Choose exact matching or enable case/whitespace matching, then select Process text.
- Review the output, then copy it. Reset clears the current inputs and result.
Processing happens locally. Text is not uploaded or saved by this tool. Keep a separate copy before leaving the page.
A practical example
apple, pear, apple on separate lines becomes apple, pear.
Questions and answers
Does trimming change my output?
No. The trim option changes only the comparison key. The first original line is retained.
Does removing duplicates change the order of my list?
No. The first time each line appears, it stays in its original position, and later copies are removed. If you also want the list in alphabetical order, remove duplicates first and then use a text sorter. Doing it the other way round gives the same unique lines but loses the original order.
How is this different from removing duplicates in Excel?
Excel and Google Sheets remove duplicate rows across selected columns in a spreadsheet. This tool works on plain lines of text, so it suits lists copied from emails, code, logs or keyword research. For a CSV file, removing duplicate lines only catches rows that are identical in every column.
How can I see how many duplicates were removed?
Compare the line count of the input and output. A line counter shows both totals in seconds. If a 1,200-line keyword list drops to 950 lines, 250 duplicates were removed. Keep the original list until you have checked a few of the removed entries.
Keep the first matching line
Deduplicating a list removes repeated entries according to a matching rule. Choose the rule before processing: two rows that look similar can contain different spaces or capitalization, and those differences may matter to the destination.
A practical example
A list containing blue, red and blue becomes blue followed by red under exact matching. Blue and blue with different capitalization remain separate unless you enable case-insensitive matching. Surrounding-whitespace matching can make padded entries equivalent, but the first retained line keeps its original spacing.
Matching is different from rewriting
Trim and ignore-case options change comparison, not the spelling of the saved first occurrence. Blank lines are deduplicated too. If multiple records share a name but have different data, they are not identical whole lines. This tool does not merge spreadsheet rows by a selected key or decide which record is most up to date.
Review counts and order
Deduplication preserves first-occurrence order rather than sorting the result. A trailing blank line can affect how the list looks, so check total and non-empty lines separately. Keep the source when case-sensitive codes or intentional repeats are important. Compare a short sample before replacing a larger list in another system.
Worked example: cleaning an email list
A sign-up export contains anna@example.com, Anna@example.com and anna@example.com with a trailing space. With exact matching, all three are kept because they differ by a capital letter or a space. Turn on case-insensitive matching and whitespace trimming and only the first line survives, in its original spelling. Email addresses are not case sensitive in practice, so the relaxed setting is the right one for this list.
Choose your next task
- Line counter: Compare total and blank-line counts after removing repeats.
- Text sorter: Order the distinct entries as a separate step.
- Text cleaner: Keep cleanup opt-in and separate from rewriting or code formatting.
- Text compare tool: Inspect which lines disappeared from a source list.