Sort Lines

Alphabetically sort lines ascending or descending.

Runs on your device No file uploads
Choose a file

Sort text lines A–Z or Z–A, with optional numeric and case-insensitive sorting, then optionally remove duplicates.

Input: TXT  ·  Output: TXT

Drop files here or click to browse

Accepts: TXT

About Sort Lines

What does Sort Lines do?

Sort Lines alphabetizes text lines ascending (A-Z) or descending (Z-A), with optional numeric and case-insensitive sorting.

Things to know

Enable numeric sorting to order values by magnitude (10 comes after 2, not after 1). Case-insensitive mode ignores capitalization. Optionally remove duplicates after sorting.

Frequently asked questions

Can I sort numbers correctly?

Yes — enable numeric sorting to order values by magnitude.