Text Repeat

Repeat text with separators.

Open tool

Overview

Repeat a piece of text any number of times, with an optional separator between copies. Type "abc" with count 3 and separator "-" and you get "abc-abc-abc". Useful for filling a fixed-width field, building a horizontal rule out of a single character, or generating predictable test fixtures.

Designers padding mockup content, developers building test inputs, sysadmins generating boilerplate config lines, and writers stress-testing layouts with repeated strings all use a text-repeat utility. It's quicker than copy-paste-paste-paste especially when the count is more than a handful.

How it works

The tool takes three inputs: the source text, the repeat count, and an optional separator. It concatenates the source N times with the separator inserted between each pair. A leading or trailing separator is optional. Large counts are protected by a cap to prevent accidentally generating multi-megabyte strings that would freeze the browser.

Examples

Text:       abc
Count:      3
Separator:  -
Output:     abc-abc-abc
Text:       hello
Count:      4
Separator:  (none)
Output:     hellohellohellohello
Text:       =
Count:      30
Separator:  (none)
Output:     ==============================
Text:       Line one
Count:      3
Separator:  \n
Output:     Line one
            Line one
            Line one

FAQ

Is there a maximum count?

Yes, typically capped around 10,000 or based on total output size. Browsers don't enjoy multi-megabyte text fields.

Can the separator be a newline?

Yes. Use \n or pick the newline option from the separator menu, and each repeat lands on its own line.

Why repeat at all — wouldn't a script be easier?

For one-off needs, opening a terminal and writing a print("abc" * 3) is overkill. Inline tools are faster when you're already in the browser.

Try Text Repeat

An unhandled error has occurred. Reload ×