Text Repeater

Duplicate text a set number of times, with the separator and the numbering you choose.

Runs on your deviceTextWorkingNo account needed

What this tool does

Text Repeater takes whatever is in the input box and writes it out a given number of times, joined by a separator you pick. The count runs from 1 to 100,000. The separator is a new line, a blank line, a space, a comma and a space, nothing at all, or something you type yourself — and in that custom field \n stands for a new line and \t for a tab, so copies can be split by a tab or by two blank lines as readily as by a pipe.

Two checkboxes change the copies rather than the spacing between them. Number each copy puts a plain decimal number, a full stop and a space in front of every copy — 1. 2. 3., starting at one, with no zero padding and no way to alter the format; for multi-line input the number lands at the start of the first line only. Trim the input first is on by default, and it strips whitespace from the start and end of the whole input before repeating, not from each line inside it. Switch it off when a leading indent or a trailing space is part of what should be repeated.

The limits worth knowing are size and sameness. Every copy is identical, so this is not a generator: there is no counter to interpolate, no random field, and no way to vary one copy from the next beyond the optional numbering — Random Data Generator is what to reach for when the filler has to differ from one row to the next. The output is also assembled whole in memory, and a job whose estimated length passes roughly 20 million characters is refused, reporting the size it would have produced rather than locking up the tab. Well before that ceiling, tens of thousands of copies of a long paragraph will make the output box slow to scroll.

The repeating is done by the page's own JavaScript in this browser tab. The text is not transmitted anywhere, and the tool keeps working once the page has loaded even with the network off. What comes back is plain text in the output pane, under a one-line summary that gives the number of copies and the length of the result in B, KB or MB — that figure is the character count dressed in byte units, so anything outside ASCII will read smaller there than the file it eventually makes; Copy output puts it on the clipboard, and there is no file to download, so save it by pasting into an editor.

How to use it

  1. Type or paste the text to repeat. One character, one line or several paragraphs all work. Load sample drops in a short sentence if you want to see the shape of the output first.
  2. Set how many times. The Repeat field runs from 1 to 100,000, and a decimal typed into it is rounded down to the whole number below. Zero and a blank field both stop the run with the same prompt to give a count of one or more, while an empty input box is refused before the repeater is even reached.
  3. Choose what separates the copies. A new line for a list, a blank line for paragraphs, a comma and a space for an inline series, or Nothing when the copies should run together — a dash repeated with no separator gives a rule of an exact width.
  4. Decide on numbering and trimming. Number each copy turns the output into an ordered list. Leave Trim the input first on unless the whitespace around your text is deliberate.
  5. Run it and take the block away. The repeated text fills the right-hand pane and the summary underneath reads as a copy count and a size. Copy output sends the whole block to the clipboard.

Processing & privacy

Runs on your device. Your file is processed directly in this browser.

Common use cases

Padding a field to find its limit

A short string repeated a few hundred times is a predictable block for checking where a form, a database column or a layout gives way.

Making a numbered list from one line

With Number each copy on, thirty copies come out as 1. through 30., ready to be filled in beside each number.

Drafting repetitive rows for SQL or CSV

One VALUES row or one header line becomes the block you paste in and edit, with the newline or comma separator doing the joining.

Filling a mockup with placeholder copy

A single caption repeated down a column shows how a card, a table or a list behaves at length before the real content exists.

Building a rule or a spacer

Repeat a dash, an equals sign or a box-drawing character with the separator set to Nothing to get a divider of a known width for a README or a terminal banner.

Questions

Does the text I repeat ever leave this tab?
No. The whole operation runs in this browser tab, so nothing is sent, logged or stored, and the tool still works with the network disconnected.
How many copies can I ask for?
Up to 100,000, and a larger number is declined rather than attempted. There is a second ceiling on the total: once the copies and their separators together would come to roughly 20 million characters, the job is refused and the size it would have produced is reported instead.
Can each copy be slightly different?
No. Every copy is the same string, and the numbering prefix is the only variation on offer. When the lines have to differ, Random Data Generator produces varied names, numbers and dates rather than one string over and over.
How do I put a blank line between copies?
Pick A blank line from the separator list. For anything else, choose Something else… and type it; in that field \n produces a new line and \t a tab, which also means those two sequences cannot be output literally.
What exactly does Trim the input first do?
It removes whitespace from the beginning and the end of the whole input before the copies are made. It leaves the spacing inside your text alone, including at the ends of individual lines. Turn it off when a trailing space or an indent is part of what you want duplicated. One thing the switch cannot buy you is a run of empty lines: if the input box holds nothing but spaces or line breaks, the Run button asks for some input first whether trimming is on or off.
Why is there no download button?
The result is text rather than a file, so it goes to the clipboard with Copy output. Paste it into an editor and save from there if you need it on disk.
Does the numbering pad to a fixed width?
No. Each copy is prefixed with its position, a full stop and a space, counting from 1, so 9. is followed by 10. and the numbers do not line up in a column. A copy spanning several lines is numbered on its first line only.

Related tools