Alphabetical Line Sorter

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

Use the Alphabetical Line Sorter

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

Sort any list of lines into alphabetical order instantly. Choose ascending (A-Z) or descending (Z-A), toggle case sensitivity, and optionally remove duplicate lines — all client-side with no data sent to a server.

How it works

  1. The tool splits your input on newlines, applies JavaScript's Array.prototype.sort() with an optional case-insensitive 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-05-23 · Reviewed by Nham Vu