textcleanups

Remove duplicate lines

Paste a list and keep only the first copy of each line, in the original order.

Options

Your text stays in your browser. Nothing is uploaded or saved.

All text tools

Or fix everything at once with the all-in-one text cleaner.

AI-written text

ChatGPT text cleaner
Remove hidden characters, odd spaces and Markdown from AI answers.
Remove em dashes
Replace every — with a comma, period or hyphen.
Remove Markdown
Turn Markdown into plain text: no **, #, links or tables.
AI phrase finder
Highlight overused AI words and phrases.

Lines

Remove line breaks
Turn text broken across many lines back into clean paragraphs.
Remove duplicate lines
Keep the first copy of every line and delete the repeats.
Remove empty lines
Delete blank lines, or cut long gaps down to one.
Sort lines
Sort a list A to Z, Z to A, by length, reversed or shuffled.
Add line numbers
Number every line, your way.
Remove line numbers
Strip numbers and bullets from the start of lines.
Comma separator
Turn a list into comma-separated text, and back.

Spaces and characters

Remove extra spaces
Collapse double spaces, trim lines and replace tabs.
Remove special characters
Strip symbols and keep only letters, numbers and punctuation you choose.
Remove emojis
Delete every emoji, including skin tones, flags and combined emoji.
Remove accents
Turn é into e, ü into u and ß into ss.
Convert smart quotes
Turn curly quotes, long dashes and ellipses into plain text.

Formatting and counting

Case converter
Switch text to sentence case, Title Case, UPPERCASE, camelCase and more.
Find and replace
Replace words or patterns across your text, with regex support.
Strip HTML tags
Turn HTML into clean, readable plain text.
Word counter
Count words, characters, sentences and reading time as you type.
Text diff checker
Compare two texts and see what changed.
Word frequency counter
See which words you use most.
Reverse text
Flip text backwards, by letter, word or line.

How to remove duplicate lines

  1. Paste your list into the first box, one item per line.
  2. Choose whether lines that differ only in capitals or spacing count as duplicates.
  3. Copy the deduplicated list from the result box.

The first time a line appears, it stays. Every later copy is removed. Your list keeps its original order, which matters when the order means something, like a ranked list or a log. If you'd rather have it alphabetical too, run the result through the sort lines tool.

When lines count as duplicates

LinesDefault settingsWith both options off
Apple and appleDuplicateDifferent
apple and apple  DuplicateDifferent
green apple and green  appleDuplicateDifferent

Ignoring case is right for email addresses, names, keywords and most lists people type by hand. Turn it off for things where capitals matter, such as passwords, product codes or case-sensitive file paths.

Common uses

  • Cleaning email lists before importing them into a newsletter tool
  • Deduplicating keyword lists for SEO or ad campaigns
  • Merging two lists and removing the overlap
  • Finding the unique values in a column copied from a spreadsheet

Questions

Does this change the order of my list?

No. The first copy of each line stays where it was, and later repeats are removed. Sort the list separately if you want it in alphabetical order.

Which copy is kept when there are duplicates?

The first one, exactly as you typed it. If Anna@Example.com appears before anna@example.com, the capitalized version is kept.

How many lines can it handle?

Hundreds of thousands. Everything runs in your browser, so the limit is your device's memory rather than an upload size.

Can I remove duplicates in Excel instead?

Yes, with Data > Remove Duplicates, but it works on whole columns and treats extra spaces as different values. Pasting the column here is often quicker for a one-off list.