Alphabetical Line Sorter

Paste any list of lines, choose A-Z or Z-A order with optional deduplication, and get your sorted output instantly.

Input & Options

Sort Direction

Options

Sorted Output

Paste lines on the left and click Sort

Supports lists of any size — names, keywords, URLs, and more

Copied!

Summary

Paste any list of lines, choose A-Z or Z-A order with optional deduplication, and get your sorted output instantly.

How it works

  1. The tool splits your input on newlines, applies JavaScript's Array.prototype.sort() with an optional locale-aware comparator, deduplicates if requested, then joins the result back into a single string you can copy.

Use cases

  • Alphabetize a list of names or keywords for a document.
  • Sort product names for import into a spreadsheet.
  • Organize a list of URLs or tags before publishing.
  • Clean up a glossary or index by putting entries in order.

Frequently Asked Questions

Last updated: 2026-06-09 · Reviewed by Nham Vu