Repeat a text fragment a chosen number of times. Build test strings or repeated patterns while keeping the original spaces and line breaks.
How to use
Enter the fragment and set the repetition count. Include a space or line break in the fragment when you want a separator between copies.
Example
Repeating ha three times returns hahaha. Repeating ha followed by a space returns separate groups instead.
FAQ
What is the output limit?
The result is limited to one million characters, with up to 10,000 repetitions. Reduce the text or count if the limit is exceeded.
Related tools
A practical task
Include the separator in the repeated fragment when you need one between copies. To build rows, put a line break after the sample text. To make a continuous stress test string, leave it out. These inputs produce different structures at the same count.
Another useful question
Can this create a large file without limits?
No. Repetition is bounded by both count and output length. Compute fragment length times count before requesting a very large result.
Settings and formats
| Field | Values |
|---|---|
| Repetitions | Starting value: 3; bounds: 1 / 10000 |
Details for interpreting the result
| Detail | Explanation |
|---|---|
| Output growth | Repeating a fragment multiplies its length by the repeat count. Include separators in that calculation when they are part of the fragment. A small increase in both source length and count can make the output much larger than expected. |
| Separators between copies | A repeated fragment is copied exactly, so spacing has to be part of the chosen source. A trailing separator also appears after the last copy. Inspect the final boundary when the receiving format forbids an extra delimiter. |
| Test strings and real data | Repeated text is useful for testing field limits and layout behavior, but it does not resemble every real message. Include separate tests with varied words, line breaks, and Unicode when validating an application's handling of actual text. |
| Literal separators | A literal separator is an exact sequence of characters, including any spaces. A comma and a comma followed by a space are different separators. Match the source consistently before extracting or exchanging fields. |
| Whitespace characters | An ordinary space, a tab, a nonbreaking space, and a zero width space are different characters. They can look similar or invisible. Choose the exact kind of cleanup instead of treating all blank looking input as equivalent. |
| Line endings | A line break can use LF or CRLF. They look similar in an editor but contain different characters. Byte comparisons and checksums depend on the exact representation, including a final line break. |