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.
\n(a newline, the default) — each copy on its own line. A numbered-feeling list, a set of blank form rows, repeated placeholder lines.- A space — copies run together on one line: "ha ha ha ha".
- Empty — copies with nothing between them: "abcabcabc". Useful for building a run of a character or a test string.
- A comma or
,— a repeated value list. \t— tab-separated, to paste as spreadsheet cells.
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
- Test data. Filling a field, a file or a form with a known amount of text to check behaviour and limits.
- Placeholder content. Repeating a line to mock up a layout before the real text exists.
- Templates. Generating many identical rows to fill in — invoice lines, table rows, list items.
- Character runs. Building a separator line, a progress bar of blocks, or a string of one character.
- Emphasis and fun. The playful "so so so good" style, or repeated emoji.
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.
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
- Type or paste the text you want to repeat.
- Set how many times and choose the separator — a newline for a list, a space for one line.
- Turn on "Repeat each line separately" to repeat every line in place instead of the whole block.
- Press "Repeat" and copy the result.
Related tools
Frequently asked questions
Use \n as the separator, which is the default. It is treated as a real newline, so each repetition starts a new line.
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.
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.
Yes, 100,000 repetitions, to keep the browser responsive. That is far more than any normal use needs.
Yes, use \t as the separator for tabs, or \n for separate rows.