Line Operations — Sort, Deduplicate, Reverse, Shuffle, Number & More
Line Operations
Process text line by line: sort, deduplicate, reverse, shuffle, trim, and add line numbers, prefixes, or suffixes.
All processing happens locally in your browser — your data is never uploaded to any server.
Line Operations:
Prefix text:Suffix text:
Input
Output
Line Operations — Process text line by line. Sorting: Sort A-Z, Sort Z-A, Sort numeric (handles negative values & decimals, non-numeric lines follow alphabetically), Sort by line length. Reordering: Reverse line order, shuffle randomly. Cleanup: Remove duplicate lines (keeps first occurrence), remove empty lines, trim whitespace from each line. Annotation: Add line numbers with padded alignment, add a prefix or suffix to every line. Chaining: Click "Use Output as Input" to feed results back for the next operation. Press Ctrl+Enter to run the last operation again.
All processing runs locally in your browser — nothing is uploaded.
What are line-based operations?
Treating text as a list of lines makes many cleanup jobs one click: sort, deduplicate, trim, number, or prefix and suffix every line. Two things trip people up. First, sorting has two very different orders — alphabetically "10" comes before "9", so use the numeric sort when the lines are numbers. Second, what counts as "a line" depends on the line ending: Windows files end lines with CR LF, Unix and macOS files with LF alone, so text that round-trips between systems can gain or lose empty lines.
Duplicate removal keeps each value's first occurrence and drops later repeats — if order matters, sort (or deliberately don't sort) before deduplicating.