Text Line Tools: Remove Duplicate Lines, Sort and Reverse

Clean up lists in one click. Paste lines of text, then remove duplicates, sort A to Z or Z to A, reverse the order, delete empty lines or trim extra spaces.

How it works

The text is split into lines at every line break. Each button then works on the list of lines: removing repeats (keeping the first of each), sorting with your browser’s alphabetical order, reversing, filtering out blank lines or trimming spaces from the start and end of each line.

Example

The list banana, apple, cherry, apple, banana becomes banana, apple, cherry after Remove duplicates.

Frequently asked questions

Does it change my original text?

No. The result appears in the second box and the original stays as it is.

Is the duplicate check case sensitive?

Yes. “Apple” and “apple” are treated as different lines.

Is there a size limit?

It works with long lists, limited only by your browser.

More free tools: Word counter · Case converter · All free tools

Everything runs in your browser. Nothing you enter is sent or stored.