DevKits

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:

Join mode:
10 of 10 iterations · 59 chars

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

  1. 1Type or paste the text you want to repeat.
  2. 2Enter a count (up to 1,000,000).
  3. 3Pick a mode: Concat (no separator), Lines (newline between), or Between (custom separator).
  4. 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