Navigation

HomeImage ToolsCode ToolsMath ToolsDate ToolsGeneratorsUtilities
Color ToolsText ToolsPDF Tools

Sort Digits

Sort the digits of any number in ascending or descending order.

Paste a number like 582914 and pick ascending or descending. The digits get rearranged — 124589 going up, 985421 going down — and decimals or signs stay put if you want them preserved. And everything runs in your browser. Nothing gets uploaded.

How It Works

This tool extracts the digits from each number and sorts them in the chosen order. For example, sorting 582914 ascending gives 124589. Decimal points can be preserved — the integer and fractional parts are sorted independently.

FAQ

What about decimal numbers?

The digits before and after the decimal point are sorted separately, preserving the decimal structure.

Can I sort multiple numbers?

Yes. Enter one per line or separate them with commas.

What does descending order mean?

Digits are arranged from largest (9) to smallest (0). So 582914 becomes 985421.

Related Tools