Text tools
Add Prefix to Each Line Online
Add the same prefix to every line in a pasted list, with optional empty-line skipping.
Privacy note
Your text is processed in your browser. This tool does not store pasted text on a server.
When this tool helps
Use this tool when every line in a pasted list needs the same beginning text.
It is useful for file paths, tags, command snippets, CMS entries, and list formatting cleanup.
Common cleanup options
Line prefixes
Add tags, paths, bullets, commands, labels, or repeated text before every line.
Blank-line handling
Skip empty lines when the output should preserve visual spacing.
Reverse workflow
Use this with remove prefix, add suffix, trim lines, and custom line joining tools.
Browser processing
The current version runs in your browser and does not require an account.
How to use it
- Paste the lines you want to modify.
- Enter the prefix to add.
- Choose whether to skip empty lines.
- Run the tool and copy the updated lines.
Privacy and limitations
This tool adds literal text and does not interpret regular expressions.
Review blank-line handling when your input intentionally contains empty rows.
Frequently asked questions
Can I choose the prefix?
Yes. Enter the exact text you want to add before each line.
Can it skip blank lines?
Yes. Keep skip empty lines enabled to avoid changing blank rows.
Is my text uploaded?
No. The current tool processes pasted text in your browser.
Last updated: May 7, 2026
How this page is maintained
This tool page is reviewed for practical accuracy, clear limitations, browser-based processing behavior, and links to related cleanup tasks. For site background and policies, see About, Privacy, and Contact.
Related tools
Remove prefix from each line
OpenRemove a matching prefix from each line in a pasted list without changing non-matching lines.
Add suffix to each line
OpenAdd the same suffix to every line in a pasted list, with optional empty-line skipping.
Trim whitespace from lines
OpenTrim leading and trailing spaces from every line, with optional internal space cleanup.