Repeat text

Repeats your text as many times as you want, with any separator.

Type your text, set how many copies you want and what should go between them, then press the button.

The separator decides what you get

The same text and count produce completely different output depending on the separator, so it is worth setting deliberately.

Per-line mode

By default the whole block is repeated as a unit. With "Repeat each line separately" on, each line is repeated in place instead: given "a" and "b" over two lines with a count of three, you get "a a a" then "b b b" rather than the whole "a b" pair three times. This is the mode for turning a short list into a longer one where each item recurs together — duplicating rows for testing, padding a dataset, building repetitive structured text.

What people use it for

There is a sensible cap of 100,000 repetitions to keep the browser responsive. If you need a repeated character rather than repeated text, typing one character and a large count with an empty separator does it.

Doing it without this tool

Excel: =REPT("text", 10) repeats with no separator; adding one means =REPT("text" & ", ", 10) and then trimming the trailing separator.

Command line: yes "text" | head -10 for lines, printf 'text%.0s' {1..10} for a run with no separator.

Programming: "text".repeat(10) in JavaScript, "text" * 10 in Python — the same operation this page wraps in a form.

Try:
0Words
0Characters
0No spaces
0Sentences
0Paragraphs
0Lines
0Pages
0Reading
0Speaking

Runs entirely in your browser. Your text is never uploaded — open DevTools, Network tab, and you will see zero requests while you use this tool.

How to use it

  1. Type or paste the text you want to repeat.
  2. Set how many times and choose the separator — a newline for a list, a space for one line.
  3. Turn on "Repeat each line separately" to repeat every line in place instead of the whole block.
  4. Press "Repeat" and copy the result.

Related tools

Compare two listsFinds what is only in list A, only in B, in both, or different between them.Cut charactersCuts a fixed number of characters from the start or end of every line.Join linesMerges every line into a single line with the separator you choose.Find and replaceRuns many replacements in one pass — one rule per line.PDF text breaksThe file has no paragraphs to give you. Here is what it does have, and how to…Meta description lengthWhy 160 characters is a rule of thumb and 920 pixels is the real limit.Upside down textFlip a line so it reads the other way up. Copy and paste anywhere.

See all text tools →

Frequently asked questions

How do I put each copy on its own line?

Use \n as the separator, which is the default. It is treated as a real newline, so each repetition starts a new line.

How do I repeat a single character many times?

Type the one character, set a high count and clear the separator so there is nothing between the copies. That builds a run like a separator line or a bar of blocks.

What does "Repeat each line separately" do?

It repeats every line in place rather than repeating the whole block. Two lines repeated three times become each line three times in a row, not the pair three times over.

Is there a limit?

Yes, 100,000 repetitions, to keep the browser responsive. That is far more than any normal use needs.

Can I paste the result into a spreadsheet as cells?

Yes, use \t as the separator for tabs, or \n for separate rows.