OnlineNotes Logo

    Line Sorter + Deduplicator

    Sort list lines, remove duplicates, and clean pasted text blocks for spreadsheets, docs, and datasets.

    Input

    Output

    Input lines

    0

    Output lines

    0

    Duplicates removed

    0

    Empty lines removed

    0

    When to use this tool

    Use this line sorter for keyword lists, inventories, exported values, and QA lists that need quick cleanup.

    You can normalize spacing, remove duplicates, and sort in one pass.

    Frequently asked questions

    Can this line sorter remove duplicates?

    Yes. Enable deduplication to keep only the first occurrence of each line while preserving sorted output.

    Can I sort case-sensitive or case-insensitive?

    Yes. You can toggle case-sensitive sorting depending on your list requirements.

    Does this work with large pasted lists?

    Yes. The tool processes multiline input directly in your browser and is suitable for large text lists.

    Related tools

    Line sorter online for list cleanup, deduplication, and ordering

    Use this line sorter online to alphabetize a pasted list, remove duplicates, and strip stray spaces from keyword sets and data exports.

    It treats each line as one item. Numbers inside lines sort by value, so item2 comes before item10.

    How it works

    1. Paste a list with one item per line, and the sorted output updates as you type or change an option.
    2. The steps run in a fixed order: trim spaces around each line, remove empty lines, remove duplicates (the first copy is kept), sort, then reverse if Descending is on.
    3. Trim, Remove empty, and Remove duplicates are on by default. Case-sensitive and Descending are off, so "Apple" and "apple" count as the same line.
    4. The stats show input lines, output lines, duplicates removed, and empty lines removed.

    Worked example

    Input

    item10
     banana
    item2
    Apple
    
    apple
    banana 
    café
    cafe

    Output

    Apple
    banana
    café
    cafe
    item2
    item10

    Default options: 9 input lines, 6 output lines, 2 duplicates removed, 1 empty line removed. "Apple" stays because it came first. "banana" with its extra spaces matches after trimming. item2 sorts before item10. "café" and "cafe" sort as equals, but both stay because duplicate checks compare exact letters.

    Edge cases and limits

    • Sorting cannot be turned off. To remove duplicates and keep the original order, use Remove Duplicate Lines.
    • The whole line is compared. There is no way to sort by a column in comma-separated or tab-separated data, or by line length.
    • Number sorting reads digit groups, not decimals or signs. "1.5" comes before "1.10", and "-3" sorts as punctuation, not as a negative number. It works for names such as file2 and file10, not for numeric data.
    • Order follows your browser's language setting, so some accented letters can sort differently on another device. With Remove empty off, blank lines sort to the top. With Trim off, a line with a leading space is a different item from one without.

    When to use it

    • Clean keyword clusters before campaign planning.
    • Remove repeats from an email, tag, or SKU list copied from a spreadsheet.
    • Sort a list of routes for a QA review.
    • Keep a list in a stable order in a version-controlled file.