Sort lines alphabetically

Client

Paste multi-line text and sort with your browser locale, or flip the list without sorting. Pair with remove duplicate lines when you need unique rows and optional post-sort ordering in one workflow.

Sort or reverse lines

?

Sort uses your browser's locale-aware string ordering. Equal keys keep their original top-to-bottom order (stable). Reverse flips the raw line list and ignores the sort checkboxes.

Mixed \r\n / \r breaks normalize like the dedupe tool—use Line ending converter when only EOLs need fixing.

Input lines
5
Asc preview lines
5
Locale

Pick a sort direction or reverse the list; Copy output grabs the output panel when filled, otherwise the live A→Z preview.

Common use cases

  • Reorder hostnames, paths, or dependency lists before committing so reviewers scan alphabetically.
  • Normalize survey exports or spreadsheet columns pasted as one line per cell.
  • Flip log excerpts bottom-up after sorting elsewhere—or reverse without sorting for stack traces.

Common mistakes to avoid

  • Expecting numeric-aware collation

    Ordering follows JavaScript localeCompare rules—versions like `10` vs `2` may not sort numerically unless you pad digits elsewhere.

  • Using Reverse when you meant descending sort

    Reverse only mirrors the current line sequence; descending sort still compares strings lexically per locale.

  • Mixing Unicode punctuation surprises

    Diacritics and punctuation participate in locale rules—preview with your toggles before copying.

FAQ

Are ties stable?

Lines that compare equal keep their original relative order from the input.

Does Reverse use the ignore-case or trim toggles?

No—reverse operates on the raw split lines from the input panel.

Is text uploaded?

No. Everything runs locally in your tab.

Common search terms

Phrases people search for that match this tool. See the full long-tail keyword index.

  • sort lines alphabetically online
  • alphabetize lines text browser
  • reverse lines order paste
  • locale aware sort lines tool

Related utilities you can open in another tab—mostly client-side.