Text duplicator
Duplicate pasted text or the content of a local text file into 1–999 copies, with optional “Copy N” headings, custom separators, whitespace trimming, and character plus UTF-8 byte counts.
Runs in your browserEvery computation happens in your browser — your data never leaves this device.
Paste directly or read a local text file. Surrounding whitespace is trimmed by default and the result updates as you type.
Pick a .txt / .md / .csv / .json text file and its content is loaded into the box above.
Duplicated text
Copies are joined with the chosen separator. Output above 5 MiB fails with an error instead of freezing the browser.
Paste text or load a file to see the duplicated result
Copies
0
Characters
0
UTF-8 bytes
0
Bytes per copy
0
What this tool does
- Duplicate pasted text or the content of a text file you load, for bulk placeholder data or repeated fixtures
- Add “Copy N” headings and join copies with a newline or a blank line, then copy the whole result in one click
- Check the UTF-8 byte size first so an oversized block never lands in a chat window or API request
Example
Input
Recipient: Zhang San Order: A001
Output
Copy 1 Recipient: Zhang San Order: A001 Copy 2 Recipient: Zhang San Order: A001 Copy 3 Recipient: Zhang San Order: A001
This is the preset behind the “Example” button: 3 copies, a “Copy N” heading per copy, and one blank line between copies (separator \n\n).
Frequently asked questions
Does it really copy files?
No. A web page cannot read your disk path and cannot write files, so it duplicates text content: text you paste, or the content of a text file you pick. Use your file manager to duplicate binary files.
Why is the limit 999 copies and 5 MiB of output?
The whole result is built as a single JavaScript string in memory, and large strings are slow. The tool estimates “bytes per copy × copies” before joining and fails with an output-limit error past 5 MiB instead of freezing the tab. The limit counts UTF-8 bytes, and a common CJK character takes 3 bytes.
Why do the character count and the UTF-8 byte count differ?
Characters count Unicode code points; bytes count the UTF-8 encoding, where ASCII is 1 byte, a common CJK character is 3 bytes and an emoji is 4 bytes. So “中文” is 2 characters but 6 bytes.
How do I put a newline in the separator?
Type \n for a newline, \n\n for a blank line, \t for a tab, \r for a carriage return and \\ for a backslash. Leave the field empty to join the copies with nothing at all.
Will trimming surrounding whitespace damage my text?
It only removes spaces, tabs and newlines at the very start and end of the block; blank lines and indentation inside the text are kept. Turn the option off to keep the input byte-for-byte.
Keywords:text duplicatorduplicate textcopy text multiple timesfile-copy