- Home
- Tools
- Text & Code
- List Sorter & Randomizer
List Sorter & Randomizer
Sort, reverse, shuffle, clean, and deduplicate line-oriented text locally.
Browser local
Clean and reorder any line list
Your list is neither uploaded nor stored. Secure shuffle uses browser cryptographic randomness.
Processing options
Working notes
Use List Sorter & Randomizer with the boundary visible.
List Sorter & Randomizer cleans and reorders line-oriented text locally with alphabetical, natural, numeric, reverse, and cryptographically randomized modes.
What is List Sorter & Randomizer?
Sorting and deduplicating lists is one of the most common text manipulation tasks in software development and data management. Whether you are alphabetizing a dependency list, naturally ordering version numbers, sorting IP addresses numerically, randomizing a list for A/B testing, or removing duplicate entries from a CSV export, a list sorter handles it quickly. This tool operates on line-oriented text: each line is one item, and the tool sorts, reverses, shuffles, or deduplicates the entire list. Natural sort order is particularly useful for version numbers and file names because it treats embedded numbers as numeric values — so "item-2" sorts before "item-10" instead of after it (which alphabetical sort produces). The shuffle mode uses the browser's crypto.getRandomValues() for cryptographically secure randomization, producing an unbiased Fisher-Yates permutation. All processing happens locally in a Web Worker, and the tool supports lists up to 512 KiB and 20,000 lines.
When to use it
- Sorting dependency lists — alphabetize package names in a requirements.txt, package.json, or Cargo.toml for consistent ordering.
- Ordering version numbers — use natural sort to order release tags (v1.2, v1.10, v2.0) correctly instead of alphabetically.
- Deduplicating data — remove duplicate lines from CSV exports, log extracts, or email lists.
- Randomizing test data — shuffle a list of test cases, user IDs, or items for unbiased A/B testing or raffle selection.
- Cleaning up configuration — sort and deduplicate environment variables, DNS entries, or firewall rules for easier review.
How to use it
- 01Paste one item per line into the input area.
- 02Choose the ordering mode: alphabetical, natural (numbers treated numerically), numeric, reverse, or shuffle.
- 03Optionally enable deduplication, whitespace trimming, blank line removal, or case normalization.
- 04Process the list. The result shows the sorted, shuffled, or deduplicated output.
- 05Copy the result or download it as a plain-text file.
Common mistakes
- Alphabetical vs natural sort — alphabetical sort puts "item-10" before "item-2" because "1" < "2" character-by-character. Use natural sort when items contain numbers.
- Case sensitivity — alphabetical sort is case-sensitive by default ("B" sorts before "a" in ASCII). Enable case normalization for case-insensitive sorting.
- Numeric sort with non-numeric lines — numeric sort expects each line to be a valid number. Lines with text are not sorted correctly in numeric mode.
- Whitespace differences — lines that look identical may differ by trailing spaces or tabs. Enable trimming to normalize whitespace before deduplication.
- Locale-specific sorting — this tool uses English collation. Characters with diacritics (a, e, o) may sort differently than expected in other locales.
Synthetic example
Naturally order release labels
Input
release-10 release-2 release-1 release-2
Result
release-1 release-2 release-10
Related standards
Limits and data boundary
- Numeric ordering accepts only finite decimal or scientific-notation values and rejects mixed text.
- Locale-aware text ordering uses a fixed English collation locale for consistent results in this tool.
- Input is limited to 512 KiB and 20,000 lines, and results remain only in current browser memory.
Frequently asked questions
- What is natural sort order?
- Natural sorting treats embedded numbers as numeric values rather than text, so "item-2" sorts before "item-10" instead of after it. This matches how humans expect numbered items to be ordered.
- Can I remove duplicate lines?
- Yes. Enable deduplication to keep only the first occurrence of each unique line. Duplicates are removed after trimming and optional case normalization.
- Is the shuffle truly random?
- Yes. The shuffle uses the browser's crypto.getRandomValues() for cryptographically secure randomization, producing an unbiased permutation.
- What is the maximum list size?
- The tool supports lists up to 512 KiB and 20,000 lines. Processing happens in a background worker to keep the UI responsive.
Keep working