InputTestHub

Remove Duplicate Lines

Removes repeated lines from any list, with options for case sensitivity, trimming and keeping only the duplicates instead.

Text Nothing uploaded No sign-up Free, unlimited
Text tool
Paste something on the left to see the result.
In short Removing duplicate lines compares each line against the ones before it and keeps only the first occurrence, so a list of 500 addresses with twenty repeats comes back as 480. The comparison is an exact string match after the optional trim and case-folding you choose, and both of those options change the answer: "Alice" and "alice " are different lines by default and the same line with trimming and case-folding on. Which behaviour you want depends on the data — email addresses are case-insensitive in the domain part and conventionally treated as such throughout, while passwords or codes are not. Order is preserved by default: the first occurrence of each line keeps its original position, so the output is the input with later repeats removed rather than a sorted set. That matters when the order carries meaning, such as a ranked list or a log. The option to keep only the duplicates instead is the more useful direction surprisingly often, because it answers the opposite question — not "what is my clean list" but "what exactly was repeated".

How to use the Remove Duplicate Lines

  1. Paste your text into the input box on the left.
  2. Adjust the options above the box if you need a different behaviour.
  3. The converted text appears on the right; press Copy to put it on your clipboard.

About the Remove Duplicate Lines

The Remove Duplicate Lines removes repeated lines from any list, with options for case sensitivity, trimming and keeping only the duplicates instead. It runs as plain JavaScript inside the page, which means there is no upload step, no queue and no size limit imposed by a server — the only limit is your own device.

What people use it for

  • Cleaning an email or keyword list before importing it.
  • Finding which entries in two merged exports were duplicated.
  • Reducing a scraped list to unique values.

Details

ComparisonExact string match after optional trim and case folding
OrderThe first occurrence keeps its original position unless you switch sorting on

Frequently asked questions

Is the Remove Duplicate Lines free, or is there a paid tier?
Free, unlimited, and no email address required. You can use it a hundred times a day and nothing changes.
Is what I paste into the Remove Duplicate Lines stored?
No. The Remove Duplicate Lines runs entirely in your browser using JavaScript. Nothing is transmitted, logged or stored, which you can verify yourself in the Network tab of your browser's developer tools.
What do people use the Remove Duplicate Lines for most?
The jobs it is built for: cleaning an email or keyword list before importing it. Finding which entries in two merged exports were duplicated. Reducing a scraped list to unique values. It is built for exactly those cases rather than being a general-purpose tool with this bolted on.
Which values should I know?
Comparison is Exact string match after optional trim and case folding. Order is The first occurrence keeps its original position unless you switch sorting on. These are printed on the page itself, so you do not have to take them on trust.
Does the Remove Duplicate Lines work on a phone?
Yes. The page is responsive and the utility works in Chrome, Safari, Firefox, Edge and Samsung Internet on both Android and iOS. There is no app to install and nothing to sign into.

Related text tools

All 92
01

Case Converter

Converts text between twelve cases: UPPER, lower, Title, Sentence, camelCase, PascalCase…

02

Uppercase Converter

Converts any text to UPPERCASE instantly, keeping numbers, punctuation and line breaks exactly…

03

Lowercase Converter

Converts any text to lowercase, including text that was typed with Caps Lock on by mistake.

04

Title Case Converter

Converts headings to proper Title Case using AP and Chicago rules, keeping short words like…

05

Sentence Case Converter

Rewrites text in sentence case: first letter of each sentence capitalised, the rest lowercase…

06

camelCase Converter

Turns any phrase into camelCase for JavaScript, Java and JSON keys, stripping spaces, hyphens…

07

PascalCase Converter

Converts phrases to PascalCase (UpperCamelCase) for class names, React components and type…

08

snake_case Converter

Converts text to snake_case for Python variables, database columns and file names.

09

kebab-case Converter

Converts text to kebab-case for URLs, CSS class names and HTML attributes.

10

CONSTANT_CASE Converter

Converts text to SCREAMING_SNAKE_CASE for environment variables, constants and configuration…