Free tool

Line Sorter and Duplicate Remover

Sort, deduplicate, reverse or shuffle any list of lines instantly. 100% in your browser.

Built by

Miguel Ángel Colorado Marin (MACM)

Full-Stack Developer · Guadalajara, España

I develop web apps, digital tools and full projects — from design to deployment.

Contact me

This tool manipulates text lists line by line: sort them alphabetically (A→Z or Z→A), remove duplicate lines, reverse the order, shuffle the list randomly, or remove empty lines — all combinable at once. Useful for cleaning up email lists, sorting names, deduplicating entries from a CSV pasted as text, or randomizing the order of a list of participants. Paste your list (one item per line), turn on the options you need, and the result is generated instantly with an updated line count. All processing happens with JavaScript directly in your browser.

Features

  • Sort A→Z, Z→A or shuffle randomly
  • Remove duplicate lines
  • Reverse the order
  • Remove empty lines
  • Line count before and after
  • 100% in browser, no uploads

How to sort or clean up a list of lines?

  1. 1

    Paste your list

    One item per line, in the box on the left.

  2. 2

    Choose the sort order

    A→Z, Z→A, shuffle randomly, or unsorted.

  3. 3

    Turn on the extra options

    Remove duplicates, reverse order, remove empty lines — combinable.

  4. 4

    Copy the result

    The result appears instantly, ready to copy.

Frequently asked questions

Is my list uploaded to a server?

No. Everything is processed with JavaScript directly in your browser.

In what order are the options applied?

First empty lines are removed (if active), then duplicates, then the chosen sort order, and finally the reversal if active.

How does "remove duplicates" work?

It compares lines exactly (same text, including uppercase/lowercase) and keeps the first occurrence of each.

Related tools

Embed Line Sorter and Duplicate Remover on your site

Add Line Sorter and Duplicate Remover to any web page with a simple iframe. Free, with attribution to miguelacm.es.

<iframe
  src="https://miguelacm.es/embed/line-tools"
  width="100%"
  height="700"
  frameborder="0"
  title="Line Sorter and Duplicate Remover — miguelacm.es"
></iframe>
View embed in new tab →