Text Line Sorter
Paste lines of text, choose a sort order and comparison mode, and get sorted output instantly. Supports ascending, descending, random, and reverse orders with optional deduplication, blank-line removal, and whitespace trimming.
Post-processing
Input: 6 lines | Output: 6 lines
Copied to clipboard
Summary
Paste lines of text, choose a sort order and comparison mode, and get sorted output instantly. Supports ascending, descending, random, and reverse orders with optional deduplication, blank-line removal, and whitespace trimming.
How it works
- Paste or type your lines into the Input textarea.
- Select a Sort Order (Ascending, Descending, Random, or Reverse).
- Select a Comparison Mode (Alphabetical case-insensitive, Alphabetical case-sensitive, Numeric, or By Length).
- Toggle post-processing options as needed: Remove Duplicates, Remove Blank Lines, Trim Whitespace.
- Output updates live in the right textarea; copy or download the result.
Use cases
- Alphabetizing a list of names, items, or keywords for a document.
- Sorting a column of numbers pasted from a spreadsheet.
- Removing duplicate entries from a list before importing data.
- Randomizing a list of names for a raffle or random assignment.
- Reversing the order of log lines or numbered lists.
- Sorting CSS class names or import statements alphabetically.
- Deduplicating and sorting keyword lists for SEO research.
- Cleaning up copy-pasted data by trimming extra whitespace.
Frequently Asked Questions
Last updated: 2026-06-09 ·
Reviewed by Nham Vu