The number sorter takes a list of numbers in any format — comma-separated, one per line, or space-separated — and sorts them numerically (ascending or descending), removes duplicates, filters by range, and instantly shows statistics like sum, mean, and median.
Input Numbers
Sorted Output
How to Sort and Filter Numbers
The number sorter processes any numeric list and applies sorting, deduplication, and range filtering in a single step. It sorts numerically — so 10 comes after 9 (not between 1 and 2 like alphabetical sorting would give you).
Step 1: Paste Your Numbers
Paste or type your number list into the input box. Numbers can be separated by commas, spaces, or line breaks — the tool handles all common formats. Non-numeric entries are automatically ignored.
Step 2: Set Options
Choose ascending (smallest first) or descending (largest first). Check "Remove duplicates" to keep only unique values. Use the filter range to exclude numbers outside your desired min/max bounds. Pick your preferred output separator.
Step 3: Copy the Result
Click Sort Numbers and copy the result. The stats panel shows count, sum, mean, median, min, and max for the processed output — useful for quick data exploration without opening a spreadsheet.
Common Uses
Cleaning up survey response data, sorting test scores, deduplicating ID lists, filtering product prices to a range, or simply ordering a list of numbers from a spreadsheet export. The one-per-line output option makes it easy to paste back into Excel or Google Sheets.
FAQ
What input formats does the number sorter accept?
The tool accepts numbers separated by commas, spaces, tabs, or new lines — or any combination. Examples: '5, 3, 8', '5 3 8', or one number per line. It automatically detects the separator and parses all valid numbers, ignoring any text or invalid values.
How does the deduplication option work?
When 'Remove duplicates' is checked, each unique number value appears only once in the output, regardless of how many times it appeared in the input. For example, [3, 1, 2, 3, 1] becomes [1, 2, 3] after dedup + ascending sort.
Can I filter numbers by a specific range?
Yes — enter a Min and Max filter value. Only numbers within that range (inclusive) are included in the output. For example, if your data is 1–100 and you filter min=10, max=50, only numbers from 10 to 50 appear in the result.
What statistics does the tool calculate?
After processing, the tool shows count, sum, mean (average), median, minimum, and maximum for the filtered and sorted output. These help you quickly understand the distribution of your number list.
Is this tool free?
Yes, completely free with no signup required. All processing runs locally in your browser — no data is sent to any server.
Is my data private?
Yes. Everything runs locally. Your number list is never transmitted anywhere.