Skip to content

Text tools

Remove Duplicate Lines & Sort Text

Clean up any list: remove duplicates and empty lines, trim spaces, sort, shuffle or number the lines.

How to use the Remove Duplicate Lines & Sort Text

  1. 1

    Paste your list, one item per line.

  2. 2

    Pick what to do: remove duplicates, trim, remove empty lines, sort or shuffle.

  3. 3

    Copy or download the cleaned list.

Frequently asked questions

Can it ignore upper and lower case?

Yes. Turn on "Ignore case" and "Apple" and "apple" count as duplicates; the first one is kept.

How does sorting handle numbers?

Naturally: "item2" comes before "item10", like people expect.

Is there a size limit?

No fixed limit; lists with hundreds of thousands of lines work in a modern browser.

Get new articles in your inbox

Practical tutorials and deep dives, about once a week. No spam, unsubscribe anytime.

Privacy policy

Add DEV Talk to your Home Screen

  1. 1 Tap the Share button in Safari's toolbar.
  2. 2 Scroll down and tap Add to Home Screen.
  3. 3 Tap Add. Open it from the Home Screen to read like an app and to turn on notifications with the bell.

We use cookies to improve your experience and analyze traffic. By continuing, you agree to our Privacy Policy.