EllyTools

Image Tools

Calculators

Text Tools

Color Tools

File Tools

Utility Tools

Sort Lines

Sort lines alphabetically, by length & more

β—ˆ How to Use

1

Paste your text into the input area

2

Pick an order: A→Z, Z→A, by length, random or reversed

3

Copy the sorted text

❓ Frequently Asked Questions

Related Tools

β—‰ Who Is This For?

  • βœ“Developers sorting configuration lists or data
  • βœ“Writers organizing alphabetical lists
  • βœ“Anyone who needs to quickly sort a list of items

Sort Lines: Alphabetical, Numerical, and Reverse Order

Sorting lists alphabetically or numerically is one of the most common text-cleanup tasks. This tool sorts pasted lines and lets you choose direction (ascending/descending), case-handling, and natural number ordering.

Default sorting is character-by-character left-to-right. That's correct for most use cases but produces strange results with numbers β€” '10' sorts before '2' because '1' < '2' character-wise. Natural sort fixes this by treating embedded numbers as numbers, putting '2' before '10' as expected.

Sort options

  • β€’Alphabetical (case-sensitive) β€” uppercase letters sort before lowercase
  • β€’Alphabetical (case-insensitive) β€” most common everyday sort
  • β€’Reverse β€” Z to A or large to small
  • β€’Natural sort β€” '2' before '10', for filenames with numbers
  • β€’Sort by length β€” shortest first or longest first

Extended FAQ

How does it handle Korean characters?

Sorting follows the page language through the browser's Intl.Collator. Hangul comes out in κ°€λ‚˜λ‹€ order; on the Korean page Hangul lines come before Latin ones, on the English page after.

Does it remove duplicates?

Turn on Remove duplicates: the first occurrence stays and the count of removed lines is shown. With case-sensitivity off, Apple and apple count as the same line.

Are my pasted lines stored?

No. The sorting happens in the page. Long lists are handled by your device, not by a server.