freesabai

Text tools

Remove duplicate lines

Paste a list (names, emails, links, phone numbers) one item to a line and remove the repeated lines so one of each is left, in the original order, or show only the lines that repeat. It runs in your browser and the text you paste is not sent anywhere.

This tool needs JavaScript. If you still see this after a few seconds, JavaScript is switched off in your browser or the page did not load completely: turn JavaScript on or reload the page.

How to use it

  1. Paste the list into the box on the left, one item to a line, or press "Open file" and choose a text file.
  2. Choose what to keep: one of each line, only the lines that appear once, or only the lines that repeat. The result shows at once.
  3. Press "Copy" or "Download" to take the result.

Frequently asked questions

Does removing duplicates change the order of the lines?

No. The lines that are left stay in their original order, keeping the first one found (or the last, if you choose). To sort them too, use the line sorter afterwards.

Are lines that differ only in case or trailing spaces duplicates?

Not by default, because the text is different. Tick "Ignore upper and lower case" and "Trim spaces before comparing" to treat Apple and "apple " as one. The line that is kept keeps its text exactly as it was.

How big a list can it handle?

You can paste or open up to 20 MB, hundreds of thousands of lines. Big texts are handled in a worker of the browser, so the tab does not freeze.

Good to know

Your data stays on your device

Everything runs in your browser. What you type, paste or open is not sent to freesabai's servers or anyone else's, and is not kept in the browser: close the page and it is gone. The site only counts how many times this page was opened and how many times someone copied or saved a result (never what was pasted or the result, and you can switch the counting off in the footer; see the privacy policy).

Report a problem or suggest an idea

Found a bug, or want this tool to do more? Tell us on the feedback page. No sign-up.

Other text tools

Convert and edit text

Lines

Thai language

More tools for text (in the developer tools)