Processed in your browser. Inputs are not uploaded by this tool.
Loading the interface. JavaScript is required; controls stay disabled until ready.
Paste or type the text you want to work with.
Run the tool to generate your result here.
Input and output are limited to 1,000,000 UTF-16 units. Line operations support up to 20,000 lines; Compare is limited to 250,000 line pairs. Results remain plain text in your browser.
How Text Repeater works
Choose an integer from 1 to 10,000. The separator is inserted between copies, never after the last one. Output is limited to one million UTF-16 units before allocation.
How to use this tool
- Paste or type text into the labelled input.
- Enter a repeat count from 1 to 10,000 and an optional separator, then select Process text.
- Review the output, then copy it. Reset clears the current inputs and result.
Processing happens locally. Text is not uploaded or saved by this tool. Keep a separate copy before leaving the page.
A practical example
Repeat ha three times with a space separator to produce ha ha ha.
Questions and answers
Is repetition unlimited?
No. Count and total output limits protect your browser from accidental memory exhaustion.
What is the maximum number of repeats?
You can repeat text from 1 to 10,000 times, and total output is capped at about one million characters so the browser stays responsive. Long inputs reach that cap with fewer repeats. If you need more data, generate it in batches or with a short script.
Can I add a new line or comma between each copy?
Yes. The separator is inserted between copies, never after the last one, so a comma separator for three copies gives a,a,a rather than a,a,a,. Choose a new line separator to put each copy on its own line, which is useful for lists and test files.
Is it okay to use repeated text in messages or posts?
For tests, mock-ups and personal notes, yes. Sending large blocks of repeated text in chats, comments or emails is treated as spam by most platforms and can get an account limited. Use repeated text for layout testing, load testing in a staging system or learning exercises.
Repeat a block without a trailing separator
A text repeater makes multiple copies of the same block. It is useful for a small test fixture, a repeated label or a controlled formatting example. The copy count and separator together determine the output; they do not generate different text for each copy.
A practical example
Repeating ha three times with a space separator produces ha ha ha. There are three copies and two separators. If you need each copy on its own row, enter an actual newline in the separator field. The literal characters backslash and n are not automatically expanded into a line break.
Estimate the output length first
For a block of length L, count N and separator length S, the output length is N times L plus N minus one times S. Large counts with a long separator can grow faster than expected. This tool checks the one-million-UTF-16-unit output bound before allocation and accepts whole counts from 1 to 10,000.
Keep repetition separate from other tasks
The tool does not number copies, vary words, schedule messages or post the result anywhere. Keep the generated sample small enough to review and appropriate for your destination. To add a label around each existing line, a prefix/suffix operation is more suitable than repeating the entire document.
Worked example: generating test data
A developer needs a 5,000-character string to test a form's length limit. Enter a 50-character sentence, set the count to 100 and use no separator; the output is exactly 5,000 characters. To build 20 rows of sample CSV data instead, enter one row, set the count to 20 and choose a new line as the separator. No extra separator is added after the last copy.
Choose your next task
- Prefix and suffix tool: Wrap each existing line rather than repeating a whole block.
- Character counter: Check the length of the generated sample.
- Line counter: Verify row counts when the separator contains a newline.