Sort text lines

Sort lines alphabetically or using natural numeric order.

Local processing · Nothing is uploaded · 1 MB input limit

Input & settings

Paste text or drop a UTF-8 text file
Ready. Enter your input to begin.

How to use this tool

Choose ascending or descending order and whether embedded numbers should sort numerically.

Limits and behavior

Sorting uses English collation. Blank lines are preserved, and all line endings become LF. Input is limited to 1 MB and output to 3 MB. No input content is saved by CraftAI.

Alphabetical and natural text line sorter

Sort a pasted list of words or lines in ascending or descending order. The online line sorter also offers natural number sorting so numbered entries can be ordered numerically rather than strictly as text.

Can I sort numbered lines correctly?

Choose natural numeric sorting when numbers appear inside lines. For example, natural ordering handles an item numbered 2 before an item numbered 10.

Built on Hatchable