The Text Pattern Generator is a browser-based API alternative that expands one numeric {n} template into up to 10,000 deterministic plain-text lines locally.
It is useful when you need to prepare predictable numbered filenames, labels, paths, or test rows without integrating a hosted generator. Its supported workflow is interactive rather than a documented endpoint or SDK, so it is not a direct substitute for an HTTP API in an application, scheduled job, or server-side pipeline.

What this API alternative handles
The generator is intentionally focused on numeric templates. You provide one pattern, define how its number changes, and receive an ordered list of plain-text lines. Spaces, punctuation, and ordinary literal text can remain around the numeric placeholder.
| Control | Accepted value | Result |
|---|---|---|
| Pattern | Must contain {n} or a width token from {n:1} through {n:12} | Each valid numeric token is replaced while surrounding text remains literal. |
| Start | Safe integer | The first generated line uses this value. |
| Step | Positive, negative, or zero safe integer | Each later line adds the selected step to the current value. |
| Line count | Whole number from 1 through 10,000 | Controls the maximum number of ordered output lines. |
| Width | Whole number from 1 through 12 | Adds zero-padding without truncating a longer value. |
| Output | Local plain text | The preview and downloaded TXT file use LF line endings; the download is UTF-8. |
A pattern without a documented numeric placeholder is rejected rather than producing indistinguishable copies. Malformed widths such as {n:0}, {n:13}, and nonnumeric width content are also rejected. Ordinary braces that do not begin a numeric token remain literal text, so inspect the preview when the pattern contains template-like notation.
The integer checks follow JavaScript’s safe-integer model, which is explained in MDN’s Number.isSafeInteger reference. The start, step, and every generated value must remain in that exact range.
Replacement is limited to supported numeric tokens rather than general formula evaluation or nested templates. The implementation uses direct token replacement, consistent with the behavior described in MDN’s String.replace reference. There are no random choices, alphabetic sequences, dates, formulas, conditionals, or nested templates.
Match the task to the supported workflow
The browser workflow is strongest for deterministic text that can be prepared and reviewed before it enters another system.
| Task | Fit | Important boundary |
|---|---|---|
| Numbered names, labels, paths, or headings | Good fit | One template controls the repeated structure and numeric sequence. |
| Sample test rows or predictable fixtures | Good fit | The same accepted inputs always produce the same ordered lines. |
| A list of filenames to use later | Good fit | The tool creates text lines; it does not rename or create individual files. |
| Text generated directly inside a running application | Not a direct fit | The supported product workflow is manual and browser-based, with no documented programmatic interface. |
| Random or collision-resistant identifiers | Not suitable | The output is sequential and predictable, not random. |
This makes the tool appropriate for local batch preparation, especially when you want to inspect the sequence before importing it. It does not replace a database sequence, a UUID service, or an identifier assigned authoritatively by a concurrent system.
Generate a numbered text pattern locally
- Open the Text Pattern Generator and enter a single pattern containing {n}. Put labels, punctuation, spaces, or path fragments around the token wherever they belong in each line.
- Choose the starting integer, the number of lines, and a signed integer step. Use a positive step to count upward, a negative step to count downward, or zero to repeat the same value.
- If the numbers need a consistent visual width, change the token in the pattern to a supported width such as {n:3}. The width describes digits rather than the sign and requests at least that many digits.
- Generate the lines and inspect the preview. Confirm that the surrounding text, line count, first value, last value, and any padding match the intended result. Pay particular attention to negative and zero steps.
- Download the UTF-8 TXT file after the preview looks correct. The downloaded list retains LF line endings, and editing any input clears the previous output.
Control direction and fixed-width numbering
The first line uses the start value, and each later line adds the chosen step. With a start of 7 and a step of 2, the second line’s number is 7 + (1 × 2) = 9. In a pattern such as ID-{n:3}-{n}, both tokens on that line use the same current value, so the second line is ID-009-9.
A negative step counts downward, while a zero step intentionally repeats the same number for every line. This makes direction an explicit part of the workflow rather than an implicit behavior. The sequence remains deterministic, and the same accepted pattern, start, count, and step always produce the same ordered lines.
For negative values, the minus sign stays first and the absolute digits are padded after it. Width applies to digits, not the sign. A value that already contains more digits than the requested width is never truncated. Every numeric token on a line receives the same current value, and the tool does not maintain independent counters for separate tokens.
Check validation and output limits
- Template validation: At least one {n} or valid {n:width} token is required. A pattern without one is rejected instead of producing repeated copies.
- Width validation: Widths must be whole numbers from 1 through 12. Invalid or nonnumeric widths are rejected.
- Integer validation: The start, step, and every resulting value must stay within JavaScript’s safe integer range so the displayed decimal integers remain exact.
- Line-count validation: The requested count must be a whole number from 1 through 10,000.
- Output ceiling: The joined output, including LF separators between lines, cannot exceed 1,000,000 Unicode code points. If that ceiling would be crossed, the tool stops with an error instead of returning a partial list.
- Multi-line patterns: Embedded line breaks are technically plain text, but one template iteration can span multiple visual lines and make the reported generated-line count less intuitive. A single-line pattern is recommended.
- Literal braces: Braces that do not begin a supported numeric token remain literal. Review the preview when the source pattern includes braces of its own.
These boundaries determine whether the requested batch can be completed, so check the pattern, count, and expected size before generating a large list.
Export and reuse the numbered lines
Validation, generation, previewing, and download creation happen locally in the browser. No pattern, result, account, or processing history is sent to or retained by Lizely. Clicking download creates a temporary UTF-8 Blob URL and revokes it immediately afterward.
When importing the TXT list into a spreadsheet or database, remember that zero-padding is presentation rather than a promise about numeric storage. Some imports remove leading zeros unless the destination column is treated as text. Check the target application’s import settings before relying on a fixed visual width.
The output is also not intended to serve as a UUID generator, password generator, database sequence, or collision-resistant identifier service. Concurrent systems should assign identifiers at the authoritative data layer. For predictable test labels or sample paths, inspect the first and last lines before importing the full list.
When a real API is still required
Choose this local browser workflow when the task is to create and review a deterministic batch of numbered text. It avoids server submission and gives direct control over signed steps, fixed-width presentation, line count, and TXT export.
Choose an actual API when software must request generated values at runtime, pass the result directly to another service, run on a schedule, or handle the output without manual download and import. The supported Text Pattern Generator workflow does not document an endpoint, SDK, or code-based interface, so it should not be presented as a drop-in API integration.
Related reading: URL Extractor Alternatives by Source Structure.