Text Tools

Sort Lines Online

Sort multiline text with dictionary order, natural (numeric-aware) order, length order, or shuffle. Optional reverse, case-insensitive compare, dedupe, and blank-line removal all run in your browser.

TextSortCleanup

Favorite this tool

No favorite storage mode has been selected.

Quick actions

Copy this tool URL or open the system share sheet on a supported device.

Use cases

  • Alphabetize keyword lists
  • Natural-sort mixed item2 and item10 labels
  • Shuffle a roster for sampling

How to use

  1. Paste one item per line
  2. Choose a sort mode and options; results update live
  3. Copy the sorted text

Example input and output

Input

banana
Apple
cherry

Output

Apple
banana
cherry

FAQ

How does natural sort differ from dictionary order?

Natural sort uses numeric-aware comparison so item2 comes before item10. Dictionary order compares the full string without that numeric preference.

Can I dedupe while sorting?

Yes. Enable Also dedupe to remove duplicate lines before the chosen sort is applied.

Tools

Related tools

Continue with another translated tool for a nearby task.

Remove Duplicate Lines

Remove Duplicate Lines Online

Available

Remove duplicate lines from multiline text with options to ignore case, trim edges, keep first-seen order, and review frequency stats. Processing stays in your browser.

Text Deduplicate Cleanup

Line Shuffler

Shuffle Text Lines Randomly

Available

Randomize line order for lists or rosters. Optionally skip empty lines, then copy the shuffled list.

Text Shuffle Lines

Text Splitter

Split Text by Delimiter, Length, or Words

Available

Split text into multiple lines by a fixed delimiter, character length, or word count. Optionally trim each segment and skip empty parts. Useful for list cleanup and chunking.

Text Split Lines