Sometimes you need the same word, line or block of text many times over: a placeholder to fill a layout, a string to test how a form handles long input, a pattern for a design or a joke for a group chat. A text repeater does the copying for you. Type the text, choose how many times to repeat it and what to put between the copies, and copy the result.
How the text repeater works
Enter your text in the box, then give the number of repeats, a whole number from 1 to 10,000. Choose what goes between the copies: nothing, a space, a new line, a comma and a space, or your own text. Press the button and the repeated text appears in the result box with a line underneath that says how many copies were made and how long the output is. Press Copy result to take it with you.
Choosing the separator
| Separator | Result for the text "ha" repeated three times |
|---|---|
| Nothing | hahaha |
| A space | ha ha ha |
| A new line | ha, then ha, then ha, each on its own line |
| A comma and a space | ha, ha, ha |
| My own text | ha-ha-ha when you type a hyphen |
The separator is placed between copies only, never after the last one. That makes the comma choice good for building a list without a trailing comma, and the new line choice good for making a column of identical rows. Delimiters are the characters that mark the boundary between separate regions of data, and the Wikipedia article on delimiters notes that CSV uses a comma between fields and a newline between records. [2] If you are building data like that, pick the separator your target format expects.
Typing escapes in your own separator
The own text box accepts any characters. Because a text field is one line, you can type backslash and n to stand for a new line and backslash and t for a tab. Typing "\n--\n", for instance, puts a line break, two hyphens and another line break between each pair of copies, which is a quick way to draw a divider between repeated blocks. Other backslash sequences are left exactly as typed.
How repeating works and its limits
Programming languages offer the same idea as a built-in function. The JavaScript string method repeat returns a new string made of a given number of copies of the original, and MDN notes that it throws an error for a negative count and when the result would exceed the maximum string length. [1] This tool checks those limits for you before it builds anything. The repeat count must be a whole number of at least 1 and no more than 10,000, and the finished output may not be longer than 2,000,000 characters. If your text multiplied by the count would be larger, you get a clear message instead of a frozen page.
Worked example
Say you type the word "Hello" and ask for four repeats with a comma and a space between them. The result is "Hello, Hello, Hello, Hello", which is 26 characters long: four words of five characters plus three separators of two characters each. The summary line reports four copies and 26 characters in total. Change the separator to a new line and the same four words stack in a column, with 23 characters in all because a line break counts as one.
Why repeated text is useful
Repeating text has more uses than it first seems. Designers need dummy copy of a known length to see how a layout behaves when a headline or a label is much longer than expected. Developers paste a long string into a field to find out whether the page truncates it, wraps it or breaks. Testers use repeated lines to build a large file for checking import speed. Teachers produce practice sheets in seconds, and writers use repetition for effect, such as a refrain. In each case, getting the count right by hand is tedious, and a mistake means starting over.
Because the tool shows the final length, you can plan for a limit: if a field accepts 255 characters, a repeat of the word "abc" with a space between the copies of 64 gives 255 characters, since 64 words of three characters plus 63 spaces equal 255. Try a few counts and read the summary until the length is what you need.
Common uses
- Filling a design or template with placeholder text of a known length.
- Testing how a form, database or app copes with very long input.
- Making a column of identical lines for a spreadsheet or a test file.
- Creating repeated patterns, banners or ASCII borders.
- Producing chants, jokes and repeated messages for social media or games.
Step by step
- Type or paste the text you want to repeat.
- Enter how many times, from 1 to 10,000.
- Pick the separator, or type your own.
- Press Repeat text.
- Copy the result.
Spaces in your text are kept exactly as typed, including trailing spaces and line breaks, so you can repeat a whole paragraph or a pattern with built-in spacing. If you want a different amount of space between copies, pick the separator rather than adding space to the text itself.
Privacy
The repeating happens in your browser. Nothing you type is uploaded or stored. For filler that looks like real writing instead of a repeated phrase, try the lorem ipsum generator, and to change the case of the result afterwards use the case converter.
What next
Use this often? Add Text Repeate to your Home screen.
Frequently asked questions
How do I use the text repeater?
Type your text, enter how many times to repeat it, choose a separator and press the button. The repeated text appears ready to copy.
What is the maximum number of repeats?
You can repeat text up to 10,000 times, as long as the whole result stays under 2,000,000 characters.
Can the text repeater put a new line between copies?
Yes. Choose a new line as the separator, or type backslash and n in your own separator. The copies then stack one per line.
Is the separator added after the last copy?
No. It goes between copies only, so a list made with commas has no comma at the end.
Is my text uploaded?
No. The repeater works entirely in your browser and nothing is sent to a server.
Was this tool helpful?
What went wrong?
We only receive the reason you pick, never what you typed into the tool.
Thanks for your feedback.