Sort Numbers
Paste a list or any text: every number is extracted and sorted from least to greatest or greatest to least, instantly. Remove duplicates, pick the output separator, and see the count, sum, average, median, minimum and maximum.
Advertisement
How to use the Sort Numbers
Paste your numbers or any text that contains numbers. Line breaks, commas, spaces and words between them are fine.Choose the order : ascending (smallest first) or descending (largest first).Pick the number format so commas and periods are read correctly, and tick Remove duplicates if you only want unique values.Choose a separator for the output, such as new line or comma.Copy or download the sorted numbers and check the statistics below the result.
How numbers are found in your text
The sorter scans the text for anything that looks like a number and ignores everything else, so you can paste a column from a spreadsheet, a comma-separated list, a log file or a paragraph. It understands:
Integers and decimals : 42, 3.14, .5
Negative numbers : -7 or −7. A hyphen between digits or letters, as in 2024-05-01 or A-3, is not treated as a minus sign.
Scientific notation : 1e3 = 1000, 2.5E-4 = 0.00025
Thousands separators , depending on the number format you pick:
Number format Input Read as
1234.56 (default) 5,10,155, 10, 15
1,234.56 (US / UK) 1,250.75, 9801250.75, 980
1.234,56 (most of Europe) 1.250,75; 9801250.75, 980
Numeric order vs. alphabetical order
Ordinary text sorting compares numbers digit by digit, which gives the wrong order: 1, 10, 100, 2, 25, 3. Numeric sorting compares the actual values: 1, 2, 3, 10, 25, 100. Negative numbers come before zero in ascending order, and -10 is smaller than -2 . With Sort by absolute value the sign is ignored when ordering, which is handy for errors or differences where size matters more than direction.
Statistics formulas
Sum = x₁ + x₂ + … + xₙ
Average (arithmetic mean) = sum ÷ n
Median = the middle value of the sorted list, or the mean of the two middle values when n is even
Range = maximum − minimum
When Remove duplicates is on, the statistics are calculated from the unique values only. Results are rounded to 12 significant digits to hide floating-point noise such as 0.30000000000000004.
Frequently asked questions
How do I sort numbers from least to greatest? Paste the numbers into the box and choose Ascending. The tool compares the numeric values, so 9 comes before 10 and negative numbers come before zero, unlike alphabetical sorting which would put 10 before 9.
Why does alphabetical sorting put 100 before 20? Text sorting compares character by character, and the character 1 comes before 2, so 100 is placed before 20. A number sorter reads each value as a number and compares the size, giving 20, 100.
How are commas handled? That depends on the number format. In the default mode commas separate numbers, so 3,1,2 is three numbers. In the 1,234.56 mode a comma followed by exactly three digits is a thousands separator, and in the European 1.234,56 mode the comma is the decimal mark.
Can it find numbers inside sentences? Yes. Words and symbols are ignored and only the numbers are kept, so a sentence such as 'We sold 12 apples for $3.50 and 7 pears' gives 3.5, 7 and 12. A minus sign counts only when it is directly in front of the number and not between two digits, so a date like 2024-05-01 gives 2024, 5 and 1 rather than negative values.
How is the median calculated? The numbers are sorted and the middle value is taken. With an even count the median is the average of the two middle values. For 1, 3, 8, 10 the median is (3 + 8) / 2 = 5.5.
Is there a limit on how many numbers I can sort? There is no fixed limit. Sorting runs in your browser and handles hundreds of thousands of numbers in a fraction of a second. Your data is never uploaded.
Related tools
Sort Lines Alphabetically Sort a list A-Z, Z-A, numerically, naturally or by length, or shuffle it. Remove Duplicate Lines Delete duplicate lines from any list, ignoring case or spaces, keep first or last, and sort. Comma Separator Turn a column of lines into a comma separated list and back, with any delimiter. Mean Median Mode Calculator Find the mean, median, mode, range, min, max, sum and count of a list of numbers. Word Counter Count words and characters and clean up text. Character Counter Count characters with and without spaces, words, lines and bytes, with live limit bars. Word Count to Pages How many pages is 1,000 words? Estimate pages by font, size, spacing and margins. Remove Line Breaks Strip line breaks and extra spaces, keep paragraphs if you want. Case Converter Convert text to UPPERCASE, lowercase, Title Case, camelCase and more. Citation Generator Create APA, MLA and Chicago citations for books, websites and articles. MLA Format Generator Build an MLA 9 heading, title page layout and Works Cited entries. Bibliography Generator Build an alphabetized bibliography in APA 7, MLA 9, Chicago or Harvard style. Essay Length & Reading Time Words to reading time, speaking time and handwritten or typed pages. Lorem Ipsum Generator Generate placeholder text as paragraphs, words or lists, with HTML. Instagram Caption Formatter Keep line breaks and spacing in Instagram captions and bios. Instagram Bio Generator Create Instagram bios with templates, fancy fonts and emojis. X Post Character Counter Count X (Twitter) post characters and split long text into a thread. TikTok Caption Counter Count TikTok caption characters and hashtags against the 2,200 limit. Speech Length Calculator Paste a speech to see how long it takes to say at any speaking speed. Text to Speech Turn text into natural-sounding speech. Fancy Text Generator Turn text into cool Unicode fonts for bios. Reverse Text Generator Write text backwards, reverse words or lines, mirror or flip it upside down. Upside Down Text Generator Flip text upside down with Unicode characters, or turn it back to normal. Text Repeater Repeat any text or emoji up to 100,000 times with custom separators. YouTube Title Length Checker Check YouTube title length, preview truncation and score it for clicks. YouTube Description & Chapters Generator Build a YouTube description with chapters, links and hashtags from templates. Text Compare Find the differences between two texts. AI Prompt Generator Build better prompts for ChatGPT, Midjourney and more. Email Signature Generator Build HTML email signatures for Gmail and Outlook. Flashcard Maker Make flashcard decks and study them with flip cards and spaced repetition, saved in your browser. Find and Replace Text Find and replace words or regex patterns in any text, with match highlighting and undo. YouTube Tag Generator Generate YouTube tag ideas from your title and keywords and fit them in the 500-character limit. Quiz Maker Make a multiple-choice quiz, take it with instant scoring and share it with a link. Add Line Numbers Number every line of your text with custom start, step, padding and separator, or remove numbers. Add Prefix and Suffix to Lines Add text to the start and end of every line: quotes, commas, bullets or SQL lists. LinkedIn Post Formatter Add bold, italic and other Unicode styles to LinkedIn posts and preview the fold. Word Frequency Counter Find the most used words and phrases in any text and turn them into a word cloud. Social Media Post Preview Mock up a post for X, Facebook, Instagram, LinkedIn or Threads and save it as a PNG. Sentence Counter Count sentences and paragraphs, see average sentence length and spot long sentences. Emoji Counter Count every emoji in your text, including flags, skin tones and ZWJ sequences. Readability Checker Score your text with Flesch, Flesch-Kincaid, Gunning Fog, SMOG and more readability tests. Text to Handwriting Converter Turn typed text into realistic handwriting on notebook paper and save it as PNG or PDF. Keyword Density Checker Find the most used 1, 2 and 3-word phrases in your text and their keyword density %. Title Capitalization Tool Capitalize titles and headlines in AP, APA, Chicago and MLA style side by side, with one-click copy. Accent Keyboard Click to insert é, ñ, ü, ç, ß and other accented letters for 11 languages, then copy. Small Text Generator Turn text into tiny superscript, subscript and small caps letters you can copy and paste. Headline Analyzer Score your headline 0–100 on length, word balance, power words, sentiment and type, with tips. Cyrillic Transliteration Convert Bulgarian, Russian and Ukrainian Cyrillic to Latin and back using official rules. Zalgo Text Generator Make creepy glitch text with separate up, middle and down sliders, or clean zalgo back to normal. Arabic Keyboard Type Arabic online with a full on-screen keyboard, harakat and Arabic-Indic digits, then copy. Invisible Character Copy blank and invisible characters (ㅤ U+3164, U+2800, zero width space) for names and messages. Reading Time Calculator Estimate how long a text takes to read or speak at any speed, and copy a “5 min read” badge. Russian Keyboard Type Russian online with a ЙЦУКЕН or phonetic on-screen keyboard, then copy your Cyrillic text. Emoji Picker Search 1,900+ emoji by name, pick skin tones and copy and paste them with one click. Japanese Kana Converter Convert romaji to hiragana or katakana, kana to romaji, and hiragana to katakana instantly. Special Characters Copy and paste 1,500+ symbols: arrows, math, currency, stars, checkmarks, © ® ™ and more. Pinyin Tone Converter Turn pinyin tone numbers (ni3 hao3) into tone marks (nǐ hǎo), or tone marks back into numbers. Word Unscrambler Unscramble letters into every possible word, with blank tiles, length filters and Scrabble scores. Remove Extra Spaces Clean up double spaces, tabs, blank lines, non-breaking and invisible spaces in one click. ROT13 Encoder / Decoder Encode and decode ROT13, ROT47, ROT5, ROT18 and any Caesar shift live as you type. Random Word Generator Generate random English words by type, length, first letter and syllables, then copy them. Palindrome Checker Check if a word, sentence or number is a palindrome and find the longest palindrome in text. Syllable Counter Count syllables per word, line and total, and check haiku 5-7-5 instantly. List Randomizer Shuffle a list into random order, pick random items or split it into fair teams. Email Extractor Pull every unique email address out of text or files, sort, filter by domain and export CSV. URL Extractor Extract every link from text or HTML, remove duplicates, filter by domain or protocol. NATO Phonetic Alphabet Translator Spell any text as Alfa, Bravo, Charlie, hear it spoken, or decode code words back to text. Braille Translator Translate English text to Grade 1 Unicode braille and back, with dot numbers and printing. Text Summarizer Summarize long text into its key sentences and keywords, privately in your browser. Strip HTML Tags Remove HTML tags and get clean plain text with line breaks and decoded entities. Speech to Text Dictate with your voice and get editable text in 50+ languages, with voice punctuation. ASCII Art Generator Turn text into big ASCII banners or convert any image into ASCII art you can copy. Online Notepad Private notepad that autosaves notes in your browser, with find, word count and .txt download. Bold Text Generator Convert text to bold Unicode letters you can copy and paste anywhere. Italic Text Generator Convert text to italic Unicode letters you can copy and paste anywhere. Cursive Text Generator Convert text to cursive Unicode letters you can copy and paste anywhere. Strikethrough Text Generator Convert text to strikethrough Unicode letters you can copy and paste anywhere. Underline Text Generator Convert text to underlined Unicode letters you can copy and paste anywhere. Bubble Text Generator Convert text to bubble Unicode letters you can copy and paste anywhere. Wide Text Generator Convert text to wide Unicode letters you can copy and paste anywhere. Old English Text Generator Convert text to Old English Unicode letters you can copy and paste anywhere. Superscript Generator Convert text to superscript Unicode letters you can copy and paste anywhere. Subscript Generator Convert text to subscript Unicode letters you can copy and paste anywhere. Cover Letter Generator Fill in a short form and get a tailored, editable cover letter to copy, download or save as PDF. Resignation Letter Generator Create a polite resignation letter or email from templates, with your dates filled in, ready to send. Pig Latin Translator Translate English to Pig Latin and back, keeping capital letters and punctuation intact. Remove Punctuation Strip all or only selected punctuation from text, with smart options for apostrophes and numbers. Text Splitter Split long text into chunks by characters, words, lines or a delimiter, with numbering and copy. Remove Special Characters Strip symbols, emoji and odd characters, keeping only letters, numbers, spaces and what you allow. Remove Accents Strip accents and diacritics from text (é→e, ñ→n, ß→ss, ø→o) instantly, live as you type. Spell Checker Check spelling online: misspelled words are highlighted with suggestions you can click to fix. Thread Splitter Split long text into numbered X, Threads, Bluesky or Mastodon posts at sentence boundaries. Duplicate Word Finder Find repeated words in your text: doubled words like "the the" and overused words, highlighted. Emoji Translator Translate text to emoji: words like love, pizza and dog become ❤️ 🍕 🐶, with a density slider. Alternating Caps Generator Turn text into aLtErNaTiNg caps, random caps or alternating words, then copy it. Random Paragraph Generator Generate readable random English paragraphs by topic and length for writing and design. Random Sentence Generator Generate random grammatical sentences: simple, compound, complex and questions. Rhyme Finder Find perfect and near rhymes for any word, grouped by syllables, for songs and poems. Dictionary Look up English word definitions with pronunciation audio, examples, synonyms and antonyms. Acronym Generator Turn a phrase into an acronym, or turn letters into creative backronym ideas. Markdown to Plain Text Strip Markdown syntax and keep clean plain text with lists, line breaks and link URLs. SRT to Text Turn SRT or VTT subtitles into a clean transcript with paragraphs, with or without timestamps. Transcript Cleaner Remove timestamps, speaker labels and filler words like um and uh, and fix broken line breaks. WhatsApp Chat Analyzer Analyze an exported WhatsApp chat: who texts most, active hours, top words and emojis, privately. Extract Numbers from Text Pull every number out of text: decimals, negatives and percentages, with sum, average and CSV. Extract Phone Numbers Find phone numbers in any text, normalize them to E.164, remove duplicates and export CSV. Letter Frequency Counter Count how often each letter appears, compare with English frequencies and see top bigrams. Monospace Text Generator Turn text into 𝚖𝚘𝚗𝚘𝚜𝚙𝚊𝚌𝚎 typewriter-style Unicode letters to copy and paste. Double-Struck Text Generator Convert text to 𝕕𝕠𝕦𝕓𝕝𝕖-𝕤𝕥𝕣𝕦𝕔𝕜 (blackboard bold) letters and digits to copy and paste. Square Text Generator Turn text into 🅂🅀🅄🄰🅁🄴 and black 🆂🆀🆄🅰🆁🅴 box letters to copy and paste. Aesthetic Text Generator Make aesthetic text with vaporwave letters, sparkles, hearts and frames to copy. Emoji Letters Generator Turn words into 🇭 🇪 🇱 🇱 🇴 regional indicator, 🅰️ block and keycap 1️⃣ emoji letters. Hindi Keyboard Type Hindi online with an InScript or phonetic Devanagari keyboard, then copy your text. Urdu Keyboard Type Urdu online with a phonetic keyboard or Roman Urdu typing, then copy your Urdu text. Persian Keyboard Type Persian (Farsi) online with the standard ISIRI layout or Finglish typing, then copy. Greek Keyboard Type Greek online with the standard Greek layout or Greeklish, accents included, then copy. Hebrew Keyboard Type Hebrew online with the standard Israeli layout or phonetic typing, with niqqud. Korean Keyboard Type Korean Hangul online with the 2-set Dubeolsik keyboard; jamo combine automatically. Ukrainian Keyboard Type Ukrainian online with the ЙЦУКЕН keyboard or Latin translit, incl. ї, є, ґ and ʼ. Bulgarian Keyboard Type Bulgarian online with the BDS or phonetic keyboard or Latin typing, then copy. Bengali Keyboard Type Bengali (Bangla) online with InScript or phonetic typing, then copy your text. Tamil Keyboard Type Tamil online with the InScript layout or phonetic (Tanglish) typing, then copy. Thai Keyboard Type Thai online with the standard Kedmanee keyboard layout, then copy your Thai text. Gujarati Keyboard Type Gujarati online with InScript or phonetic English typing, then copy your text. Punjabi Keyboard Type Punjabi (Gurmukhi) online with InScript or phonetic typing, then copy your text. Armenian Keyboard Type Armenian online with the phonetic keyboard or Latin typing, then copy your text.
See All Text Tools ▾