๐Ÿงฐ UtlKit

Sort Lines

Sort lines of text alphabetically, numerically, or randomly.

๐Ÿ›

Report a Problem

Found a bug or have a suggestion? Help us improve this tool.

๐Ÿ“Š Data Summary (auto-filled)

Tool: sort-lines ยท /tools/sort-lines/

lineCount: 0

What is this tool?

Line sorter tool sorts text lines alphabetically, numerically, or by length. Supports ascending and descending order, case-sensitive/insensitive sorting, and random shuffle. Remove duplicates, reverse order, and sort by custom delimiters. Essential for organizing lists, data cleaning, and preparing structured text.

How to use

  1. 1

    Paste text

    Input text with one item per line.

  2. 2

    Choose sort mode

    Select alphabetical, numerical, length, or random.

  3. 3

    Get result

    Copy the sorted output.

Frequently Asked Questions

Can it sort numbers correctly?

Yes. In numerical mode, lines starting with numbers are sorted by their numeric value (2, 10, 100) rather than alphabetically (10, 100, 2).

Does it handle Unicode and special characters?

Yes, the tool fully supports Unicode characters including Chinese, Japanese, Korean, and emoji.

How do I sort lines of text?

Paste your lines and pick a sort mode: A to Z or Z to A (locale-aware, so accented characters and CJK text order naturally), numeric (lines are compared as numbers, so 2 comes before 10), or a random shuffle using the Fisher-Yates algorithm, which produces an unbiased permutation. Blank lines are kept but pinned to the end of the result, and the output shows the line count with a copy button.