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.