Skip to content

Text Repeater

Repeat any text a set number of times with a custom separator and optional numbering.

Runs in your browserFree, no sign-up

Settings

Results update automatically as you type.

Output size

Repetitions
10
Characters
119

Result

Hello world Hello world Hello world Hello world Hello world Hello world Hello world Hello world Hello world Hello world

About the Text Repeater

A text repeater takes a word, a line or a whole phrase and duplicates it as many times as you ask, up to 10,000 repetitions. Choose whether the copies are separated by a new line, a space, a comma and space, or nothing at all, and optionally number each repetition so you get a sequential list rather than an undifferentiated block. The output size is reported in both repetitions and characters before you copy it. Generation happens in your browser, which is why the cap exists — beyond 10,000 copies the result becomes unwieldy to render and copy.

How to use the Text Repeater

  1. 1

    Enter what you want duplicated in the 'Text to repeat' field.

  2. 2

    Set 'Repeat how many times' to any value between 1 and 10,000.

  3. 3

    Choose a Separator: New line, Space, Comma + space, or Nothing.

  4. 4

    Tick 'Number each line' if you want every copy prefixed with a sequential number.

  5. 5

    Check the Output size panel, then copy the result or download it as repeated.txt.

What people use it for

Generating test data for forms and databases

Numbering the repeats gives you 500 distinct rows such as '1. test user' through '500. test user', which is enough to exercise pagination, unique constraints and list rendering without writing a script.

Stress-testing field limits

Repeating a single character with the 'Nothing' separator produces a string of an exact length, which is the direct way to check whether a text field really enforces its 255-character maximum.

Building comma-separated lists

The comma separator turns a repeated placeholder into a ready-made list for a SQL IN clause or a CSV header row while you are prototyping.

Filling a layout with placeholder copy

Repeating a phrase to a known length lets you see how a card, a table cell or a heading behaves when the real content is longer than the designer's sample.

Choosing a separator, and why it changes the character count

The separator sits between copies, not after the final one, so repeating a five-character word ten times with a single-character separator gives fifty characters plus nine separators, not ten. That off-by-one matters when you are generating a string of an exact length for a boundary test. The 'Nothing' option produces a single continuous run with no separator at all, which is what you want for padding, for checking how a layout handles an unbroken string with no wrap opportunity, and for building fixed-length fixtures. New line is the default and produces one copy per line, which is the form most spreadsheets and text editors expect when you paste. Comma plus space is the standard delimiter for inline lists and for pasting into anything that parses CSV, though remember that if the repeated text itself contains a comma the result will not parse as you intend. When numbering is enabled, each line is prefixed with the index, a full stop and a space, so the numbers themselves add characters — going from 9 to 10 adds a digit to every subsequent line, which is why the reported character count grows slightly faster than linearly.

Why the limit is 10,000

Everything here is generated and held in the browser, so the practical constraints are rendering and clipboard behaviour rather than server capacity. Ten thousand repetitions of a short phrase is roughly 100 to 200 kilobytes of text, which a textarea displays and the clipboard accepts without noticeable delay. An order of magnitude beyond that and the page begins to stutter as the browser lays out an enormous single text node, some clipboard implementations start truncating, and the download becomes the only reliable way to retrieve the output. The cap keeps the tool responsive on a phone as well as a desktop. If you genuinely need a million lines, generate them with a script or a spreadsheet fill rather than a web page; if you need a very long single string for a payload test, repeat a longer unit fewer times instead, since 1,000 copies of a 1,000-character block produces the same megabyte with far less DOM work.

Tips

  • Turn on numbering when the copies need to be distinguishable — unnumbered duplicates are indistinguishable in logs and test output.
  • Use the 'Nothing' separator with a single character to build a string of an exact length for boundary testing.
  • Download rather than copy above a few thousand repetitions; the clipboard is the slower of the two paths.

Frequently asked questions

Is there a limit on repetitions?
The tool allows up to 10,000 repetitions. Beyond that the output becomes too large to display and copy comfortably in a browser.
Can I number each repeat?
Yes. Turn on 'Number each line' to prefix every repetition with a sequential number, which is useful for generating test data.
Can I repeat multiple lines of text?
Yes, the whole block is treated as a single unit and repeated with your chosen separator between each copy.

Looking for something else? Browse all text tools or see every tool.