onlineintegertools logo

Integer analyzer

World's simplest integer tool

This online utility analyzes the digit frequency in one or more integers and prints the digit statistics to the screen. You can find the frequency distributions of one, two, three, or more digits, as well as check the Benford's law (first-digit law). You can display the digit count, percentage, and total values, and also choose the format of the output in the options. Created by math nerds from team Browserling.
announcement a new project!
Super exciting news! We just launched TECHURLS – simple and fun tech news reader. Check it out!
Digit Options
Enter the lengths of digits that you want to analyze. Use list "1, 2, 4" or range "2-5" formats.
Concatenate multiple input integers together and analyze them as a single integer.
Only look at the leading digit(s) of the input integers. (Useful for verifying the Benford's law.)
Analysis Type
Print the frequency of occurrence of each digit or group of digits.
Print the frequency and percentage of each digit or group of digits.
Print the frequency and total of each digit or group of digits.
Analysis Format
Choose the integer statistics format that you like.
Integer analyzer tool What is a integer analyzer?
With this browser-based program, you can analyze the frequency of digit occurrences in one or more integers. It runs through all the digits in input integers and prints the information about the statistical digit distributions in them. For example, by entering the integer 242555 as input and analyzing single digits, you will get information that this value consists of two twos, one four, and three fives. If you adjust the "Digit Length" option to 2, then you'll get information about two-digit values: "24", "42", and "25" appear 1 time and "55" appears 2 times. Similarly, three-digit values "242", "425", "255", and "555" appear 1 time. To analyze all possible digit lengths, enter the asterisk symbol "*" in the option. You can also specify other digit length values by listing them separated by commas "1, 2, 5" (this will print statistics of single-digits, digit pairs, and five-digit values), using a range "2-4" (this will print statistics of two, three, and four-digit values), or by combining a list and a range "1-3, 5, 6" (this will print statistics of one, two, three, five and six-digit values). By default, the maximum digit length is equal to the longest integer in the input, but if you activate the option "Join All Integers", then the input will be concatenated and all the input values will form a single large integer. You can also quickly generate statistics to check the Benford's law (also know as Newcomb-Benford law or law of anomalous numbers). This law states that most often, the leading digit of statistics taken from real life is 1, while the greater digits 2, 3, … appear as the most significant digit less and less. To verify the first-digit law, enter a set of integer data in the input field and activate the "Anchor at Beginning" option. This option will look only at the first digit of each integer. By default, the program displays only the number of occurrences of digits in the integer, but you can also display the percentages and fractions of the total. You can also choose the analysis output format and display the information as full text, for example, "Digit 5 appears 3 times", via the colon character, for example, "5: 3", or using a dash, for example, "5 – 3". Integerabulous!
Integer analyzer examples Click to use
Digit Frequency Distribution
In this example, we analyze the frequency of occurrence of all single-digit values 0 to 9 in multiple integers. To do this, we enter the value "1" into the digit-length option, which corresponds to the analysis of individual digits. We display only the digit counts in the format "digit: number-of-occurrences". As you can see, the most popular digit is 5 and it appears 6 times.
23589 4561 56842 9540 807102 5250
0: 4 1: 2 2: 4 3: 1 4: 3 5: 6 6: 2 7: 1 8: 3 9: 2
Required options
These options will be used automatically if you select this example.
Enter the lengths of digits that you want to analyze. Use list "1, 2, 4" or range "2-5" formats.
Concatenate multiple input integers together and analyze them as a single integer.
Only look at the leading digit(s) of the input integers. (Useful for verifying the Benford's law.)
Print the frequency of occurrence of each digit or group of digits.
Choose the integer statistics format that you like.
Multi-digit Analysis
In this example, we analyze single-digit, two-digit, three-digit, and five-digit sub-integers. To include all of these values in the analysis, we set the analysis length option to "1-3, 5". This way the analysis algorithm looks at all sub-integers of length 1 to 3 and 5. We also activate the "Join All Integers" mode to examine both input integers as one big integer. We use the dash format for the statistics output and display the frequency of the digits together with their total count.
2454 5245
2 – 2 (2/8) 4 – 3 (3/8) 5 – 3 (3/8) 24 – 2 (2/7) 45 – 3 (3/7) 52 – 1 (1/7) 54 – 1 (1/7) 245 – 2 (2/6) 452 – 1 (1/6) 454 – 1 (1/6) 524 – 1 (1/6) 545 – 1 (1/6) 24545 – 1 (1/4) 45245 – 1 (1/4) 45452 – 1 (1/4) 54524 – 1 (1/4)
Required options
These options will be used automatically if you select this example.
Enter the lengths of digits that you want to analyze. Use list "1, 2, 4" or range "2-5" formats.
Concatenate multiple input integers together and analyze them as a single integer.
Only look at the leading digit(s) of the input integers. (Useful for verifying the Benford's law.)
Print the frequency and total of each digit or group of digits.
Choose the integer statistics format that you like.
Verify Benford's Law
In this example, we load country population statistics and verify Newcomb-Benford law. To find how often each leading digit appears in the sample data, we activate the "Anchor at Beginning" option. This option anchors the analysis at the first digit of each integer and discards other digits. This way, we get the frequency distribution of the first digit together with their percentage. We also select the option to print the statistical information in the text format. Looking at the output, we can say that this data follows the Benford law as the smallest leading digits appear often (digit 1 occurs in 40% of cases), while the larger digits are rarely found in the first spot (digit 9 occurs in only 8% of cases).
1404694000 1376404000 329957441 266911900 218481188 211819980 208170076 171049608 146748590 126577691 125950000 112079000 108988550 100791150 96208984 86791000 84342410 83154997 83149300 68859599 66647112 66545883 60238522 55890747 54956900 54045000 51780579 48258494 47564296 46934632 44938712 43053000 42792500 41660982 40006700 39310000 38313035 38206430 36006860 34342017 34218169 32918580 32710000 32225560 32162184 31825000 30418000 30366000 29162000 28609000 25795000 25717000 25680342 25666000 24348251 23782448 22314743 21803000 20870060 19658000 19618065 19401658 19256346 18763165 17861000 17679735 17563749 17522410 17469745 17070000 15948000 15443000 15288489 14645000 12771000 11952693 11722038 11476279 11469896 11333000 11215578 11062000 10911819 10741165 10739000 10693939 10670315 10315244 10313447 10276617 9981500 9771000 9722556 9408400 9158345 9136000 9127000 8902600 8776000 8570146
Digit 1 appears 40 times (40%). Digit 2 appears 15 times (15%). Digit 3 appears 14 times (14%). Digit 4 appears 8 times (8%). Digit 5 appears 4 times (4%). Digit 6 appears 4 times (4%). Digit 8 appears 7 times (7%). Digit 9 appears 8 times (8%).
Required options
These options will be used automatically if you select this example.
Enter the lengths of digits that you want to analyze. Use list "1, 2, 4" or range "2-5" formats.
Concatenate multiple input integers together and analyze them as a single integer.
Only look at the leading digit(s) of the input integers. (Useful for verifying the Benford's law.)
Print the frequency and percentage of each digit or group of digits.
Choose the integer statistics format that you like.
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/analyze-integers?input=23589%0A4561%0A56842%0A9540%0A807102%0A5250&digit-length=1&join-integers=false&anchor-at-beginning=false&print-count=true&output-format=colon-format
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.