Text Repeater
Duplicate text a set number of times, with the separator and the numbering you choose.
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
- 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.
- 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.
- 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.
- 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.
- 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?
How many copies can I ask for?
Can each copy be slightly different?
How do I put a blank line between copies?
What exactly does Trim the input first do?
Why is there no download button?
Does the numbering pad to a fixed width?
Related tools
- Word Counter — Count words, characters, sentences and reading time.
- Case Converter — Switch between upper, lower, title, camel and snake case.
- Remove Line Breaks — Collapse hard wraps back into flowing paragraphs.
- Remove Extra Spaces — Normalise double spaces and stray whitespace.
- Sort Lines — Sort lines alphabetically, numerically or randomly.
- Remove Duplicate Lines — Delete repeated lines from a list.