Text Repeater
Repeat text or each line N times with a separator you choose, with a pre-flight size guard.
Text to repeat
Repeated text
Type text to repeat it
Results update as you type. Nothing leaves your browser.
Details
Text Repeater duplicates your exact input N times, either as one block or line by line, with no gap, a newline, a space, or a literal custom separator. A pre-flight calculation uses UTF-8 byte counts to reject outputs over 10 MB before anything is built, so a large count cannot freeze the tab. Optional numbering appends an index to every repetition, and the final stats show repetitions, lines, characters, and bytes.
More examples
A 5,000-line fixture
lorem ipsum dolor sit amet
separation of concerns
café ✓With whole-block mode, newline separator, and count 5,000, these three lines become a 15,000-line test fixture. The byte estimate is shown before the build.
Template lines in order
item one
item two
item threePer-line mode repeats each line N times consecutively, so two repetitions produce item one, item one, item two, item two, item three, item three.
Numbered messages
msgTurn on numbering with the template " #{n}" and count 8 to get "msg #1" through "msg #8", each on its own line.
Examples
Build a 5,000-line fixture
lorem ipsum dolor sit amet
separation of concerns
café ✓15,000 lines, joined with a newline separatorWhole-block mode repeats the exact three-line input 5,000 times; the byte estimate is checked before the string is built.
Repeat each template line
item one
item two
item threeitem one
item one
item two
item two
item three
item threePer-line mode with count 2 repeats each line consecutively and preserves the template order.
Number the repetitions
msg with template " #{n}"msg #1
msg #2
msg #3Numbering substitutes a 1-based counter into the template for every repetition.
Use cases
Fabricate test fixtures
Turn a short sample block into thousands of deterministic lines for parsers, importers, and pagination tests without writing a script.
Probe upload and payload limits
Grow a payload toward a known byte threshold: the projected size is calculated with TextEncoder before the output is allocated.
Fill layouts with realistic text
Repeat a representative line or block to see how a design behaves with dense, real-length content instead of a single word.
Create indexed mock records
Enable numbering with a template such as "msg #{n}" so every repeated line carries a stable, sortable index.
Common mistakes
Mistake:Typing \n into the custom separator field and expecting a line break.
Fix:The custom field is literal, so \n produces a backslash and an n. Choose the Newline separator preset for real line breaks.
Mistake:Assuming the 10 MB guard counts characters, not bytes.
Fix:UTF-8 bytes are counted with TextEncoder. Emoji and accented characters take several bytes each, so they reach the cap sooner than their character count suggests.
Mistake:Expecting per-line mode to interleave one round of all lines before the next.
Fix:Each line is repeated consecutively: with a, b and count 3 the output is a, a, a, b, b, b. Choose a different source order if you need a round-robin pattern.
Frequently asked questions
How many times can I repeat text?
The count can be set from 1 to 100,000. A separate 10 MB UTF-8 size guard can stop sooner: the tool calculates the projected byte size before building the output, so a huge block repeated many times is refused with the exact computed size and the largest count that would fit. Lower the count, shorten the input, or pick a shorter separator to proceed.
Why is there a 10 MB size limit?
Browsers get sluggish when a single string grows beyond a few megabytes: rendering a textarea, copying to the clipboard, and creating a download blob all get slower, and a very large build can freeze the tab. The limit is a platform fact, not a policy about your content. Because the pre-flight check counts UTF-8 bytes with TextEncoder before allocating anything, you get a fast, actionable refusal instead of an unresponsive page.
Can I repeat each line individually?
Yes. Choose Per line mode: each input line is repeated N times consecutively and the original line order is preserved. With the lines a and b and count 3, the output is a, a, a, b, b, b. The Skip empty lines switch drops blank lines from the source, which is handy when a trailing newline or a copied list has gaps. Line endings are detected first, so CRLF text is handled atomically.
Can I add numbering to each repetition?
Yes. Enable Numbering and use the template field: every {n} is replaced with a 1-based counter. The template " #{n}" turns msg into msg #1, msg #2, msg #3, and you can use any surrounding text such as [{n}] or item-{n}. In per-line mode the counter increases across all emitted lines in output order. Numbering makes each repetition longer, so keep an eye on the byte stats when using large counts.
Does the text leave my browser?
No. Nothing leaves your browser. Repeating, counting bytes, copying, and downloading all happen locally in the tab; there is no upload, no server round trip, and no content telemetry. The only persistence is the optional local draft that restores your input on a later visit, and it stays on your device.
References & standards
Related tools
Anagram Solver & Palindrome
Normalize text for palindrome checks and privacy-preserving anagram analysis.
Binary Text Translator
Convert text to binary or hex bytes and decode it back
Braille Translator
Translate text to Unicode Braille and back with UEB Grade 1 letters, numbers, punctuation and a per-cell dot breakdown.
Caesar Cipher Tool
Encrypt, decrypt and brute-force Caesar shifts with English-frequency ranking and a one-click ROT13 shortcut.
Case Converter & Text Formatter
Convert text between 14 different case formats including camelCase, snake_case, kebab-case with batch processing and advanced options
Character Frequency Analyzer
Count character, letter and word frequencies for text analysis