Text Line Tools
Sort lines alphabetically or by length, remove duplicates, reverse order, trim whitespace, remove empty lines, and add prefix/suffix to every line. Paste text and process instantly.
Sort lines alphabetically or by length, remove duplicates, reverse order, trim whitespace, remove empty lines, and add prefix/suffix to every line. Paste text and process instantly.
Discover our collection of free online tools for developers, designers, and power users
Advertisement
Advertisement
Advertisement
Developers, data analysts, and content creators constantly deal with lists that need sorting, cleaning, or deduplicating. These operations are trivial in code but tedious by hand ā and opening a text editor or writing a script just to remove duplicates from a list is overkill. Paste your text, pick the operation, copy the result.
Paste any text with multiple lines into the input box. Works with lists, CSV columns, code imports, URLs, and more.
Select Sort, Deduplicate, Reverse, Trim, Remove Empty Lines, or Add Prefix/Suffix. Configure the options for your operation.
Click Process to apply the operation. The result appears instantly in the output box ā click Copy to use it.
Each line is separated by a newline character (Enter). Blank lines between content are counted as separate lines unless you use "Remove Empty Lines".
By default yes ā "Apple" and "apple" are treated as different lines. Toggle the case-insensitive option to treat them as duplicates.
Numeric sort orders lines by their leading number. "10" comes after "9", not before "2" as it would in alphabetical sort. Useful for sorting numbered lists, IDs, or version numbers.
No. All processing runs entirely in your browser using JavaScript. Your text is never sent to any server.