Text Repeater
Repeat a line or block of text as many times as you need.
Everything runs in your browser. Nothing you type is uploaded or stored.
In-depth guide
Text repeater: counts, separators and size limits
How many copies you can make, exactly what each separator inserts, how odd counts are handled and how large the output can get.
Key figures at a glance
- Maximum copies
- 10,000
- Larger numbers are silently reduced to 10,000.
- Separators
- Five
- New line, blank line, space, comma plus space, or nothing.
- Count handling
- Rounded down
- 2.9 gives 2 copies; 0, negative or empty gives an empty result.
- Empty text
- Empty result
- Whitespace is text, so two spaces are repeated like anything else.
How it works
Type or paste text, choose the number of copies and a separator, and the result appears immediately in the output box. The whole input (including any line breaks inside it) is one unit that is repeated. Copies are joined, not terminated: there is a separator between copies but none after the last one.
| Separator | Inserted between copies | Result for ha × 3 |
|---|---|---|
| New line | \n |
ha\nha\nha |
| Blank line | \n\n |
ha\n\nha\n\nha |
| Space | one space | ha ha ha |
| Comma | comma and one space | ha, ha, ha |
| Nothing | empty string | hahaha |
A multi-line input a / b repeated twice with a new line gives a\nb\na\nb, so the copies run on from each other with no blank line between them. Choose "Blank line" if you want them visually separated.
Count rules
- The number is rounded down to a whole number:
2.9gives two copies. - The number is capped at 10,000. The input box has a minimum of 1 and a maximum of 10,000 as hints, but typed values outside the range are not rejected by the browser; the code clamps them. Entering
50000produces exactly 10,000 copies. 0, a negative number or an empty box gives an empty result. A value that is not a number at all falls back to the default of 3.- Empty input gives an empty result. Input made only of spaces is not empty: two spaces repeated twice with a new line give a space-only first line, a newline, and a space-only second line.
Size: what 10,000 copies means
The output length is copies × text length + (copies − 1) × separator length. Computed with the page's code:
| Text | Copies | Separator | Output length |
|---|---|---|---|
ab |
10,000 | comma | 39,998 characters |
ab |
50,000 requested | none | 20,000 characters (capped to 10,000 copies) |
1,000 x characters |
10,000 | new line | 10,009,999 characters |
The last row is about 10 million characters in a text box, which may make a slow browser tab hesitate. Lengths are JavaScript string lengths, which count UTF-16 code units, so an emoji like 🙂 counts as two: three of them with no separator give a length of 6.
Practical uses
- Test data for input-length limits, pagination or layout stress tests.
- Quick placeholder rows such as
TODOor-----lines. - Building a comma-separated string with the same value (
0, 0, 0, 0). - Filling a field to check a character limit; use the word counter to confirm the length.
Tip: For readable dummy prose rather than identical copies, use the Lorem ipsum generator.
Common mistakes
- Expecting a trailing separator after the last copy; there is none.
- Repeating text that ends with a newline and getting unexpected blank lines, because the newline is part of the repeated unit.
- Assuming there is no maximum. The cap is 10,000 copies.
- Typing a decimal and expecting it to be rounded to the nearest whole number; it is rounded down.
Related tools
Comma separator turns lines into a comma-separated list. Text sorter orders and de-duplicates lines. Word counter measures the result. Random word generator produces varied words instead of copies.
Frequently asked questions
Is my text sent to a server?
No. Everything runs in your browser using JavaScript. Nothing you type or paste is uploaded, logged or stored anywhere.
Is there a length limit?
Yes. One run produces at most 10,000 copies: a larger number is capped at 10,000. The output is your text multiplied by the count, so a long block repeated thousands of times can make the page slow.
Does it handle non-English text?
Yes. Text is treated as Unicode throughout, so accented Latin, Chinese, Tamil and emoji are all processed correctly rather than mangled.
Does it change my original text?
No. Your input stays exactly as you typed it; the result is produced separately so you can adjust the options and compare.
Sources
This guide explains published rules in plain language. It is not financial, legal or official advice — rules change, so confirm with the agency linked above before you commit.