gizmobench

Text Repeater

Paste the text, set how many copies you want, and the repeated text builds as you type. Two things separate this from the pages that hold this search. The first is the separator rule: a new line, comma, space, comma and space, none, or anything you type yourself goes between the copies and never after the last one, so there is no stray comma or blank final line to delete by hand. The second is what happens when the request gets big. The size of the output is worked out by arithmetic before a single copy is built, so a request past the one million character cap is refused with the number of copies that would have fitted, instead of returning a string that was quietly cut short or leaving the tab to lock up. Numbering each copy from any starting number turns the same box into a numbered list, and the result copies to the clipboard or downloads as a .txt file.

The repeated text appears here as soon as there is text on the left and a number of copies.
Copies
Waiting
Characters
Waiting
Bytes as UTF-8
Waiting
Separator
New line

Type or paste the text, set how many copies you want, and the repeated text appears on the right. It is built in this tab and nothing is uploaded.

Repeat settings

The separator goes between the copies, never after the last one. Numbering puts the copy number and a full stop in front of each copy, which with a new line between them makes a numbered list.

How the text is repeated
Separator between copies
Choose Custom and type your own below. Nothing is added after the final copy.
NumberingEach copy is prefixed with its number, a full stop and a space.

Worked examples

  • One word, three times, joined upSeparator set to None
    hahaha
  • A numbered list, one copy per lineNew line between copies, numbering from 1
    1. Practice the scale 2. Practice the scale 3. Practice the scale 4. Practice the scale
  • A comma list with nothing trailingComma and space between copies, and none after the last
    red, red, red, red

The text, the count and the settings are remembered in this browser alone, so they are still here when you come back. Start over, above the tool, forgets them. A draft longer than 20,000 characters is repeated in full but is not written to storage.

Accuracy. Exact: the text is repeated byte for byte, with the separator between copies and never after the last. Output is capped at one million characters, and a request past that is refused rather than cut short.

Common questions

How do I repeat a piece of text a set number of times?
Paste it into the box on the left and type the number of copies you want. The repeated text appears on the right as you type, with no button to press and no account to make. The separator strip under the tool decides what sits between the copies: a new line puts each copy on its own line, Comma and space makes a list you can paste into a form, and None joins them into one run of text. Copy puts the whole result on your clipboard and Download .txt writes it to a file.
Why is there no separator after the last copy?
Because a trailing comma or a blank final line is almost never what you wanted, and deleting it by hand is the step this kind of page usually leaves you with. The copies are joined rather than appended one at a time, so three copies carry two separators and a hundred copies carry ninety-nine. That rule is also what makes the counts beside the output exact: the character count is the copies, plus the separators between them, plus any numbering, and nothing else.
How do I number each repeat?
Switch Number each copy on. Each copy is then prefixed with its number, a full stop and a space, so with numbering from 1 the fourth copy reads 4. followed by your text. Numbering starts at 1 by default, and you can start it at zero or at any whole number up to a billion, which is useful when a list carries on from an earlier page. With a new line as the separator this gives you a plain numbered list; with a comma it gives you a numbered run on one line.
Can I use a line break or a tab as the separator?
Yes. New line is one of the named options, and for anything else choose Custom and type it into the custom separator field. That field understands two escapes, because a one-line field cannot hold either character directly: type \n for a line break and \t for a tab. They can be mixed with ordinary characters, so " \n " puts a space, a line break and another space between the copies. A doubled backslash is a real backslash rather than an escape.
How much text can it repeat?
Up to one million characters of output. That is a memory limit rather than a plan, and it is enforced honestly: the size is calculated before anything is built, so a request past the cap tells you how long the output would have been and how many copies of that text with that separator do fit. If even a single copy is past the cap it says that instead, rather than naming a count of zero. It never hands back a string that was cut short. Numbering and separators count toward the total, which is why turning numbering on lowers the number of copies that fit.
Does it change my text in any way?
No. Nothing is trimmed, collapsed or normalised: leading and trailing spaces, tabs, line breaks inside the text, accents, other scripts and emoji all come back exactly as you typed them. The readout shows both the character count and the size in UTF-8 bytes, because the two differ for anything beyond plain English text: one emoji is a single character and four bytes.
Is my text uploaded anywhere?
No. The repeat runs in your browser, so there is no server in this and nothing is sent or logged. The text and the settings are remembered in this browser alone so they are still there when you come back, and the Start over button above the tool forgets them. One exception is worth knowing: a draft longer than 20,000 characters is still repeated in full, but it is not written to storage, so a very large paste is not kept after you close the tab.
Why does the preview stop partway through a very large result?
Only the drawing stops, never the result. Above 50,000 characters the preview shows the first 50,000 and the line beneath it says how long the whole thing is, because drawing a million characters of text on screen is what makes a page of this kind freeze. Copy and Download .txt always write every copy.

Exact: the text is repeated byte for byte, with the separator between copies and never after the last. Output is capped at one million characters, and a request past that is refused rather than cut short.