Searchlight
Tools
BlogAbout
Free SEO Audit
Back to home
๐Ÿ“ˆSEO & Analytics
๐Ÿ—‚๏ธText & Data
๐Ÿ”Encoders & Decoders
โšกGenerators
๐Ÿ”„Converters
๐Ÿ–ผ๏ธImage Tools
๐Ÿ“„PDF Tools
๐Ÿ’ปCode Tools
๐Ÿ”Regex & Parsing
๐ŸงฎCalculators
๐Ÿ—บ๏ธDiagrams
๐ŸŒNetwork & Web
โœ๏ธText Utilities
Word CounterCase ConverterText SorterDuplicate RemoverFind & ReplaceText ReverserSlugifyText to SpeechSpeech to Text
๐ŸŽจColor Tools
๐Ÿ”€Diff & Compare
148+ tools. OAuth is read-only.
Searchlight

148+ free SEO, developer, image, PDF, and productivity tools - no account needed.

Free ยท all tools included
Company
  • Blog
  • About
  • Free SEO Audit
Legal
  • Privacy Policy
  • Terms of Service
  • Cookie Policy

ยฉ 2026 Searchlight. All rights reserved.

Read-only OAuth ยท No data reselling ยท Completely free

Text Sorter

Sort lines of text alphabetically, by length, randomly, or in reverse. Deduplicate and trim on the fly.

Input ยท 0 lines
Result ยท 0 lines
Sorted resultโ€ฆ

About this tool

Sort lines of text alphabetically, numerically, by length, or randomly - ascending or descending. Options include case-sensitive sorting, natural sort (handles numbers correctly: file2 before file10), removing duplicates after sorting, and trimming whitespace. Handles lists of any size instantly in your browser.

How to Sort a List of Text

  1. 1Paste your list into the input - one item per line.
  2. 2Select sort mode: alphabetical, numeric, by length, or random.
  3. 3Choose ascending or descending order.
  4. 4Enable natural sort if your list contains filenames or version numbers.
  5. 5Click 'Sort' and copy the sorted output.

Frequently Asked Questions

What is natural sort order?+
Natural sort treats embedded numbers numerically. Standard alphabetical sort: file1, file10, file2, file20. Natural sort: file1, file2, file10, file20. Use natural sort for filenames, version numbers, and any list with numeric components.
How do I sort a list of numbers?+
Enable 'Numeric sort'. Standard alphabetical sort puts 10 before 2 (because '1' < '2'). Numeric sort correctly orders 2 before 10. Works for integers and decimal numbers.
Can I sort and deduplicate at the same time?+
Yes. Enable both 'Sort' and 'Remove duplicates'. The deduplication step runs after sorting, so duplicates at different positions are merged. Case-insensitive deduplication can be enabled separately.
How do I reverse-sort (Z to A or largest to smallest)?+
Select 'Descending' order. This works for all sort modes: alphabetical Z-A, numeric largest first, shortest-to-longest, or random shuffle reversed.
Looking for a deeper guide on this topic? Browse the Searchlight blog.
Visit the blog โ†’

Related tools

View all Text Utilities โ†’
Word CounterCount words, characters, lines & reading timeCase ConvertercamelCase, snake_case, kebab-case & moreDuplicate RemoverRemove duplicate lines from textFind & ReplaceFind and replace with regex support