Our Network


Coming Soon


Coming Later

Integer Array Creator

World's Simplest Integer Tool

This online utility creates a linear or random array of integers that can be directly used in various programming languages. You can quickly switch between array syntax of over a dozen different programming languages or create a custom array format in the options. You can specify start and step values for linear arrays or range start and range end values for random arrays. Additionally, you set the desired length of the output array and can create an array of string integers. Created by math nerds from team Browserling.

Integer Array Creator

World's Simplest Integer Tool

This online utility creates a linear or random array of integers that can be directly used in various programming languages. You can quickly switch between array syntax of over a dozen different programming languages or create a custom array format in the options. You can specify start and step values for linear arrays or range start and range end values for random arrays. Additionally, you set the desired length of the output array and can create an array of string integers. Created by math nerds from team Browserling.

Tool Options

Array Options

Start value.
Step value.
Length of the linear array.
Range start.
Range end.
Length of the random array.

Array Syntax

Select the programming language syntax.
With the custom syntax mode selected, adjust the new format here:
Left array symbol.
Right array symbol.
Array element separator char. (Goes between all integers.)

Integer Format

Wrap integers in quotes to get an array of strings.
For example, if the regular array is [-1, 5, 7], then quoted array is ["-1", "5", "7"].

What Is an Integer Array Creator?

