Text Repeater — Repeat Any Text or Line N Times Online
Repeat any text 1 to a million times online. Three modes: direct concat, one per line, or joined with a custom separator. Optional index-based template like 'Item {i}: {t}'. 100% local, output capped for browser safety.
Last updated:
CommentsEnter text and a count to repeat it up to a million times. Three joining modes: concat ("abcabcabc"), one per line, or with a custom separator like ", ". Optional template like "Item {i}: {t}" injects the iteration index. Output capped at 5M chars for browser safety.
What is Text Repeater?
A text repeater does one thing — duplicate a string N times — but the joining strategy is where the tool earns its keep. Sometimes you want direct concatenation (padding strings, generating placeholder data), sometimes newline-separated (test inputs for line-processors), sometimes a custom separator (SQL VALUES lists, comma-separated IDs). The template feature adds a per-iteration index so you can generate numbered mock data in one paste: "user_{i}@example.com" × 100 yields user_1@example.com through user_100@example.com without opening a code editor.
How to repeat text online
- 1Type or paste the text you want to repeat.
- 2Enter a count (up to 1,000,000).
- 3Pick a mode: Concat (no separator), Lines (newline between), or Between (custom separator).
- 4Optionally enable a template with {i} for the index and {t} for the original text. Copy the output.
Use Cases
Generate placeholder text
Repeat 'Lorem ipsum dolor sit amet. ' 50 times to fill a design mockup, or repeat 'a' 500 times to stress-test a width constraint.
Build SQL VALUES lists
Use template mode with something like '({i}, \'user{i}\')' and comma separator to spit out (1, 'user1'), (2, 'user2'), … for bulk seed data.
Stress-test a text-processing pipeline
Repeat a suspicious line 10,000 times to see how a downstream tool handles bulk. The 5M-char cap prevents you from crashing your own browser.
Create emoji or ASCII spam art
'🎉' × 100 or '=' × 80 for banner lines in terminal READMEs.
Tips & Best Practices
- ▸Template placeholders {i} and {t} can be used any number of times per template.
- ▸For counts above 100,000, be conservative with per-iteration length or you'll hit the character cap.
- ▸Concat mode is the fastest — Lines and Between add O(count) joiner strings on top.
- ▸Combine with the Text Sort tool: repeat with template '{i} - example', then shuffle, to make randomized test IDs.
Frequently Asked Questions
What's the maximum number of repetitions?
Up to 1,000,000 iterations, but the tool also caps total output at 5,000,000 characters to keep your browser responsive. If you hit the character cap, the output is truncated cleanly at a boundary and the tool tells you.
How do the three repeat modes differ?
Concat glues everything together with no separator. Lines adds a newline between iterations. Between uses whatever separator you type (e.g. ', ' or ' | ').
What is the template with {i} and {t}?
{t} is replaced with the original text and {i} with the current iteration index (default starts at 1). For example, template 'Task {i}: {t}' with text 'do it' and count 3 produces 'Task 1: do it', 'Task 2: do it', 'Task 3: do it'.
Is my text uploaded anywhere?
No. All repetition runs locally in your browser.
Try Next
Regex Replace
Find and replace text with a regular expression online. Supports every JavaScript flag (g, i, m, s, u, y), all backreferences ($1..$9, $&, $`, $', $<name>), and escape sequences (\n, \t) in the replacement. Live match-by-match preview and diff. 100% local.
Related Tools
Case Converter
Convert text between camelCase, PascalCase, snake_case, kebab-case, CONSTANT_CASE, Title Case, and more.
Text Diff
Compare two text snippets side-by-side and highlight the differences. Word- and line-level diff, everything runs in your browser.
Word Counter
Count words, characters, sentences, paragraphs, and reading time in any text. Includes a byte-size estimate for storage planning.
Markdown → HTML
Convert Markdown to HTML with a live preview. Supports GitHub Flavored Markdown (tables, task lists, strikethrough, code fences). Free, no signup, runs entirely in your browser.
Regex Tester
Test regular expressions online with live match highlighting, capture-group and named-group output, and every JavaScript flag (g, i, m, s, u, y). Free, no signup, no ads — runs entirely in your browser.
XML Formatter
Format, beautify, and validate XML documents online. Handles namespaces, CDATA sections, and mixed content.