TL;DR — paste lines, pick a mode, copy/download sorted output
Drop in any list and this online line sorter instantly sorts it: natural (number‑aware) or lexical A→Z, by length, or by a specific column. Choose case/accent handling, dedupe, manage blanks, and export in one click. Fully client‑side.
Sort Lines – Alphabetically Sort Text Lines Online Free
Sort text lines alphabetically, by length, or by column value online. This free line sorter supports natural (number-aware) and lexical A→Z sorting, deduplication, case/accent-insensitive comparison, and CSV/TSV column sorting.
Natural sort vs. alphabetical sort
Natural sort treats embedded numbers numerically (file2 < file10 < file100), giving results that match human expectation. Alphabetical (lexical) sort treats everything as characters, so file10 < file2 < file20.
How to use this line sorter
- Paste your list: add lines to Unsorted List, or load a
.txtfile. - Choose a sort mode: Natural (number‑aware), Lexical, Length, or Column (set delimiter + column).
- Refine options: ascending/descending, reverse after sort, case/accent‑insensitive, trim lines, unique only, and blanks policy (drop/keep/top/bottom).
- Copy or download: grab the Sorted List or save it as
.txt.
Key features
- Natural (number‑aware) and Lexical A→Z sorting
- Sort by length (short → long) or by a specific column
- Ascending/descending with optional post‑sort reverse
- Case‑insensitive and accent‑insensitive comparisons
- Trim lines, handle blanks (drop/keep/top/bottom), and keep unique lines only
- Instant results with copy and .txt download
- 100% client‑side — private and fast
Tips
- Use Natural sort for filenames or IDs with numbers (e.g., file2, file10).
- Turn on accent‑insensitive to treat é≈e in multilingual lists.
- Sorting by column works great for CSV/TSV: set delimiter and column index.
- Deduplicate after trimming and case‑folding to collapse near‑duplicates cleanly.
Frequently asked questions
What’s the difference between Natural and Lexical sorting?
img2 < img10). Lexical is strict character comparison (pure A→Z).Can I sort by a specific column?
How do blanks and duplicate lines work?
What does accent‑insensitive mean?
é ≈ e), which is helpful for multilingual lists.Is my data uploaded anywhere?
How do I sort a list of words alphabetically online for free?
.txt. No sign-up required.How do I sort lines in a text file online?
.txt file.How do I sort and remove duplicates from a list online?
Related tools
Remove Duplicate Lines · Advanced Text Cleaner · Reverse Lines · Find & Replace