Remove Duplicate Lines from Text
Remove repeated lines from a text list. Processing for supported tools happens locally in your browser.
Remove repeated lines from a text list. Processing for supported tools happens locally in your browser.
Duplicate line removal helps clean copied lists, repeated identifiers or simple text records. Review the output because exact matching may treat capitalization or extra spaces as different values.
Only lines that match under the chosen settings are removed. Lines that are similar but not the same, such as a different spelling, stay in the list. Keep the original list until you have checked the result, and do not use a text tool instead of a database rule when you must guarantee unique identifiers. Sorting the list first with Sort Lines makes near-duplicates easier to see.
It removes repeated lines according to the current text comparison behavior; similar but non-identical lines may remain.
Use the original text, so keep a backup before processing an important list.
The first. Later copies are removed and the order of the other lines does not change.
Only if you switch on Ignore letter case.
Take the five lines apple, Apple, apple, banana, apple. With the default settings the tool keeps three: apple, Apple and banana, because the capital letter makes one line different and the leading spaces make another. Tick both Ignore surrounding spaces and Ignore letter case and it keeps two: apple and banana.
Want more detail, examples and answers to common questions? Read the Remove Duplicate Lines guide.