Skip to content
πŸ“‹

Text Line Sorter

Text

Sort text lines alphabetically, by length, reverse order, or remove duplicates in one click.

0
0

A mailing list assembled from several sources, an export of URLs pulled from more than one report, or any list built up over time from multiple places usually ends up with the same entry appearing more than once, and finding every duplicate by scanning a long list manually is slow and easy to get wrong. This tool sorts text lines alphabetically, by length, or in reverse order, and removes duplicate lines in one click, cleaning up a list at the same time it gets sorted rather than requiring a separate deduplication pass.

See more about the Text Line Sorter

Useful for removing repeated entries from a mailing list built from several sources, deduplicating a list of URLs pulled from more than one report, or cleaning up a data export that accumulated the same entry multiple times before it's used somewhere else.

Examples

Sort and drop duplicates

Input:
docs.example.com/a
docs.example.com/b
docs.example.com/a

Output:
docs.example.com/a
docs.example.com/b

Choose Remove duplicates. The first spelling of each line is kept.

Shortest line first

Input:
changelog.md
README
package.json

Output:
README
changelog.md
package.json

Length sort is useful for spotting an unusually long path or title.

Key features

  • Clean interface
  • Fast processing
  • No signup required
  • Works offline

Quick answers for Text Line Sorter

What sorting options are available in the dropdown?
Six modes: A to Z, Z to A, Shortest first, Longest first, Reverse order, and Remove duplicates, chosen from a single dropdown above the input and output boxes.
What does the "Case sensitive" checkbox change?
With it unchecked, A to Z, Z to A, and Remove duplicates ignore capitalization when comparing lines, so "Apple" and "apple" are treated the same, checking it makes those three modes distinguish uppercase from lowercase.
Does Remove duplicates strip out blank lines too?
Yes, before any sorting runs the input is filtered to drop empty or whitespace-only lines, so blank lines never appear in the output no matter which mode is selected.