Alphabetical AβZ
Sorts lines from first to last letter using locale-aware text comparison.
zebra, apple, mangoapple, mango, zebra
Alphabetize lines AβZ or ZβA, optionally dedupe as you sortβideal for glossaries, tag lists, and config files.
Sort Lines
Choose sort order and cleanup options β output and stats update instantly.
Your text stays in your browser β nothing is uploaded.
Unsorted lines
zebra apple mango banana
Sorted AβZ
apple banana mango zebra
.txt file.Pick the comparison mode that matches your list β words, pure numbers, or mixed labels with embedded digits.
Sorts lines from first to last letter using locale-aware text comparison.
zebra, apple, mangoapple, mango, zebra
Reverses alphabetical order so lines ending later in the alphabet appear first.
apple, mango, zebrazebra, mango, apple
Compares lines as numbers when both values are numeric β so 2 comes before 10.
10, 2, 11, 2, 10
Splits text and number chunks so Item 2 sorts before Item 10.
Item 10, Item 2, Item 1Item 1, Item 2, Item 10
Treats uppercase and lowercase as different β Apple and apple sort separately.
banana, Apple, appleApple, apple, banana
Compares lines without case differences β the default for most keyword and name lists.
Banana, apple, Mangoapple, Banana, Mango
Orders lines by character count ascending β useful for tags, codes, or variable names.
elephant, ant, bearant, bear, elephant
Orders lines by character count descending β longest entries appear first.
ant, elephant, bearelephant, bear, ant
Flips the current line order without alphabetical sorting β ideal for undoing a paste or stack reversal.
first, second, thirdthird, second, first
Alphabetize SEO keywords before content planning or clustering.
Sort contacts AβZ and remove duplicates before import.
Reorder single-column exports from spreadsheets or databases.
Build dropdown-ready location lists in consistent order.
Natural sort keeps SKU-2 ahead of SKU-10 in inventories.
Sort log lines or error codes for faster scanning and diffing.
Deduplicate and alphabetize social tags or taxonomy terms.
Order account lists for moderation or access reviews.
Sort sitemap URLs or redirect lists before publishing.
Prepare clean unique values for lookup tables and enums.
See how each sorting scenario changes a multiline list.
| Scenario | Before | After |
|---|---|---|
| Alphabetical | zebra |
apple |
| Reverse order | apple |
zebra |
| Numeric sort | 10 |
1 |
| Natural sort | Item 1 |
Item 1 |
| Deduplication | alpha |
alpha |
| Blank line removal | one |
one |
| Case-sensitive sorting | banana |
Apple |
| Sort by length | elephant |
ant |
| Reverse existing order | first |
third |
| Keep last duplicate | old |
beta |
Collapse repeated lines while sorting so unique lists stay clean.
Trim whitespace and reorder single-column paste-ins from spreadsheets.
Alphabetize hashtags or taxonomy tags for publishing workflows.
Sort keyword dumps from SEO tools before grouping or filtering.
Order mailing lists and remove duplicate addresses in one step.
Natural sort product IDs and SKUs so numbered items stay in sequence.
| Type | Example | Best for |
|---|---|---|
| Alphabetical | apple, banana, zebra |
Names, keywords, countries, tags, plain text lists |
| Numeric | 1, 2, 10, 20 |
Scores, prices, quantities, pure number columns |
| Natural | Item 1, Item 2, Item 10 |
SKUs, filenames, version labels, mixed text + numbers |
| By length | ant, bear, elephant |
Tags, short codes, variable names, compact labels |
Chain Sort Lines with cleanup and formatting tools for repeatable list prep.
Sort Lines handles long pasted lists β countries, IDs, tags, emails, URLs, and code symbols.
United States, Canada, Australia, Brazil, Germany, Japan
SKU-1, SKU-10, SKU-2, SKU-20, SKU-3
#marketing, #seo, #content, #analytics, #growth
alex@site.com, beta@site.com, team@site.com, zoe@site.com
/about, /blog, /contact, /pricing, /tools/sort-lines
apiKey, baseUrl, maxRetries, timeoutMs, userId
Paste a single column from a CSV export or database dump β one value per line β then sort, dedupe, and download.
Brazil Japan Canada Australia Germany
Alphabetize location lists for dropdowns and lookup tables.
zoe@site.com alex@site.com team@site.com beta@site.com
Sort AβZ and remove duplicates before CRM import.
SKU-10 SKU-2 SKU-1 SKU-20
Use natural sort so SKU-2 appears before SKU-10.
#growth #seo #content #analytics
Deduplicate and alphabetize taxonomy or hashtag columns.
Lines are compared as text using your browser locale. Choose AβZ for ascending order or ZβA for descending. Enable ignore case (default) to treat Apple and apple as equal when ordering.
Yes. Turn on numeric sort to compare numeric lines as numbers so 2 sorts before 10. For labels that mix words and digits, use natural sort instead.
Natural sort splits each line into text and number chunks. That means Item 2 appears before Item 10 because 2 is less than 10 β unlike plain text sort where 10 can come first.
Yes. Enable remove duplicate lines, then choose keep first occurrence (default) or keep last occurrence. The duplicates removed stat shows how many repeated lines were dropped.
Yes. Enable remove empty lines to strip blank rows before sorting. You can also run Remove Empty Lines first for dedicated blank-line cleanup.
By default, sorting ignores case. Enable case-sensitive sorting to treat uppercase and lowercase as different values β useful for code symbols or mixed-case identifiers.
Most accented and international characters sort correctly with locale-aware comparison. For critical multilingual lists, spot-check results after sorting.
Yes. Paste large lists directly into the workspace. Very large inputs may take longer depending on your device and browser. Split extremely large files if performance slows.
Yes. Choose ZβA for descending alphabetical order, enable reverse final order to flip a sorted result, or select reverse existing order to flip lines without sorting them alphabetically.
Yes. Choose shortest β longest or longest β shortest to order lines by character count. Lines with equal length fall back to alphabetical comparison.
Yes. Use reverse existing order to flip the pasted line sequence without alphabetical sorting. Use reverse final order to flip the result after another sort mode is applied.
When remove duplicate lines is enabled, keep first occurrence retains the earliest copy of each line. Keep last occurrence retains the final copy β useful when the newest value should win.
Yes. Paste a single column from a CSV or database export with one value per line. Sort alphabetically, by length, or naturally, then dedupe and download the cleaned list.
Yes. Enable trim lines before sorting to strip leading and trailing whitespace on each row. For full-document trimming, try Trim Text first.
No. Sorting runs entirely in your browser. Your text is not uploaded to a server.
Yes. Use Download .txt to save the sorted output as a text file, or Copy Output to paste it elsewhere.