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:
Enter 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.
Related Tools
Regex Tester
Test regular expressions online. Live match highlighting, capture groups, and support for JavaScript flags (g, i, m, s, u, y).
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.
Text to Speech
Convert text to spoken audio using your browser's built-in Speech Synthesis API. Pick from all voices installed on your OS, adjust rate, pitch, and volume. No account, no download, no upload — 100% local.
XML Formatter
Format, beautify, and validate XML documents online. Handles namespaces, CDATA sections, and mixed content.
SQL Formatter
Format and beautify SQL queries. Supports SELECT, JOIN, subqueries, CTEs, and multiple SQL dialects.
Case Converter
Convert text between camelCase, PascalCase, snake_case, kebab-case, CONSTANT_CASE, Title Case, and more.