ToolsAre.Us — Next-Gen Tools Hub ToolsAre.Us — Next-Gen Tools Hub

Remove Duplicate Lines

Paste a list, get it back with the repeats gone. Order is kept unless you ask for sorting.

Show
Matching
Sort
0
Lines in
0
Lines out
0
Removed
0
Repeated

Dedup takes a list of lines and gives you back the same list with the repeats removed. It runs as you type, keeps your original order by default, and never sends your text anywhere.

Who this is for

Anyone holding a list that has been pasted together from more than one place. Common cases: an email list merged from two exports, a column of part numbers copied out of Excel where the same item was picked twice, a log file where you want the distinct error messages rather than every occurrence, or a set of URLs collected over several sessions. If your list lives in a database or spreadsheet you may be better served by that tool's own DISTINCT or Remove Duplicates feature — this page is for the times when you just have text on the clipboard and want it cleaned in a few seconds.

How to use it

  1. Paste your list into the left box, one item per line.
  2. The result appears on the right immediately. Nothing needs to be pressed.
  3. Adjust the matching options if lines that look identical are not being treated as duplicates.
  4. Press Copy, or Download .txt to save the result as a file.

What the options do

The three modes

Unique lines is the normal one: every distinct line, once each. Only repeated lines shows just the lines that appeared more than once — use it to see what was duplicated rather than to clean the list. Only lines used once is the opposite: it shows the lines that appeared exactly once and drops anything that repeated at all. That last one is worth knowing about, because it answers a different question — not "what is my clean list" but "what only turned up a single time".

Worked example

Say you paste eight lines: apple, Banana, apple, cherry, banana, apple (with a trailing space), a blank line, and cherry.

Common mistakes

Accessibility

Every control is a real button, checkbox or textarea, so the whole page works from the keyboard with Tab and Space. The mode and sort groups are marked up as button groups with aria-pressed so a screen reader announces which one is active, and the counts are announced when they change. Focus outlines are left visible rather than styled away.

Limits and honest caveats

Everything runs in one browser tab on your own device, so the amount you can process is bounded by that tab's memory rather than by any limit set here. Very large pastes — in the order of hundreds of thousands of lines — will work but may freeze the tab for a moment while they are processed, because the work happens on the main thread rather than in a background worker. There is no undo: the input box is yours to edit, and the result is recalculated from scratch each time.

Comparison is done on the exact characters in the line. Two strings that look the same but use different Unicode representations — for example an accented character written as one code point versus a letter plus a combining accent — will not be treated as duplicates. That is rare in practice but it does happen with text copied out of some systems.

Privacy

Your text stays in the tab. There is no upload endpoint on this page and nothing is written to a server, which also means nothing is stored — close the tab and the text is gone. See the privacy policy for how the site as a whole behaves.

Related tools

The Notepad has a Tools menu with sort and dedupe if you would rather work in a full editor, the Word Counter gives you counts and keyword frequency for the same text, and the CheckOff tool is the one to use when you want to tick items off a list rather than clean it.

Questions

Does it change the order of my lines?

No, unless you turn on sorting. By default the surviving lines stay in the order they appeared in your input. Removing a duplicate does not move anything else.

What counts as a duplicate?

By default, two lines are duplicates only if they match character for character. Turn on Ignore case to treat Apple and apple as the same, and Trim spaces to ignore leading and trailing whitespace. Both change what counts as a match, so the number removed will change with them.

Why did nothing get removed when the lines look identical?

Almost always trailing spaces or a non-breaking space pasted from a web page or PDF. Turn on Trim spaces. A trailing space is invisible but makes the line different, and a non-breaking space is a different character from a normal space even though it looks the same.

Does it handle text copied from Excel or Windows?

Yes. Line endings are split on CRLF, CR or LF, so text from Excel, Notepad, SAP exports, Mac and Linux all work. The output uses newline characters, which every one of those apps will read back correctly.

Is there a size limit?

There is no fixed limit set by the tool. Everything runs in your browser tab, so the practical ceiling is your device's memory. Hundreds of thousands of lines are normally fine; a very large paste may make the tab pause while it works.

Is my text uploaded anywhere?

No. The page has no upload endpoint and the text never leaves your device. That also means nothing is saved, so closing the tab loses whatever is in the boxes.

More help: Dedup FAQ · All tools · Contact · About