# Integer zigzag creator

## World's simplest integer tool

This online program creates a zigzag from integer digits and prints them in a triangle-like snake shape in the output. The zigzag can start from the top, bottom, or any other position and it can be of any height. You can adjust how many digits go in each segment of the integer snake, add an extra distance between segments, and fill the empty space with custom characters. Created by math nerds from team Browserling.

announcement
a new project!

Super exciting news! We just launched MATHURLS – a fun math news reader. Check it out!

A link to this tool, including input, options and all chained tools.

Integer zigzag creator tool
What is a integer zigzag creator?

With this browser-based utility, you can make integers go in zigzags. The integers are split into individual digits and the digits are then rearranged so that a triangular wave shape is created. The wave is formed by moving each digit in the order it appears in the integer to a higher or lower line. This wave is also sometimes called the digital snake or digital worm, and it can start its movement from any line and can go up or down. If the top starting position is selected (in the options), the first digit is placed in the first column of the top-most line and the snake will go down. If the bottom position is selected, the snake will begin from the lowest spot and move upward to the next value. To start in the middle, select the custom start mode and specify the starting position and the initial movement. For example, "2u" means start at the second row from the top and move up or "3d" means start from the third line from the bottom and move down. The number of horizontal lines in the zigzag determines its height and it can be specified in the options. By default, one digit creates one segment of the zigzag but it can be also changed in the options. The number of digits in the segment is called the segment length. The segments are combined together at various heights to create the whole zigzag. You can create any number of digital worms from many integers at once. To do it, put each integer on a new line in the input box. When creating the integer worms, the empty space around the digits is filled with the white-space characters, but you can use any other filling character. You can also stretch the worm by adding extra fill characters between its segments. Integerabulous!

Integer zigzag creator examples
Click to use

Alternating ZigZag

In this example, we create a small integer zigzag from twenty digits with an amplitude of two. We start the zigzag from the top row, moving down first, then up, then down again, then up again, and so on. As the height of the wave is two, it fits on two lines and the digits alternate between to first and second rows. The length of wave sections is one digit long and the spaces between the digits are filled with empty symbols.

1234567890987654321

1 3 5 7 9 9 7 5 3 1
2 4 6 8 0 8 6 4 2

**Required options**

Start the wave in the
upper left corner.

Triangle wave's segment length.
(Number of digits in zigs and zags.)

Triangle wave's height.
(Number of rows of segments.)

Fill symbol between the segments.
(Only one character.)

Extra space between the segments.

Dash-filled Waves

In this example, we simultaneously turn three integers into wavy snake-like shapes. We set the segment size to two that groups the digits in pairs and start the wave from below, reaching the full height in two steps and making a full oscillation in four steps. We expand the wave horizontally, adding an extra space between all pairs of digits and use the dash symbol to fill the distance between them.

1020302010203020102030201020302010
4050605040506050405060504050605040
7080908070809080708090807080908070

------30----------30----------30----------30------
---20----20----20----20----20----20----20----20---
10----------10----------10----------10----------10
------60----------60----------60----------60------
---50----50----50----50----50----50----50----50---
40----------40----------40----------40----------40
------90----------90----------90----------90------
---80----80----80----80----80----80----80----80---
70----------70----------70----------70----------70

**Required options**

Start the wave in the
lower left corner.

Triangle wave's segment length.
(Number of digits in zigs and zags.)

Triangle wave's height.
(Number of rows of segments.)

Fill symbol between the segments.
(Only one character.)

Extra space between the segments.

Unicode Digit Snake

This example loads unusual Unicode boxes with digits in the input and converts them into a digit snake in the output. It uses empty blue boxes as background filling symbols and draws the digit boxes from a custom starting position "2d". This notation starts the snake at the 2nd position and makes it go down at the first step. The snake's height is set to three digits and in the output, we get a symmetrical shape similar to the Latin letter "W".

0️⃣1️⃣2️⃣3️⃣4️⃣5️⃣6️⃣7️⃣8️⃣9️⃣🔟

🟦🟦🟦🟦🟦5️⃣🟦🟦🟦🟦🟦
0️⃣🟦🟦🟦4️⃣🟦6️⃣🟦🟦🟦🔟
🟦1️⃣🟦3️⃣🟦🟦🟦7️⃣🟦9️⃣🟦
🟦🟦2️⃣🟦🟦🟦🟦🟦8️⃣🟦🟦

**Required options**

Start the wave at a
custom position.

Custom starting position.
Format examples: "2u" or "3d".

Triangle wave's segment length.
(Number of digits in zigs and zags.)

Triangle wave's height.
(Number of rows of segments.)

Fill symbol between the segments.
(Only one character.)

Extra space between the segments.

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/create-integer-zigzag

__?input__=1234567890987654321&start-top=true&length=1&height=2&fill-symbol=%20&distance=0
All integer tools

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.

Subscribe!
Never miss an update

Cool!

Notifications
We'll let you know when we add this tool

Cool!