Free online text tool

Sort Numbers

Sort Numbers sorts the numbers in your text in ascending order, descending order or randomly. Paste your numbers, click the button and copy the sorted list. It is free and runs in your browser.

Sort Number Online Tool

0Character Count
0Character Count (without spaces)
0Word Count
0Sentence Count
0Paragraph Count
0Line Count

Sort Numbers Example

Sort order: Ascending

Before
10
2
33
1
After
1
2
10
33

Bookmark: press Ctrl+D (Windows) or Cmd+D (Mac) to save this tool.

Suggest a New ToolProvide Feedback on This Tool

What does Sort Numbers do?

This tool sorts the numbers in your text by their value, from small to large, from large to small, or in a random order. The sorted numbers are put on one line each.

Separate your numbers with new lines, spaces, commas or semicolons. Negative numbers and decimals are sorted by value, so 2 comes before 10. Each number is returned as you wrote it, and anything that is not a number is ignored.

Use it to put scores, prices, measurements or IDs in order, to find the smallest and largest value, or to mix numbers into a random order.

Sort numbers examples

Each example shows your numbers before and after sorting. The random example shows one possible result.

CaseBeforeAfter
Ascending (small to large)
10
2
33
1
1
2
10
33
Descending (large to small)
10
2
33
1
33
10
2
1
Decimals and negative numbers
3.5
-2
0.75
10
-2
0.75
3.5
10
Commas and spaces between numbers
5, 3, 9 1
1
3
5
9
Words are ignored
apple
4
2 pears
2
4
Numbers are kept as written
007
7.50
2
2
007
7.50
Random (one possible result)
1
2
3
4
3
1
4
2

How to sort numbers

  1. 1
    Add your numbers
    Paste your numbers into the box, one on each line or separated by spaces or commas, or import a text file.
  2. 2
    Choose the sort order
    Pick Ascending (small to large), Descending (large to small) or Random.
  3. 3
    Click Sort Numbers
    The numbers are sorted and shown one on each line. Use Undo if you change your mind.
  4. 4
    Copy it
    Click Copy and paste the sorted numbers where you need them.

When to sort numbers

Good for

Putting scores, prices, measurements and IDs in order, finding the smallest and largest value, and mixing numbers into a random order.

Check first

Numbers are split at new lines, spaces, commas and semicolons, so a number written like 1,000 is read as 1 and 000. Words and other text are ignored. Repeated numbers are kept. The result replaces your text, so use Undo if you need the original.

Other tools

To sort words A to Z try Alphabetical Sort. To pull the numbers out of a text first try Extract Numbers From Text. To remove repeated lines try Remove Duplicate Lines.

Sort numbers FAQ

What does the Sort Numbers tool do?

It sorts the numbers in your text from small to large (ascending), from large to small (descending), or in a random order. Each number is put on its own line.

How do I sort numbers?

Paste your numbers, choose the Sort order, then click Sort Numbers. The sorted numbers replace the text in the box. Click Copy to use them, or Undo to go back.

How should I separate the numbers?

Put them on separate lines, or separate them with spaces, commas or semicolons. The tool splits your text at those places, so 5, 3, 9 1 gives four numbers.

Does it sort by value or like text?

By value. So 2 comes before 10, which an alphabetical sort would not do. Negative numbers and decimals are sorted by value too, for example -2 comes before 0.75.

Can it sort in random order?

Yes. Choose Random as the Sort order and every click gives a new random order.

What happens to words and other text?

Anything that is not a number is ignored, and the message tells you how many pieces were ignored. Only plain numbers such as 12, -3, +4 and 2.5 are used.

Are my numbers changed?

No. Each number is returned as you wrote it, so 007 and 7.50 stay the same. Only the order changes.

Does it remove duplicate numbers?

No. A number that appears twice is kept twice. To remove repeated lines use Remove Duplicate Lines.

Is this tool free and is my text private?

Yes. It is free, needs no account and runs in your browser, so your text is not uploaded to a server.

Looking for more text tools?

Browse Sorting Tools

Last updated: 10 November 2026