Symmetric List Creator

Generates a symmetric (palindrome) sequence from a count and a starting value, counting up from the start to N and then back down again, e.g. 1,2,3,2,1, with an optional item template like "item-1, item-2, item-3, item-2, item-1". A free online tool from Staaarter, right in your browser.

Runs locallyUpdated 2026-07-27

Overview

Introduction

Palindrome-shaped sequences, ones that count up and then mirror back down, show up in test data generation, pattern demos, and puzzle-style content.

The Symmetric List Creator builds this shape for you from just a count and a starting value, with an optional template to dress up each number as text.

What Is Symmetric List Creator?

This is a pure generator tool: unlike most of the list category, it doesn't take an existing list as input, it produces one from a count and a starting number.

The output counts up from the starting value through `count` steps, then mirrors back down to the starting value, without repeating the peak value twice.

How Symmetric List Creator Works

An ascending array is built from `startValue` to `startValue + count - 1`, then a descending array is built by reversing all but the last (peak) element of the ascending array so the peak isn't duplicated.

The two arrays are concatenated into the final symmetric sequence, and each value is either emitted as a bare number or substituted into your item template wherever {n} appears.

When To Use Symmetric List Creator

Use this when you need a quick palindrome-shaped numeric sequence for a demo, algorithm test case, or design mockup.

The item template option makes it useful for generating mirrored label sequences too, not just raw numbers.

Features

Advantages

  • Generates the full symmetric sequence in one step from just two numbers.
  • The optional template supports text-wrapped output without a separate formatting pass.
  • Deterministic and predictable, no randomness involved.

Limitations

  • Only produces a simple ascending-then-descending shape; it can't generate more complex symmetric patterns.
  • The step between values is always 1; there's no configurable step size.

Examples

A basic palindrome sequence

Input

count: 3, start: 1

Output

1, 2, 3, 2, 1

Counts up from 1 to 3, then back down to 1, without repeating 3.

Using a custom item template

Input

count: 3, start: 1, template: "item-{n}"

Output

item-1, item-2, item-3, item-2, item-1

Each number in the sequence is substituted into the {n} placeholder.

Best Practices & Notes

Best Practices

  • Use a custom starting value if you want the sequence to begin somewhere other than 1, for example generating a palindrome of years or IDs.
  • Keep the count reasonable for readability; very large counts still work but produce a very long output.

Developer Notes

Built with two arrays: an ascending run and a `slice(0, -1).reverse()` of it for the descending half, concatenated together; template substitution uses `String.prototype.replaceAll("{n}", ...)`.

Symmetric List Creator Use Cases

  • Generating palindrome test data for sorting or search algorithm demos
  • Creating a mirrored label sequence for a symmetric UI layout mockup
  • Producing puzzle or teaching examples of palindromic number sequences

Common Mistakes

  • Expecting the peak value to appear twice in the output; it only appears once, at the turn.
  • Forgetting the {n} placeholder in a custom template, which causes every generated item to look identical.

Tips

  • Combine with List Duplicator if you want multiple copies of the full palindrome sequence back to back.
  • Leave the item template blank for plain numeric output; only fill it in when you need text-wrapped items.

References

Frequently Asked Questions