onlineintegertools logo

Integer digit sorter

World's simplest integer tool

This browser-based utility changes the order of digits in an integer and returns a new integer with the same but sorted digits in the output. You can rearrange digits in ascending, descending, or random order. By default, the digits are sorted one by one but you can also sort groups of multiple digits. You can also add an extra separator between the sorted digits in the options and apply a filter to sort only the unique digits. Created by math nerds from team Browserling.
announcement a new site!
We just launched a new site – Online Unicode Tools – utilities for working with Unicode. Check it out!
Sort Modes
Rearrange digits in order from 0 to 9.
Rearrange digits in order from 9 to 0.
Rearrange digits in arbitrary order.
Group Size and Separator
Split integers into groups of this many digits, and sort multi-digit groups.
Separate sorted digits or sorted groups of digits with this character.
Unique Digit Filter
Sort only unique digits.
Integer digit sorter tool What is a integer digit sorter?
With this online application, you can sort the digits in one or more integers. The digits can be sorted in ascending order (from 0 to 9), in decreasing order (from 9 to 0), or just make the order of digits chaotic (mix the digits in random order). By default, each digit is sorted independently and moved to the correct position but you can also create chunks of digits from each integer and sort the chunks. For example, you can split the integer 406020 into groups of two digits and get three sub-integers 40, 60, 20. Then sort them in increasing order and get 204060, decreasing order and get 604020, or random order and get 206040 (or 602040, or 402060, … there are 6 possible random permutations). To better visualize the boundaries of groups, you can insert a delimiter character between them. For example, if you insert the pipe symbol between the two-digit groups you will get "40|60|20" or if you insert the dash symbol between single digits groups you will get "4-0-6-0-2-0". You can also use the unique digit filter option if you don't need duplicate digits. For example, when sorting the single digits of the integer 406020, you will get the value 000246 but with the filter option active, you will get 0246. Integerabulous!
Integer digit sorter examples Click to use
Sort Individual Digits
In this example, we enter a huge twenty-digit integer in the input field and sort its digits in ascending order. It's easy to see that this integer contains all digits from 0 to 9, some of them multiple times. The repeated values are not deleted because the skip-duplicate-digits option is turned off.
27453128609014580571
00011122344555677889
Required options
These options will be used automatically if you select this example.
Rearrange digits in order from 0 to 9.
Split integers into groups of this many digits, and sort multi-digit groups.
Separate sorted digits or sorted groups of digits with this character.
Sort only unique digits.
Sort Digit Pairs
In this example, we split the input integers into groups of two digits and sort these groups in decreasing order. In this case, the program compares and sorts pairs of digits rather than individual digits. The first integer "2546" is divided into two pieces: "25" and "46", then these two pieces are sorted. As 25 < 46, the first piece then is 46, followed by 25. Also to show the pairs, the pipe character is used as the pair separator.
2546 403080509060107020 6260686466
46|25 90|80|70|60|50|40|30|20|10 68|66|64|62|60
Required options
These options will be used automatically if you select this example.
Rearrange digits in order from 9 to 0.
Split integers into groups of this many digits, and sort multi-digit groups.
Separate sorted digits or sorted groups of digits with this character.
Sort only unique digits.
Sort Non-repeating Digits
The integers in this example contain multiple repeating digits. To make sure that only the non-repeating digits are sorted, we use the checkbox option that removes duplicate digits. The sort order in this example is random and also the dot symbol is inserted after each sorted digit.
888883337771222244 -377333777333777 +99111222888222
1.3.2.7.4.8 -7.3 +9.1.8.2
Required options
These options will be used automatically if you select this example.
Rearrange digits in arbitrary order.
Split integers into groups of this many digits, and sort multi-digit groups.
Separate sorted digits or sorted groups of digits with this character.
Sort only unique digits.
Pro tips Master online integer tools
You can pass input to this tool via ?input query argument and it will automatically compute output. Here's how to type it in your browser's address bar. Click to try!
https://onlineintegertools.com/sort-integer-digits?input=27453128609014580571&ascending-order=true&group-size=1&digit-separator=&skip-duplicates=false
All integer tools
Didn't find the tool you were looking for? Let us know what tool we are missing and we'll build it!
Quickly rewrite integer digits using pretty Unicode glyphs.
Quickly generate random two-dimensional integer points.
Quickly generate random three-dimensional integer points.
Quickly print a list of integers that are palindromes.
Quickly convert the given integer to a palindromic integer.
Quickly find all integers in the given text or string.
Quickly make integer digits go in a triangle wave.
Quickly unleash the destructive force of Zalgo on integers.
Quickly find two or more integers that add up to the given integer.
Quickly find several integers that multiply up to the given integer.
Quickly randomize the given sequence of integers.
Quickly mix the order of digits in an integer.
Quickly put integers in increasing or decreasing order.
Quickly sort the individual digits of an integer.
Quickly increase all integers by a certain amount.
Quickly increase individual digits by a certain amount.
Quickly decrease all integers by a certain amount.
Quickly decrease individual digits by a certain amount.
Quickly randomly select an integer from a list of integers.
Quickly create groups from the digits of an integer.
Quickly write integer digits backwards.
Quickly remove one or more digits from an integer.
Quickly replace one or more digits in an integer.
Quickly drop digits from an integer and make it shorter.
Quickly add the thousands separator to integers.
Quickly remove the thousands separator from integers.
Quickly find the largest integer in a list of integers.
Quickly find the smallest integer in a list of integers.
Quickly find the total sum of a bunch of integers.
Quickly find the sum of all the digits in an integer.
Quickly find the total product of a bunch of integers.
Quickly find the product of all the digits in an integer.
Quickly calculate the partial sum of a bunch of integers.
Quickly calculate the partial product of a bunch of integers.
Quickly flip the sign of one or more integers.
Quickly split an integer into chunks of a given length.
Quickly merge partial integers together to form a larger integer.
Quickly round integers up or down to the required precision.
Quickly convert integers to a downloadable picture.
Quickly generate a list of von Neumann ordinals.
Quickly generate a list of Zermelo ordinals.
Quickly generate an ordered sequence of integers.
Quickly generate an ordered list of even integers.
Quickly generate an ordered list of odd integers.
Quickly write an integer spelling in words.
Quickly convert spelled integers to regular integers with digits.
Quickly generate an array of integers for programming.
Quickly find the number of occurrences of digits in integers.
Coming soon These integer tools are on the way
Draw von Neumann Universe
Create a drawing that visualizes von Neumann hierarchy of sets.
Create Integer n-Tuples
Generate a list of tuples of integers with n elements.
Convert Integers to Unary Base
Quickly convert integers to base one.
Convert Unary Base to Integers
Quickly convert base one to integers.
Convert Integers to Binary Base
Quickly convert integers to base two.
Convert Binary Base to Integers
Quickly convert base two to integers.
Convert Integers to Octal Base
Quickly convert integers to base eight.
Convert Octal Base to Integers
Quickly convert base eight to integers.
Convert Integers to Hex Base
Quickly convert integers to base sixteen.
Convert Hex Base to Integers
Quickly convert base sixteen to integers.
Convert Integers to Any Base
Quickly convert integers to a custom base.
Convert Integers to Base64
Quickly encode integers to base-64.
Convert Base64 to Integers
Quickly decode base-64 to integers.
Convert Integers to HTML Entities
Quickly encode integers to HTML encoding.
Convert HTML Entities to Integers
Quickly decode HTML entities to integers.
Create Random Integers
Generate a list of random integers.
Check if an Integer is Symmetric
Check if the given integers are palindromes.
Generate an Integer Matrix
Create a matrix whose entries are all integers.
Generate an Integer Vector
Create a vector with integer coefficients.
Rotate Integers
Rotate the digits of an integer to the left or right.
Shift Integer Digits
Move the digits of an integer to the left or right.
Subtract Integers
Quickly find the difference of a bunch of integers.
AND Integers
Quickly apply the bitwise AND operation to integers.
OR Integers
Quickly apply the bitwise OR operation to integers.
XOR Integers
Quickly apply the bitwise XOR operation to integers.
NOT Integers
Quickly apply the bitwise NOT operation to integers.
NAND Integers
Quickly apply the bitwise NAND operation to integers.
NOR Integers
Quickly apply the bitwise NOR operation to integers.
XNOR Integers
Quickly apply the bitwise NXOR operation to integers.
Convert an Integer to Ordinal
Add -st, -nd, -rd, -th suffixes to integers to make them ordinals.
Convert an Oridinal to Integer
Remove -st, -nd, -rd, -th suffixes from ordinals to make them ints.
Filter Integers
Find integers that match a filter (greater, less, equal).
Left-pad Integers
Add padding to integers on the left side.
Right-pad Integers
Add padding to integers on the right side.
Right-align Integers
Position all integers so that they align on the right.
Center Integers
Position all integers so that they align in the middle.
Take Absolute Value of Integers
Turn all integers into positive integers.
Make All Integers Negative
Turn all integers into negative integers.
Convert Integers to Fractions
Rewrite an integer in fractional form.
Convert Fractions to Integers
Extract the numerator and denominator from a fraction.
Find and Replace Integers
Search for all occurrences of an integer and replace it.
Generate Integers from Regex
Create integers that match the given regular expression.