Sort lines of text online — alphabetically A–Z or Z–A, by line length, numerically, or shuffled into random order. Free, and the sorting happens entirely in your browser with nothing uploaded. Alphabetical order is what most lists eventually need, but the other modes earn their keep: numeric sort puts 2 before 10 (plain text sort does not), length sort surfaces the shortest or longest entries, and shuffle gives you a fair random order for draws and playlists. Paste, pick a mode, copy the result.
Yes! You can upload .txt files or .zip archives containing text files. The content will be loaded directly into the input area for processing.
Absolutely. All text processing happens entirely in your browser. No data is sent to any server — everything stays local and private.
It removes duplicate lines from your text, keeping only the first occurrence of each unique line. You can optionally make the comparison case-insensitive.
It compares two blocks of text line-by-line and highlights additions, deletions, and unchanged lines with color coding, similar to a Git diff.
Yes! You can copy the output from one tool and paste it into another. Each tool works independently so you can apply transformations sequentially.
Line sorting splits text into an array at newline boundaries, then applies JavaScript's Array.sort() with customizable comparison functions. Alphabetical sorting uses localeCompare() for locale-aware ordering that properly handles accented characters (é, ñ) and different alphabets. Numeric sorting converts line beginnings to numbers using parseFloat() to sort 2 before 10 (avoiding string comparison where '10' < '2'). Reverse sorting applies the reverse() method after the primary sort, and case-insensitive sorting passes lowercase-converted strings to the comparison function. Length-based sorting compares line.length properties, and the tool preserves or removes empty lines based on configuration. Natural sorting handles mixed alphanumeric strings (file1.txt, file10.txt, file2.txt) using Intl.Collator with numeric option enabled.