Der Text wird so oft kopiert, wie Sie es angeben, und die Kopien werden mit dem gewählten Trennzeichen verbunden — ein Zeilenumbruch für eine Liste, ein Komma mit Leerzeichen für ein einzelnes Feld, ein Leerzeichen für Fließtext, oder gar nichts, wenn die Kopien aneinanderstoßen sollen. Ein Trennzeichen steht zwischen den Kopien, zehn Wiederholungen tragen also neun Trennzeichen, und die Ausgabe endet nicht mit einem übrig gebliebenen.
Wenn Sie die Nummerierung einschalten, steht vor jeder Kopie ihre Nummer und ein Punkt, sodass eine fertige nummerierte Liste entsteht, ohne dass Sie Nummern tippen. Die darunter gemeldete Zeichenzahl bezieht sich auf die fertige Ausgabe einschließlich Trennzeichen und Nummerierung und wird in der Sprache der Seite formatiert. Wiederholungen sind auf zehntausend begrenzt.
Wofür es taugt und wo die Grenzen liegen
-
Die Grenze hält die Seite reaktionsfähig:
Zehntausend Kopien eines Absatzes sind in einem Browser-Tab bereits mehrere Megabyte Text. Alles Größere gehört in ein Skript, nicht auf eine Seite.
-
Das eigene Trennzeichen ist ein einzeiliges Feld:
Es nimmt jeden Text an, den Sie hineintippen können — ein Tabulator oder ein Zeilenumbruch muss deshalb aus den Voreinstellungen kommen, nicht aus dem Feld.
-
Die Nummerierung beginnt bei eins:
Vor jeder Kopie steht ihre Position und ein Punkt, noch bevor das Trennzeichen greift, sodass nummerierte Listen fertig zum Einfügen herauskommen.
-
Die Zeichenzahl enthält alles:
Trennzeichen und Nummerierung sind Teil der Ausgabe und damit Teil der Zahl — genau das brauchen Sie, wenn Sie ein Feld mit Längenbegrenzung füllen.
What it does, and the cap
Repeats a string a number of times, optionally with a separator between the copies. There is a limit of 10,000 repetitions, which exists because a browser tab asked to build an unbounded string will freeze rather than fail.
That cap is worth knowing before you plan around a larger number. The [msm_tool slug="text-repeater"] refuses rather than hanging.
Where repetition is genuinely useful
- Test data. A long string to check that a field, a column or a layout handles more text than anyone expected. Filling a database column to its limit is the fastest way to find out what happens at the limit.
- Layout stress-testing. One very long unbroken word will reveal whether a container clips, wraps, scrolls or overflows — a common failure that never shows up with realistic content.
- Separators and rules. A row of dashes or dots for a plain-text document or a terminal output.
- Generating a pattern to paste into a file — repeated placeholder rows, repeated markup fragments.
The separator matters more than the repetition
Most real uses need something between the copies, and the choice determines what the output is for:
- A newline gives one copy per line — a list.
- A comma gives a CSV-style row.
- A space gives a paragraph that wraps.
- Nothing gives a single unbroken string, which is the one that stress-tests a layout hardest because there is nowhere to wrap.
A note on testing with repeated text
Repeated text is good for finding length limits and bad for finding everything else.
A field filled with aaaaaaaa tells you whether it truncates at 255 characters. It does not tell you whether it handles apostrophes, accented characters, emoji, right-to-left scripts or a very long word with no spaces — which are the inputs that actually break things in production.
Use repetition for length, and something more varied for correctness.
What it is not for
Padding content to hit a word count. Search engines have handled repeated filler text for two decades, and a page padded this way is worse than a shorter honest one.
It is also not for generating placeholder prose — repeated identical sentences do not stress a layout the way varied text does, because every line breaks in the same place. Lorem ipsum exists for that reason.
Output size
Ten thousand repetitions of a fifty-character string is half a megabyte of text. That will paste into a file happily and will make a browser textarea sluggish, and it is worth generating what you need rather than the maximum.
Everything runs in your browser, so nothing is uploaded — and a very large result is held in memory on your machine, which is the practical reason the cap is where it is.