With this browser-based application, you can generate an array of integers for any programming language. An array is a data structure that consists of a sequence of elements (in our case it's a sequence of integers) that are identified by an array index. Different programming languages use different syntax for creating arrays. For example, JavaScript, PHP, Swift, and Ruby use square brackets to create arrays and the elements are comma-separated, such as [1, 55, -23]. Matlab also uses square brackets, but separates the elements with spaces, for example, [1 55 -23]. Rust creates comma-separated arrays with square brackets, prefixed with a type signature [T; size], for example, [i8; 5] = [0, 3, 7, -9, 4] or [i16; 3] = [255, -146, 2]. Languages C, C#, C++, Go, Java, Visual Basic, and Mathematica put the array elements in curly brackets, for example, {1, 55, -23}. Python uses either round brackets or square brackets, depending on if you're creating tuples or lists. The Perl language, similar to Python tuples, encloses array elements in curly brackets, for example, (1, 55, -23). R uses a special syntax "c(...)" where "c" stands for a column. This language internally represents arrays as column vectors and an example of an R array is c(1, 55, -23). All in all, you can choose between eighteen programming languages and two different array types in the options. If you need a different array format for a language that's not listed, then you can create your own array syntax via the custom mode option. With this mode selected, you can specify the symbols that go before and after an array on the left and right, as well as the symbol that goes between integers. The two array types are – a linear array that lets you specify the start value, step value, and the number of integers and an array of random integers that have the range start value, range end value, and also the number of output integers. For all array types, you can also quickly quote integers to get an array of integers that are strings. Integerabulous!

What Is an Integer Array Creator?

With this browser-based application, you can generate an array of integers for any programming language. An array is a data structure that consists of a sequence of elements (in our case it's a sequence of integers) that are identified by an array index. Different programming languages use different syntax for creating arrays. For example, JavaScript, PHP, Swift, and Ruby use square brackets to create arrays and the elements are comma-separated, such as [1, 55, -23]. Matlab also uses square brackets, but separates the elements with spaces, for example, [1 55 -23]. Rust creates comma-separated arrays with square brackets, prefixed with a type signature [T; size], for example, [i8; 5] = [0, 3, 7, -9, 4] or [i16; 3] = [255, -146, 2]. Languages C, C#, C++, Go, Java, Visual Basic, and Mathematica put the array elements in curly brackets, for example, {1, 55, -23}. Python uses either round brackets or square brackets, depending on if you're creating tuples or lists. The Perl language, similar to Python tuples, encloses array elements in curly brackets, for example, (1, 55, -23). R uses a special syntax "c(...)" where "c" stands for a column. This language internally represents arrays as column vectors and an example of an R array is c(1, 55, -23). All in all, you can choose between eighteen programming languages and two different array types in the options. If you need a different array format for a language that's not listed, then you can create your own array syntax via the custom mode option. With this mode selected, you can specify the symbols that go before and after an array on the left and right, as well as the symbol that goes between integers. The two array types are – a linear array that lets you specify the start value, step value, and the number of integers and an array of random integers that have the range start value, range end value, and also the number of output integers. For all array types, you can also quickly quote integers to get an array of integers that are strings. Integerabulous!


Integer Array Creator Examples

Click to try!
click me

Linear Array for Java

In this example, we create a linear 12-element array for the Java programming language. Arrays in Java use the curly bracket format with comma-separated elements. We start the linear array at 0 and increment the subsequent elements by 2 until the array is filled with 12 integers.

{0, 2, 4, 6, 8, 10, 12, 14, 16, 18, 20, 22}
Required options
These options will be used automatically if you select this example.
Start value.
Step value.
Length of the linear array.
Select the programming language syntax.
Wrap integers in quotes to get an array of strings.
click me

Random Python List

This example creates a Python list with random integers in string representation. There are twenty random integers in this list from the range [-100, 100] and they're all put in quotation marks so that the elements have the string type. Just a quick reminder – Python lists, compared to tuples, which use round parentheses, can be modified but tuples are immutable and can't be modified.

["20", "-92", "-79", "-39", "-14", "83", "6", "-43", "-52", "41", "11", "-42", "34", "-74", "-78", "5", "38", "65", "14", "16"]
Required options
These options will be used automatically if you select this example.
Range start.
Range end.
Length of the random array.
Select the programming language syntax.
Wrap integers in quotes to get an array of strings.
click me

Custom Decreasing Array

In this example, we decided to create an array for our own imaginary programming language that has a unique syntax. In our language, arrays are declared via angle brackets and elements are separated using colons. We generate an array of twenty-three decreasing integers that start from the value 99 and end at -99.

<99:90:81:72:63:54:45:36:27:18:9:0:-9:-18:-27:-36:-45:-54:-63:-72:-81:-90:-99>
Required options
These options will be used automatically if you select this example.
Start value.
Step value.
Length of the linear array.
Select the programming language syntax.
Left array symbol.
Right array symbol.
Array element separator char. (Goes between all integers.)
Wrap integers in quotes to get an array of strings.

Pro tips Master online integer tools

You can pass options to this tool using their codes as query arguments and it will automatically compute output. To get the code of an option, just hover over its icon. Here's how to type it in your browser's address bar. Click to try!

https://onlinetools.com/integer/create-integer-array?linear-array=true&linear-start=0&linear-step=2&linear-count=12&program-language=java&string-array=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.

Generate a Sudoku Board

Create a sudoku puzzle.

Generate Magic Integers

Create a list of neat-looking integers (called magic integers).

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 Base64

Quickly encode integers to base-64.

Convert Base64 to Integers

Quickly decode base-64 to integers.

Change Integer Base

Quickly convert integers to a custom base.

Convert Integers to HTML Entities

Quickly encode integers to HTML encoding.

Convert HTML Entities to Integers

Quickly decode HTML entities to integers.

Convert Integers to URL Encoding

Quickly encode integers to URL (percent) encoding.

Convert URL Encoding to Integers

Quickly decode URL-encoded integers.

Convert Signed Integer to Unsigned

Quickly convert a signed integer to an unsigned integer.

Convert Unsigned Integer to Signed

Quickly convert an unsigned integer to a signed integer.

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.

Find Integer Average

Quickly calculate the average value of integers.

Find Integer Digit Average

Quickly calculate the average value of integer digits.

Pick an Integer Digit

Quickly randomly select a digit from an integer.

Compare Integers

Find which of the given integers is the biggest or smallest.

Clamp Integers

Limit integer values to a range.

Clamp Integer Digits

Limit integer digit values to a range.

Duplicate Integers

Create multiple copies of the input integers.

Duplicate Integer Digits

Create multiple copies of digits of input integers.

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.

Divide Integers

Quickly divide two or more integers.

Divide Integer Digits

Quickly divide the digits of an integer.

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 Regex from Integers

Create a regex that matches the given integers.

Generate Integers from a Regex

Create integers that match the given regular expression.

Generate Small Integers

Create relatively tiny integers.

Generate Big Integers

Create relatively huge integers.

Generate Oscillating Integers

Create a sequence of oscillating integers, such as 123212321.

Generate a Multi-integer Sequence

Create multiple integer sequences at once.

Introduce Errors in Integers

Slightly change an integer so it has an error.

Introduce Errors in Integer Digits

Slightly change integer digits so there are errors.

Make Integers Fuzzy

Apply fuzzing to integers and add perturbations.

Make Integers Digits Fuzzy

Apply fuzzing to integer digits and add digit perturbations.

Highlight Integers

Add highlighting to certain integers.

Highlight Integer Digits

Add highlighting to certain integer digits.

Color Integers

Add color to integers based on a condition.

Color Integer Digits

Add color to individual digits in the given integers.

Convert Integers to Pixels

Quickly assign colors to integers and draw them as pixels.

Convert Pixels to Integers

Quickly assign integer values to pixel colors and print them.

Draw an Integer Spiral

Make the digits of an integer go in a spiral shape.

Draw an Integer Circle

Make the digits of an integer go in a circle.

Draw an Integer Diamond

Make the digits of an integer go in a diamond shape.

Draw an Integer Box

Fill a box with certain width and height with digits.

Create 2D Integers

Use ASCII art to convert integers to 2-dimensional drawings.

Create 3D Integers

Use ASCII art to convert integers to 3-dimensional drawings.

Decompose an Integer

Decompose an integer into ones, tens, hundreds, etc.

Print Increasing Integers

Generate an ordered list of increasing integers.

Print Decreasing Integers

Generate an ordered list of decreasing integers.

Print Integer Information

Quickly find various information about the given integers.

Find Patterns in Integers

Find hidden patterns of numbers in integers.

Calculate Integer Entropy

Find the Shannon entropy of an integer.


Subscribe!

Subscribe to our updates. We'll let you know when we release new tools, features, and organize online workshops.

Enter your email here


Feedback. We'd love to hear from you! 👋

Created with love by

We're Browserling — a friendly and fun cross-browser testing company powered by alien technology. At Browserling our mission is to make people's lives easier, so we created this collection of integer tools. Our tools have the simplest user interface that doesn't require advanced computer skills and they are used by millions of people every month. Our integer tools are actually powered by our programming tools that we created over the last couple of years. Check them out!

49K
@browserling

Didn't find the tool you were looking for? Let us know what tool we are missing and we'll build it!