Skip to main content

Sort Numbers

Sort pasted numbers numerically in your browser.

Tool workspace

Sorting runs in your browser. Nothing you paste is sent to our servers.

How it works

Paste or type one number per line. The tool trims each line, ignores blanks, sorts by numeric value (not alphabetical order), and joins results with LF.

Choose Ascending (default, smallest → largest) or Descending (largest → smallest). Equal values keep their original relative order. Each line’s exact digits are preserved—numbers are not reformatted.

Accepted values: decimal integers and floats with an optional sign and optional scientific exponent (for example 1e3). Non-numeric lines show a clear error and clear the output. Empty input produces an empty result—no error.

Results update as you type (light debounce). Processing runs entirely in your browser.

Examples

  • 10\n2\n1 → 1\n2\n10 (ascending)
  • 10\n2\n1 with Descending → 10\n2\n1
  • 9 before 10 numerically (not as text)
  • 1e2\n50 → 50\n1e2

Privacy

Privacy: this tool processes text locally in your browser. We do not log or store what you paste. Login is not required.

FAQ

Is my text uploaded to a server?

No. Number sorting runs entirely in your browser. Pasted content is not sent to Every Tools.

Do I need an account?

No. All published tools work for guests without login.

Why isn’t 10 sorted before 9?

This tool sorts by numeric value, so 9 comes before 10. Use Sort Lines A To Z if you want alphabetical (lexicographic) order.