Notepad tutorial

How to repeat text in Notepad.

Standard Windows Notepad has no built-in way to repeat text. The free Notepad++ does — with macros that record and replay your keystrokes.

Why standard Notepad can't do it

Windows Notepad is intentionally minimal. There's no macro recorder, no scripting, no REPT-like function. Your only options are copy-paste or upgrade to a more capable editor.

Notepad++ macro method

If you have Notepad++ (free, Windows):

  1. Type your text once on a line
  2. Move cursor to the start of the line, then press Home
  3. Macro → Start Recording
  4. Press End (to go to end of line), Enter (new line), then paste the text using Ctrl+V
  5. Macro → Stop Recording
  6. Macro → Run a Macro Multiple Times — enter the number, click Run

This produces N copies of your text, each on a new line.

Alternative: Sublime Text / VS Code multi-cursor

Modern editors have a faster method: multi-cursor selection.

  • In VS Code: Ctrl+D selects the next match. Keep pressing to select more. Then type to replace all at once.
  • For N blank lines: type one line, then Ctrl+Shift+D to duplicate. Each press doubles your lines.

The simplest option

Most people just want a long repeated string once. Our browser-based repeater takes 5 seconds — type, set count, copy, paste into Notepad. No macros to record, no editors to install.

Common questions

Frequently asked.

In Notepad++, no — macros replay exact keystrokes, they don't count. Use the Column Editor (Edit → Column Editor → Number to Insert) to add sequential numbers to selected lines.

macOS Notepad is called TextEdit, and it also has no repeat function. Use BBEdit (free for basic features) or our online tool.

Yes — same macro method, just select multiple lines before recording. The macro will play back all the keystrokes including the line breaks.

Related reading

More articles.

Notepad has no repeat command

Plain Windows Notepad cannot repeat text on its own — there is no REPT function or macro. The manual method is to copy your text once, then press Ctrl+V repeatedly, doubling the selection each time (copy the two, paste to get four, and so on) to grow it quickly.

Notepad++ can automate it

If you use Notepad++, record a macro (Macro → Start Recording), paste your text once, stop recording, then use Macro → Run a Macro Multiple Times to repeat it any number of times. Its column-edit mode (Alt+drag) is also useful for building repeated blocks.

The quickest path

For anything more than a few copies, generating the text in the repeater and pasting the result into Notepad is far faster: set the count, choose New line or another separator, and copy. For an exact file size, the stress test generator produces 1 KB to 10 MB precisely.