Sort lines alphabetically

    Sort a list A–Z, Z–A, by number or length, or shuffle it.

    Your text stays on this device

    About the Sort Lines tool

    This tool sorts a list of lines A to Z, Z to A, by the first number in each line, by length, in reverse order, or in a random shuffle for draws and quizzes. Sorting uses natural order, so "item 2" comes before "item 10", and follows language rules, so Hindi lists sort correctly too. Upper and lower case sort together, and commas inside numbers are ignored, so 1,200 sorts as 1200. Empty lines are removed unless you untick the option.

    At a glance

    Orders
    A → Z, Z → A, by number, by length, reverse, shuffle
    Method
    Natural, language-aware order (Intl.Collator); case ignored
    By number
    First number in each line, commas ignored; lines without one go last
    Price
    Free, no sign-up
    Works in
    Your browser, on phone or computer. Works offline after the first visit.
    Privacy
    What you type never leaves your device.

    How to sort lines

    1. Paste your list, one item per line.
    2. Pick the order: A → Z, Z → A, by number, by length, reverse or shuffle.
    3. Copy or download the sorted list.

    Private

    Your text stays in your browser and is never sent to a server.

    Instant

    Results update as you type, with nothing to install.

    Free

    No sign-up, no limits and no ads inside your writing space.

    Sort Lines: frequently asked questions

    Does it sort Hindi?

    Yes. Sorting follows the rules of your language settings, so Hindi and other scripts sort correctly.

    Can I pick random winners?

    Yes. Choose Shuffle and take the first lines. Press Shuffle again for a new order.

    How does "By number" sort lines like expenses?

    It uses the first number in each line and ignores commas, so "Rent 12,000", "Food 4,500" and "Fuel 900" sort as Fuel 900, Food 4,500, Rent 12,000. Lines without a number go to the end.

    Is my text sent anywhere?

    No. Everything runs in your browser and your text never leaves your device. Nothing is stored on any server.